-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
优化 md5 校验逻辑 新增支持自定义日志 TAG 新增支持打印请求耗时 删除一些已经标记过时方法 纠正某个英文单词书写错误 修复参数解析逻辑上的 Bug
- Loading branch information
1 parent
12fd135
commit df189b5
Showing
23 changed files
with
455 additions
and
432 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,52 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 28 | ||
|
||
// 支持 JDK 1.8 | ||
compileOptions { | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
defaultConfig { | ||
applicationId "com.hjq.http.demo" | ||
minSdkVersion 14 | ||
targetSdkVersion 28 | ||
versionCode 50 | ||
versionName "5.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
debug { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
implementation project(':library') | ||
|
||
implementation 'com.android.support:appcompat-v7:28.0.0' | ||
implementation 'com.android.support:design:28.0.0' | ||
|
||
// 标题栏:https://github.com/getActivity/TitleBar | ||
implementation 'com.hjq:titlebar:6.0' | ||
// 吐司工具类:https://github.com/getActivity/ToastUtils | ||
implementation 'com.hjq:toast:8.0' | ||
// 权限请求框架:https://github.com/getActivity/XXPermissions | ||
implementation 'com.hjq:xxpermissions:6.0' | ||
|
||
// Json 解析框架:https://github.com/google/gson | ||
implementation 'com.google.code.gson:gson:2.8.5' | ||
// OkHttp 网络框架:https://github.com/square/okhttp | ||
implementation 'com.squareup.okhttp3:okhttp:3.12.1' | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 28 | ||
|
||
// 支持 JDK 1.8 | ||
compileOptions { | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
defaultConfig { | ||
applicationId "com.hjq.http.demo" | ||
minSdkVersion 14 | ||
targetSdkVersion 28 | ||
versionCode 60 | ||
versionName "6.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
debug { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
implementation project(':library') | ||
|
||
implementation 'com.android.support:appcompat-v7:28.0.0' | ||
implementation 'com.android.support:design:28.0.0' | ||
|
||
// 标题栏:https://github.com/getActivity/TitleBar | ||
implementation 'com.hjq:titlebar:6.0' | ||
// 吐司工具类:https://github.com/getActivity/ToastUtils | ||
implementation 'com.hjq:toast:8.0' | ||
// 权限请求框架:https://github.com/getActivity/XXPermissions | ||
implementation 'com.hjq:xxpermissions:6.2' | ||
// Json 解析框架:https://github.com/google/gson | ||
implementation 'com.google.code.gson:gson:2.8.5' | ||
// OkHttp 框架:https://github.com/square/okhttp | ||
// 升级注意事项:https://www.jianshu.com/p/d12d0f536f55 | ||
implementation 'com.squareup.okhttp3:okhttp:3.12.10' | ||
// 日志调试:https://github.com/getActivity/Logcat | ||
debugImplementation 'com.hjq:logcat:6.0' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ public SearchBlogsApi setKeyword(String keyword) { | |
this.keyword = keyword; | ||
return this; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.