-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.gradle
111 lines (99 loc) · 6.06 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
ext {
android = [
compileSdkVersion: 28,
buildToolsVersion: "28.0.3",
minSdkVersion : 16,
targetSdkVersion : 27,
versionCode : 1,
versionName : "1.0.0"
]
dependVersion = [
androidSupportSdkVersion: "28.0.0",
espressoSdkVersion : "3.2.0",
retrofitSdkVersion : "2.4.0",
glideSdkVersion : "4.8.0",
rxJava : "2.2.2",
rxAndroid : "2.1.0",
rxKotlin : "2.3.0",
anko : "0.10.7"
]
androidxDeps = [
"androidx-appcompat" : "androidx.appcompat:appcompat:1.0.2",
"androidx.lifecycle" : "androidx.lifecycle:lifecycle-extensions:2.1.0",
"androidx.recyclerview" : "androidx.recyclerview:recyclerview:1.1.0",
"androidx.constraintlayout" : "androidx.constraintlayout:constraintlayout:1.1.3",
"androidx.cardview" : "androidx.cardview:cardview:1.0.0",
"android.material" : "com.google.android.material:material:1.0.0",
"androidx.navigation-fragment" : "androidx.navigation:navigation-fragment:2.1.0",
"androidx.navigation-ui:" : "androidx.navigation:navigation-ui:2.1.0",
// "junit" : "junit:junit:4.12",
// "androidx.test.ext-junit" : "androidx.test.ext:junit:1.1.0",
// "androidx.test.espresso:espresso-core": "androidx.test.espresso:espresso-core:3.1.1",
]
// supportDeps = [
// "supportv4" : "com.android.support:support-v4:${dependVersion.androidSupportSdkVersion}",
// "appcompatv7" : "com.android.support:appcompat-v7:${dependVersion.androidSupportSdkVersion}",
// "cardview" : "com.android.support:cardview-v7:${dependVersion.androidSupportSdkVersion}",
// "design" : "com.android.support:design:${dependVersion.androidSupportSdkVersion}",
// "constraint-layout": "com.android.support.constraint:constraint-layout:1.1.3",
// "annotations" : "com.android.support:support-annotations:${dependVersion.androidSupportSdkVersion}"
// ]
libDeps =[
"kotlin" :"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version",
"appcompat" : 'androidx.appcompat:appcompat:1.1.0',
]
retrofit = [
"retrofit" : "com.squareup.retrofit2:retrofit:${dependVersion.retrofitSdkVersion}",
"retrofitConverterGson" : "com.squareup.retrofit2:converter-gson:${dependVersion.retrofitSdkVersion}",
"retrofitAdapterRxjava2" : "com.squareup.retrofit2:adapter-rxjava2:${dependVersion.retrofitSdkVersion}",
"okhttp3LoggerInterceptor": 'com.squareup.okhttp3:logging-interceptor:3.11.0',
"retrofitConverterMoshi" : 'com.squareup.retrofit2:converter-moshi:2.4.0',
"retrofitKotlinMoshi" : "com.squareup.moshi:moshi-kotlin:1.7.0"
]
rxJava = [
"rxJava" : "io.reactivex.rxjava2:rxjava:${dependVersion.rxJava}",
"rxAndroid": "io.reactivex.rxjava2:rxandroid:${dependVersion.rxAndroid}",
"rxKotlin" : "io.reactivex.rxjava2:rxkotlin:${dependVersion.rxKotlin}",
"anko" : "org.jetbrains.anko:anko:${dependVersion.anko}"
]
testDeps = [
"junit" : 'junit:junit:4.12',
"extJunit" :'androidx.test.ext:junit:1.1.1',
"runner" : 'com.android.support.test:runner:1.0.2',
"espresso-core" : "com.android.support.test.espresso:espresso-core:${dependVersion.espressoSdkVersion}",
"espresso-contrib" : "com.android.support.test.espresso:espresso-contrib:${dependVersion.espressoSdkVersion}",
"espresso-intents" : "com.android.support.test.espresso:espresso-intents:${dependVersion.espressoSdkVersion}",
"leakcanary-debug" : 'com.squareup.leakcanary:leakcanary-android:1.6.1',
"leakcanary-release" : 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1',
"leakcanary-debug-fragment": 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.1',
"debug-db" : 'com.amitshekhar.android:debug-db:1.0.4'
]
commonDeps = [
"multidex" : 'com.android.support:multidex:1.0.3',
"logger" : 'com.orhanobut:logger:2.2.0',
"glide" : 'com.github.bumptech.glide:glide:4.8.0',
"eventbus" : 'org.greenrobot:eventbus:3.1.1',
"spinkit" : 'com.github.ybq:Android-SpinKit:1.2.0',
"arouter" : 'com.alibaba:arouter-api:1.5.0',
// "rxpermissions": 'com.github.tbruyelle:rxpermissions:0.10.2',
"coroutines" : "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1",
"mmkv" :'com.tencent:mmkv-static:1.1.1',
"autosize" :"me.jessyan:autosize:1.2.1", // 屏幕适配 //https://github.com/JessYanCoding/AndroidAutoSize
// "xlog" :"com.tencent.mars:mars-xlog:1.2.3" , //日志//https://github.com/Tencent/mars#mars_cn
"logger" :"com.orhanobut:logger:2.2.0", //https://github.com/orhanobut/logger
"bottom" :'me.majiajie:pager-bottom-tab-strip:2.3.0X' //底部的NavigationView //https://github.com/tyzlmjj/PagerBottomTabStrip/wiki/V2_%E5%BF%AB%E9%80%9F%E6%9E%84%E5%BB%BA
]
otherDeps = [
// "arouter-compiler": 'com.alibaba:arouter-compiler:1.2.1'
]
arouterDeps = [
"arouterCompiler":'com.alibaba:arouter-compiler:1.2.2'
]
// supportLibs = supportDeps.values()
libLibs = libDeps.values()
networkLibs = retrofit.values()
rxJavaLibs = rxJava.values()
commonLibs = commonDeps.values()
arouterLibs = arouterDeps.values()
androidxLibs = androidxDeps.values()
}