-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.gradle
129 lines (114 loc) · 8.16 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
/* 全局配置config */
ext {
android = [
app_name : "component",
applicationId : "com.tang.component",
compileSdkVersion : 29,
buildToolsVersion : "29.0.3",
minSdkVersion : 14,
targetSdkVersion : 30,
versionCode : 1000001,
versionName : "1.0.0.1",
minifyEnabled : false,//是否混淆
zipAlignEnabled : true,//优化android和应用程序间的交互
multiDexEnabled : true,
dataBinding : true,//启动dataBinding
]
//编译的module
module_appid = [
module_main : "com.tang.component.main",
module_home : "com.tang.component.home",
module_find : "com.tang.component.find",
module_live : "com.tang.component.live",
module_news : "com.tang.component.news",
module_mine : "com.tang.component.mine",
module_webview : "com.tang.webview",
]
version = [
appcompat : "1.3.0-alpha02",
retrofitSdkVersion : "2.9.0",
okhttpSdkVersion : "4.9.0",
glideSdkVersion : "4.9.0",
rxlifecycleSdkVersion : "1.0",
rxlifecycle2SdkVersion : "2.2.2",
espressoSdkVersion : "3.2.0",
]
dependencies = [
//androidx支持库
"appcompat" : "androidx.appcompat:appcompat:${version['appcompat']}",
"recyclerview" : "androidx.recyclerview:recyclerview:${version['appcompat']}",
"constraintlayout" : "androidx.constraintlayout:constraintlayout:1.1.3",
"annotation" : "androidx.annotation:annotation:${version['appcompat']}",
"cardview" : "androidx.cardview:cardview:${version['appcompat']}",
"material_design" : "com.google.android.material:material:${version['appcompat']}",
"core" : "androidx.core:core:${version['appcompat']}",
"preference" : "androidx.preference:preference:1.1.1",
"lifecycle" : "androidx.lifecycle:lifecycle-extensions:2.2.0",
"multidex" : "androidx.multidex:multidex:2.0.1",
//网络请求库
"retrofit" : "com.squareup.retrofit2:retrofit:${version['retrofitSdkVersion']}",
"retrofit-converter-gson" : "com.squareup.retrofit2:converter-gson:${version['retrofitSdkVersion']}",
"retrofit-adapter-rxjava2" : "com.squareup.retrofit2:adapter-rxjava2:${version['retrofitSdkVersion']}",
"retrofit-converter-scalars":"com.squareup.retrofit2:converter-scalars:${version['retrofitSdkVersion']}",
"okhttp4" : "com.squareup.okhttp3:okhttp:${version['okhttpSdkVersion']}",
"okhttp-urlconnection" : "com.squareup.okhttp3:okhttp-urlconnection:${version['okhttpSdkVersion']}",
"okhttp3-logging" : "com.squareup.okhttp3:logging-interceptor:${version['okhttpSdkVersion']}",
//rx系列依赖库
"rxandroid2" : "io.reactivex.rxjava2:rxandroid:2.1.1",
"rxjava2" : "io.reactivex.rxjava2:rxjava:2.2.20",
"rxbinding2" : "com.jakewharton.rxbinding2:rxbinding:2.2.0",
"rxlifecycle2" : "com.trello.rxlifecycle2:rxlifecycle:${version["rxlifecycle2SdkVersion"]}",
"rxlifecycle2-android" : "com.trello.rxlifecycle2:rxlifecycle-android:${version["rxlifecycle2SdkVersion"]}",
"rxlifecycle2-components" : "com.trello.rxlifecycle2:rxlifecycle-components:${version["rxlifecycle2SdkVersion"]}",
"rxcache2" : "com.github.VictorAlbertos.RxCache:runtime:1.8.3-2.x",
"rxpermissions2" : "com.github.tbruyelle:rxpermissions:0.10.2",
"rxerrorhandler2" : "me.jessyan:rxerrorhandler:2.1.1",
"rxcache-jolyglot-gson" : "com.github.VictorAlbertos.Jolyglot:gson:0.0.4",
//图片加载库
"glide" : "com.github.bumptech.glide:glide:${version["glideSdkVersion"]}",
"glide-compiler" : "com.github.bumptech.glide:compiler:${version["glideSdkVersion"]}",
"glide-loader-okhttp3" : "com.github.bumptech.glide:okhttp3-integration:${version["glideSdkVersion"]}",
//第三方控件
"pickerview" : "com.contrarywind:Android-PickerView:4.1.8",//滚动选择器
"photoview" : "com.github.chrisbanes:PhotoView:2.3.0",//图片缩放
"numberprogressbar" : "com.daimajia.numberprogressbar:library:1.4@aar",//进度条
"nineoldandroids" : "com.nineoldandroids:library:2.4.0",
"vlayout" : "com.alibaba.android:vlayout:1.2.8@aar",
"paginate" : "com.github.markomilos:paginate:0.5.1",//vlayout底部分页加载控件
"autosize" : "me.jessyan:autosize:1.1.2",//屏幕适配
"immersionbar" : "com.gyf.immersionbar:immersionbar:3.0.0",//沉浸式状态栏
"ultraviewpager" : "com.alibaba.android:ultraviewpager:1.0.7.7@aar",//viewpager
"SmartRefreshLayout" : "com.scwang.smartrefresh:SmartRefreshLayout:1.1.0",
"SmartRefreshHeader" : "com.scwang.smartrefresh:SmartRefreshHeader:1.1.0",//没有使用特殊Header,可以不加这行
"BaseRecyclerViewAdapterHelper": "com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.47-androidx",
"circleimageview" : "de.hdodenhof:circleimageview:3.0.1",//圆形图标
"swipeRecyclerview" : "com.yanzhenjie.recyclerview:x:1.3.2",//侧滑recyclerView
//工具库
"gson" : "com.google.code.gson:gson:2.8.5",
"arouter" : "com.alibaba:arouter-api:1.5.0",
"arouter-compiler" : "com.alibaba:arouter-compiler:1.2.2",
"progressmanager" : "me.jessyan:progressmanager:1.5.0",
"retrofit-url-manager" : "me.jessyan:retrofit-url-manager:1.4.0",
"lifecyclemodel" : "me.jessyan:lifecyclemodel:1.0.1",
"tinypinyin" : "com.github.promeg:tinypinyin:1.0.0",//汉字转拼音库
"walle" : "com.meituan.android.walle:library:1.1.6",//walle分渠道
"mmkv" : "com.tencent:mmkv:1.1.1",//替代sp的mmkv
//tinker热修复
"tinker-android-anno" : "com.tencent.tinker:tinker-android-anno:1.9.14",
"tinker" : "com.tencent.tinker:tinker-android-lib:1.9.1",
"tinker-android-lib" : "com.tencent.tinker:tinker-android-lib:1.9.14",
"crashreport_upgrade" : "com.tencent.bugly:crashreport_upgrade:1.4.1",//bugly
//test
"junit" : "junit:junit:4.12",
'androidJunit' :'androidx.test.ext:junit:1.1.1',
"androidJUnitRunner" : "android.support.test.runner.AndroidJUnitRunner",
"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"]}",
"mockito-core" : "org.mockito:mockito-core:1.+",
"timber" : "com.jakewharton.timber:timber:4.7.1",
"leakcanary" : "com.squareup.leakcanary:leakcanary-android:2.3",
"umeng-analytics" : "com.umeng.analytics:analytics:6.0.1"
]
}