-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.gradle
49 lines (47 loc) · 1.91 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
/**
* 定义了所有module共同的依赖
*/
ext {
kotlin_version = "1.3.50"
android = [
compileSdkVersion: 29,
minSdkVersion : 21,
targetSdkVersion : 29,
versionCode : 1,
versionName : "1.0.0"
]
//依赖库版本
dependVersion = [
AppCompat: "1.1.0",
lifeCycle: "2.1.0",
coroutine: "1.3.0",
ktx: "2.1.0",
retrofitSdkVersion : "2.6.0"
]
//依赖库集合
supportDeps = [
//-------- support -------
appcompatX: "androidx.appcompat:appcompat:$dependVersion.AppCompat",
lifeCycleX: "androidx.lifecycle:lifecycle-extensions:$dependVersion.lifeCycle",
ktx: "androidx.lifecycle:lifecycle-viewmodel-ktx:$dependVersion.ktx",
coroutine: "org.jetbrains.kotlinx:kotlinx-coroutines-core:$dependVersion.coroutine"
]
retrofit = [
//------ retrofit和RxJava ---------
retrofit : "com.squareup.retrofit2:retrofit:$dependVersion.retrofitSdkVersion",
retrofitConverterGson : "com.squareup.retrofit2:converter-gson:$dependVersion.retrofitSdkVersion",
retrofitScalar : "com.squareup.retrofit2:converter-scalars:$dependVersion.retrofitSdkVersion",
okhttp3LoggerInterceptor: 'com.squareup.okhttp3:logging-interceptor:3.10.0'
]
supportLibs = supportDeps.values()
networkLibs = retrofit.values()
//单个依赖库
glide = "com.github.bumptech.glide:glide:4.7.1"
statusbar = "com.jaeger.statusbarutil:library:1.5.1"
logger = "com.orhanobut:logger:2.2.0"
eventbus = "org.greenrobot:eventbus:3.1.1"
targetfun= "com.cysion:targetfun:1.2.0"
appjoint= "io.github.prototypez:app-joint-core:1.5"
dialog = "com.cysion:WeDialog:1.2.0.x"
otherLibs = [glide,statusbar,logger,eventbus,targetfun,appjoint,dialog]
}