-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.gradle
75 lines (66 loc) · 2.66 KB
/
config.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
ext {
//android开发相关配置
build = [
compileSdkVersion: 29,
buildToolsVersion: "29.0.3",
minSdkVersion : 21,
targetSdkVersion : 29
]
//api级别公共依赖
apiDepds = [
//kotlin
core_ktx : 'androidx.core:core-ktx:1.3.0',
viewModelScope : 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.1.0-beta01',
lifecycleScope : 'androidx.lifecycle:lifecycle-runtime-ktx:2.2.0-alpha01',
//livedata
livedata : 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0-alpha01',
//ViewModel Activity扩展
activity_ktx : 'androidx.activity:activity-ktx:1.1.0',
//ViewModel Fragment扩展
fragment_ktx : 'androidx.fragment:fragment-ktx:1.2.0',
//androidx
appcompat : 'androidx.appcompat:appcompat:1.1.0',
//material,如BottomNavigationView、TabLayout等
material : 'com.google.android.material:material:1.3.0-alpha01',
//约束布局
constraintlayout : 'androidx.constraintlayout:constraintlayout:1.1.3',
//下拉刷新
swiperefreshlayout: "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0",
//网络请求
retrofit : 'com.squareup.retrofit2:retrofit:2.9.0',
// okhttp : 'com.squareup.okhttp3:okhttp:4.8.0',
gson_convertor : 'com.squareup.retrofit2:converter-gson:2.9.0',
//gson
gson : 'com.google.code.gson:gson:2.8.6',
//room
room : "androidx.room:room-runtime:2.2.5",
//ARouter
arouter_api : 'com.alibaba:arouter-api:1.5.0',
//图片加载
glide : 'com.github.bumptech.glide:glide:4.11.0'
]
debugApiDepds = [
leakcanary : 'com.squareup.leakcanary:leakcanary-android:2.4'
]
releaseApiDepds = [
]
apmDepds = [
block_canary: 'com.github.markzhai:blockcanary-android:1.5.0'
]
kapt = [
//room_compiler
room_compiler : "androidx.room:room-compiler:2.2.5",
//aourter-compiler
arouter_compiler: 'com.alibaba:arouter-compiler:1.2.2',
glide_compiler : 'com.github.bumptech.glide:compiler:4.11.0'
]
//单元测试
apiTestDepds = [
junit: 'junit:junit:4.12'
]
//android 测试
apiAndroidTestDepds = [
junit : 'androidx.test.ext:junit:1.1.1',
espresso: 'androidx.test.espresso:espresso-core:3.2.0'
]
}