1
- apply plugin : ' com.android.application'
2
-
3
- android {
4
- compileSdkVersion 28
5
-
6
- // 支持 JDK 1.8
7
- compileOptions {
8
- targetCompatibility JavaVersion . VERSION_1_8
9
- sourceCompatibility JavaVersion . VERSION_1_8
10
- }
11
-
12
- defaultConfig {
13
- applicationId " com.hjq.http.demo"
14
- minSdkVersion 14
15
- targetSdkVersion 28
16
- versionCode 50
17
- versionName " 5.0"
18
- testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
19
- }
20
- buildTypes {
21
- release {
22
- minifyEnabled false
23
- proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
24
- }
25
- debug {
26
- minifyEnabled false
27
- proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
28
- }
29
- }
30
- }
31
-
32
- dependencies {
33
- implementation fileTree(include : [' *.jar' ], dir : ' libs' )
34
- implementation project(' :library' )
35
-
36
- implementation ' com.android.support:appcompat-v7:28.0.0'
37
- implementation ' com.android.support:design:28.0.0'
38
-
39
- // 标题栏:https://github.com/getActivity/TitleBar
40
- implementation ' com.hjq:titlebar:6.0'
41
- // 吐司工具类:https://github.com/getActivity/ToastUtils
42
- implementation ' com.hjq:toast:8.0'
43
- // 权限请求框架:https://github.com/getActivity/XXPermissions
44
- implementation ' com.hjq:xxpermissions:6.0'
45
-
46
- // Json 解析框架:https://github.com/google/gson
47
- implementation ' com.google.code.gson:gson:2.8.5'
48
- // OkHttp 网络框架:https://github.com/square/okhttp
49
- implementation ' com.squareup.okhttp3:okhttp:3.12.1'
1
+ apply plugin : ' com.android.application'
2
+
3
+ android {
4
+ compileSdkVersion 28
5
+
6
+ // 支持 JDK 1.8
7
+ compileOptions {
8
+ targetCompatibility JavaVersion . VERSION_1_8
9
+ sourceCompatibility JavaVersion . VERSION_1_8
10
+ }
11
+
12
+ defaultConfig {
13
+ applicationId " com.hjq.http.demo"
14
+ minSdkVersion 14
15
+ targetSdkVersion 28
16
+ versionCode 60
17
+ versionName " 6.0"
18
+ testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
19
+ }
20
+ buildTypes {
21
+ release {
22
+ minifyEnabled false
23
+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
24
+ }
25
+ debug {
26
+ minifyEnabled false
27
+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
28
+ }
29
+ }
30
+ }
31
+
32
+ dependencies {
33
+ implementation fileTree(include : [' *.jar' ], dir : ' libs' )
34
+ implementation project(' :library' )
35
+
36
+ implementation ' com.android.support:appcompat-v7:28.0.0'
37
+ implementation ' com.android.support:design:28.0.0'
38
+
39
+ // 标题栏:https://github.com/getActivity/TitleBar
40
+ implementation ' com.hjq:titlebar:6.0'
41
+ // 吐司工具类:https://github.com/getActivity/ToastUtils
42
+ implementation ' com.hjq:toast:8.0'
43
+ // 权限请求框架:https://github.com/getActivity/XXPermissions
44
+ implementation ' com.hjq:xxpermissions:6.2'
45
+ // Json 解析框架:https://github.com/google/gson
46
+ implementation ' com.google.code.gson:gson:2.8.5'
47
+ // OkHttp 框架:https://github.com/square/okhttp
48
+ // 升级注意事项:https://www.jianshu.com/p/d12d0f536f55
49
+ implementation ' com.squareup.okhttp3:okhttp:3.12.10'
50
+ // 日志调试:https://github.com/getActivity/Logcat
51
+ debugImplementation ' com.hjq:logcat:6.0'
50
52
}
0 commit comments