Skip to content

Commit 55b2c61

Browse files
committed
提交 3.0
1 parent a235642 commit 55b2c61

File tree

358 files changed

+2203
-21202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+2203
-21202
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ proguard/
3333
*.iws
3434
.idea/
3535

36+
.gradle
37+
3638
.DS_Store

Diff for: CHANGE-LOG.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
Change Log
2+
3+
1.0 Features
4+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
* 1. 单线程:基于当前线程高效率运作。
6+
* 2. 轻量级:微小的内存开销与Jar包体积,仅约 86K 。
7+
* 3. 全支持:GET, POST, PUT, DELETE, HEAD, TRACE, OPTIONS, PATCH.
8+
* 4. 全自动:一行代码将请求Java Model 转化为 Http Parameter,结果Json String 转化为 Java Model 。
9+
* 5. 易拓展:自定义 DataParser,将网络数据流自由转化为你想要的任意数据类型。
10+
* 6. 基于接口:架构灵活,轻松替换网络连接方式的核心实现方式,以及 Json 序列化库。
11+
* 7. 文件上传:支持单个、多个大文件上传。
12+
* 8. 文件下载:支持文件、Bimtap下载及其进度通知。
13+
* 9. 网络禁用:快速禁用一种、多种网络环境,比如禁用 2G,3G 。
14+
* 10. 数据统计:链接、读取时长统计,以及流量统计。
15+
* 11. 异常体系:统一的异常处理体系,简明清晰地抛出可再细分的三大类异常:客户端、网络、服务器异常。
16+
* 12. GZIP压缩:Request, Response 自动 GZIP 压缩节省流量。
17+
* 13. 自动重试:结合探测异常类型和当前网络状况,智能执行重试策略。
18+
* 14. 自动重定向:基于 30X 状态的重试,且可设置最大次数防止过度跳转。
19+
* 15. 自带简单异步执行器,方便开发者实现异步请求方案。
20+
21+
22+
2.0 Features
23+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24+
* 1. 可配置:更多更灵活的配置选择项,多达 23+ 项。
25+
* 2. 多态化:更加直观的API,输入和输出更加明确。
26+
* 3. 强并发:智能高效的并发调度,有效控制核心并发与队列控制策略。
27+
* 4. 注解化:信息配置约定更多样,如果你喜欢,可以注解 API、Method、ID、TAG、CacheMode 等参数。
28+
* 5. 多层缓存:内存命中更高效!支持多样的缓存模式,支持设置缓存有效期。
29+
* 6. 完善回调:自由设置回调当前或UI线程,自由开启上传、下载进度通知。
30+
* 7. 完善构建:提供 jar 包支持,后边支持 gradle 和 maven 。
31+
32+
2.2.0
33+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34+
1. 修复某些情况下参数无法拼接到URI的bug;
35+
2. http参数类可以注解指定Key,避免成员变量出现java关键词,同时增加动态URL构建;
36+
3. Request接受直接注解参数、内部构建参数(此特性已删除)。
37+
38+
2.3.0
39+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40+
1. 注解参数动态化;
41+
2. 优化HttpRichParamModel的使用。
42+
43+
3.0.0
44+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45+
1. 添加HttpUrlConnection支持,并设置为默认HTTP客户端引擎。
46+
2. 将Apache HTTP Client移到独立项目。
47+
3. 优化HttpConfig的体验。

Diff for: apache-client/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

Diff for: apache-client/build.gradle

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apply plugin: 'com.android.library'
2+
3+
android {
4+
compileSdkVersion 22
5+
buildToolsVersion "23.0.2"
6+
7+
defaultConfig {
8+
minSdkVersion 9
9+
targetSdkVersion 23
10+
versionCode 1
11+
versionName "1.0"
12+
}
13+
buildTypes {
14+
release {
15+
minifyEnabled false
16+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17+
}
18+
}
19+
}
20+
21+
dependencies {
22+
compile fileTree(dir: 'libs', include: ['*.jar'])
23+
testCompile 'junit:junit:4.12'
24+
provided project(':litehttp')
25+
}

Diff for: apache-client/proguard-rules.pro

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /Users/matianyu/develop/android/sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}

Diff for: apache-client/src/main/AndroidManifest.xml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.litesuits.litehttp_v3_apache_client">
3+
4+
<application
5+
android:allowBackup="true"
6+
android:label="@string/app_name"
7+
android:supportsRtl="true"
8+
>
9+
10+
</application>
11+
12+
</manifest>

0 commit comments

Comments
 (0)