-
Notifications
You must be signed in to change notification settings - Fork 27
/
config.gradle
133 lines (118 loc) · 7.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
ext {
android = [
compileSdkVersion: 29,
buildToolsVersion: "29.0.3",
minSdkVersion : 21,
targetSdkVersion : 29,
versionCode : 100,
versionName : "1.0.0"
]
version = [
androidSupportSdkVersion: "28.0.0",
androidXSdkVersion : "1.1.0",
retrofitSdkVersion : "2.7.2",
dagger2SdkVersion : "2.26",
glideSdkVersion : "4.11.0",
butterknifeSdkVersion : "10.2.1",
rxlifecycleSdkVersion : "1.0",
rxlifecycle2SdkVersion : "2.2.2",
espressoSdkVersion : "3.0.1",
canarySdkVersion : "2.2",
rxJava : "2.2.2",
rxAndroid : "2.1.0",
rxKotlin : "2.3.0",
anko : "0.10.7",
kotlin_version : '1.3.50',
anko_version : '0.10.8',
kotlinx_coroutines_version: '1.1.1',
//kotlin 协程
kotlin_coroutines : '1.3.1'
]
supportDeps = [
"supportv4" : "com.android.support:support-v4:${version["androidSupportSdkVersion"]}",
"appcompatv7" : "com.android.support:appcompat-v7:${version["androidSupportSdkVersion"]}",
"cardview" : "com.android.support:cardview-v7:${version["androidSupportSdkVersion"]}",
"design" : "com.android.support:design:${version["androidSupportSdkVersion"]}",
"constraint-layout": "com.android.support.constraint:constraint-layout:1.1.3",
"annotations" : "com.android.support:support-annotations:${version["androidSupportSdkVersion"]}",
"vector-drawable" : "com.android.support:support-vector-drawable:${version["androidSupportSdkVersion"]}"
]
androidx = [
//androidx
"appcompat" : "androidx.appcompat:appcompat:${version["androidXSdkVersion"]}",
"design" : "com.google.android.material:material:${version["androidXSdkVersion"]}",
"legacy-support-v4": "androidx.legacy:legacy-support-v4:1.0.0",
"cardview" : "androidx.cardview:cardview:1.0.0",
"annotations" : "androidx.annotation:annotation:${version["androidXSdkVersion"]}",
"recyclerview" : "androidx.recyclerview:recyclerview:${version["androidXSdkVersion"]}",
]
//网络框架
retrofit = [
"retrofit" : "com.squareup.retrofit2:retrofit:${version["retrofitSdkVersion"]}",
"retrofitConverterGson" : "com.squareup.retrofit2:converter-gson:${version["retrofitSdkVersion"]}",
"retrofitAdapterRxjava2" : "com.squareup.retrofit2:adapter-rxjava2:${version["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"
]
//异步、数据操作...
rxs = [
"rxJava" : "io.reactivex.rxjava2:rxjava:${version["rxJava"]}",
"rxAndroid" : "io.reactivex.rxjava2:rxandroid:${version["rxAndroid"]}",
"rxKotlin" : "io.reactivex.rxjava2:rxkotlin:${version["rxKotlin"]}",
"anko" : "org.jetbrains.anko:anko:${version["anko"]}",
"rxerrorhandler2": "me.jessyan:rxerrorhandler:2.1.1",
"rxpermissions2" : "com.github.tbruyelle:rxpermissions:0.10.2"
]
//测试
testDeps = [
"junit" : 'junit:junit:4.12',
"runner" : 'com.android.support.test:runner:1.0.2',
"espresso-core" : "com.android.support.test.espresso:espresso-core:${version["espressoSdkVersion"]}",
"espresso-contrib" : "com.android.support.test.espresso:espresso-contrib:${version["espressoSdkVersion"]}",
"espresso-intents" : "com.android.support.test.espresso:espresso-intents:${version["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 = [
"glide" : "com.github.bumptech.glide:glide:${version["glideSdkVersion"]}",
"brvh" : 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.35',
"banner" : 'cn.bingoogolapple:bga-banner:2.2.4@aar',
"agentweb" : 'com.just.agentweb:agentweb:4.0.2',
"multidex" : 'com.android.support:multidex:1.0.3',
//"vertical-tablayout": 'q.rorbin:VerticalTabLayout:1.2.5',
"flow-layout" : 'com.hyman:flowlayout-lib:1.1.2',
"eventbus" : 'org.greenrobot:eventbus:3.1.1',
//"bugly" : 'com.tencent.bugly:crashreport:2.6.6.1',
"bugly-crash-up" : 'com.tencent.bugly:crashreport_upgrade:1.3.5',
"swipeback" : 'com.cxz:swipeback:1.0.1',
"material-dialogs" : 'com.afollestad.material-dialogs:commons:0.9.4.4',
"logger" : 'com.orhanobut:logger:2.1.1',
"litepal" : 'org.litepal.android:core:2.0.0',
"fab" : 'com.github.clans:fab:1.6.4',
"materialdatetimepicker": 'com.wdullaer:materialdatetimepicker:3.6.4',
"android-autosize" : 'me.jessyan:autosize:1.1.0',
"spinkit" : 'com.github.ybq:Android-SpinKit:1.2.0',
"android_utils" : 'com.blankj:utilcodex:1.29.0'
]
//其它依赖库
otherDeps = [
"glideCompiler": "com.github.bumptech.glide:compiler:${version["glideSdkVersion"]}",
"glideOkhttp" : "com.github.bumptech.glide:okhttp3-integration:${version["glideSdkVersion"]}"
]
kotlin = [
"core-ktx": "androidx.core:core-ktx:${version["androidXSdkVersion"]}",
"kotlin-stdlib-jdk7" : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${version["kotlin_version"]}",
"kotlinx-coroutines-core" : "org.jetbrains.kotlinx:kotlinx-coroutines-core:${version["kotlin_coroutines"]}",//协程核心库
"kotlinx-coroutines-android": "org.jetbrains.kotlinx:kotlinx-coroutines-android:${version["kotlin_coroutines"]}",//依赖当前平台所对应的平台库
]
bug = [
//bugly
"crashreport" : "com.tencent.bugly:crashreport:latest.release",
"nativecrashreport" : "com.tencent.bugly:nativecrashreport:latest.release",
//devyk
"devyk_native_crash_report": "com.github.yangkun19921001:YKCrash:1.0.2"
]
}