forked from JsonChao/Awesome-WanAndroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.gradle
196 lines (152 loc) · 9.89 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
ext {
android = [
compileSdkVersion : 27,
buildToolsVersion : "28.0.3",
minSdkVersion : 21,
targetSdkVersion : 27,
versionCode : 9,
versionName : "1.2.5",
renderscriptTargetApi : 21
]
version = [
supportLibraryVersion : "28.0.0",
smartrefreshVersion : "1.1.0-alpha-21",
okhttpVersion : "3.9.0",
retrofitVersion : "2.3.0",
glideVersion : "4.0.0",
daggerVersion : "2.15",
butterknifeVersion : "8.8.1",
fragmentationVersion : "1.2.4",
leakcanaryVersion : "1.6.3"
]
dependencies = [
// base
"appcompat-v7" : "com.android.support:appcompat-v7:${version["supportLibraryVersion"]}",
"cardview-v7" : "com.android.support:cardview-v7:${version["supportLibraryVersion"]}",
"support-v4" : "com.android.support:support-v4:${version["supportLibraryVersion"]}",
"design" : "com.android.support:design:${version["supportLibraryVersion"]}",
"constraint-layout" : "com.android.support.constraint:constraint-layout:1.0.2",
// ui
"SmartRefreshLayout" :"com.scwang.smartrefresh:SmartRefreshLayout:${version["smartrefreshVersion"]}",
"SmartRefreshHeader" : "com.scwang.smartrefresh:SmartRefreshHeader:${version["smartrefreshVersion"]}",
"banner" : "com.youth.banner:banner:1.4.10",
"FlycoTabLayout_Lib" : "com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar",
"VerticalTabLayout" : "q.rorbin:VerticalTabLayout:1.2.5",
"flowlayout-lib" : "com.hyman:flowlayout-lib:1.1.2",
"agentweb" : "com.just.agentweb:agentweb:4.0.2",
// net
"gson" : "com.google.code.gson:gson:2.8.2",
"okhttp" : "com.squareup.okhttp3:okhttp:${version["okhttpVersion"]}",
"logging-interceptor" : "com.squareup.okhttp3:logging-interceptor:${version["okhttpVersion"]}",
"retrofit" : "com.squareup.retrofit2:retrofit:${version["retrofitVersion"]}",
"converter-gson" : "com.squareup.retrofit2:converter-gson:${version["retrofitVersion"]}",
"adapter-rxjava2" : "com.squareup.retrofit2:adapter-rxjava2:${version["retrofitVersion"]}",
"glide" : "com.github.bumptech.glide:glide:${version["glideVersion"]}",
"retrofit-url-manager" : "me.jessyan:retrofit-url-manager:1.4.0",
// dao
"greendao" : "org.greenrobot:greendao:3.2.2",
// rx
"rxjava" : "io.reactivex.rxjava2:rxjava:2.2.4",
"rxandroid" : "io.reactivex.rxjava2:rxandroid:2.1.0",
"rxbinding" : "com.jakewharton.rxbinding2:rxbinding:2.1.0",
"rxpermissions" : "com.tbruyelle.rxpermissions2:rxpermissions:0.9.5@aar",
// di
"dagger" : "com.google.dagger:dagger:${version["daggerVersion"]}",
"dagger-android" : "com.google.dagger:dagger-android:${version["daggerVersion"]}",
"dagger-android-support" : "com.google.dagger:dagger-android-support:${version["daggerVersion"]}",
"javax_annotation" : "org.glassfish:javax.annotation:10.0-b28",
"butterknife" : "com.jakewharton:butterknife:${version["butterknifeVersion"]}",
// multidex
"multidex" : "com.android.support:multidex:1.0.3",
// other
"lottie" : "com.airbnb.android:lottie:2.3.0",
"BaseRecyclerViewAdapterHelper" : "com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.50",
"fragmentation" : "me.yokeyword:fragmentation:${version["fragmentationVersion"]}",
"fragmentation-swipeback" : "me.yokeyword:fragmentation-swipeback:${version["fragmentationVersion"]}",
"crashreport_upgrade" : "com.tencent.bugly:crashreport_upgrade:latest.release",
"logger" : "com.orhanobut:logger:2.1.1",
"ByeBurger" : "com.github.githubwing:ByeBurger:1.2.3",
"PersistentCookieJar" : "com.github.franmontiel:PersistentCookieJar:v1.0.1",
"XUpdate" : "com.github.xuexiangjys:XUpdate:1.0.6",
// performance
"epic" : "me.weishu:epic:0.6.0",
"aspectjrt" : "org.aspectj:aspectjrt:1.8.14",
"x2c-lib" : "com.zhangyue.we:x2c-lib:1.0.6",
"soloader" : "com.facebook.soloader:soloader:0.8.0",
"stetho" : "com.facebook.stetho:stetho:1.5.1",
"stetho-okhttp3" : "com.facebook.stetho:stetho-okhttp3:1.4.2"
]
annotationProcessor = [
"glide_compiler" : "com.github.bumptech.glide:compiler:${version["glideVersion"]}",
"dagger-compiler" : "com.google.dagger:dagger-compiler:${version["daggerVersion"]}",
"dagger-android-processor" : "com.google.dagger:dagger-android-processor:${version["daggerVersion"]}",
"butterknife-compiler" : "com.jakewharton:butterknife-compiler:${version["butterknifeVersion"]}",
"x2c-apt" : "com.zhangyue.we:x2c-apt:1.1.2"
]
apiFileDependencies = [
"launchstarter" : "libs/launchstarter-release-1.0.0.aar",
"yearclass" : "libs/yearclass-release-1.0.0.aar"
]
debugImplementationDependencies = [
"MethodTraceMan" : "com.github.zhengcx:MethodTraceMan:1.0.7"
]
releaseImplementationDependencies = [
"MethodTraceMan" : "com.github.zhengcx:MethodTraceMan:1.0.5-noop"
]
androidTestImplementationDependencies = [
"espresso-contrib" : "com.android.support.test.espresso:espresso-contrib:3.0.2",
"espresso-intents" : "com.android.support.test.espresso:espresso-intents:3.0.2",
"espresso-accessibility" : "com.android.support.test.espresso:espresso-accessibility:3.0.2",
"espresso-web" : "com.android.support.test.espresso:espresso-web:3.0.2",
"idling-concurrent" : "com.android.support.test.espresso.idling:idling-concurrent:3.0.2",
"runner" : "com.android.support.test:runner:1.0.2"
]
testImplementationDependencies = [
"asm" : "org.ow2.asm:asm:7.1",
"asm-commons" : "org.ow2.asm:asm-commons:7.1",
// unit test , 为了整合mockito和PowerMockito,mockito暂时最高只支持2.8.9
"junit" : "junit:junit:4.12",
"mockito" : "org.mockito:mockito-core:2.8.9",
"powermock-module-junit4" : "org.powermock:powermock-module-junit4:1.7.4",
"powermock-module-junit4-rule" : "org.powermock:powermock-module-junit4-rule:1.7.4",
"powermock-api-mockito2" : "org.powermock:powermock-api-mockito2:1.7.4",
"powermock-classloading-xstream" : "org.powermock:powermock-classloading-xstream:1.7.4",
"robolectric" : "org.robolectric:robolectric:3.8",
"shadows-support-v4" : "org.robolectric:shadows-support-v4:3.4-rc2",
"shadows-multidex" : "org.robolectric:shadows-multidex:3.+"
]
debugApiDependencies = [
"blockcanary-android" : "com.github.markzhai:blockcanary-android:1.5.0"
]
releaseApiDependencies = [
"blockcanary-no-op" : "com.github.markzhai:blockcanary-no-op:1.5.0"
]
compileOnlyDependencies = [
"lancet-base" : "me.ele:lancet-base:1.0.5"
]
implementationExcludes = [
"com.android.support.test.espresso:espresso-idling-resource:3.0.2" : [
'com.android.support' : 'support-annotations'
]
]
debugImplementationExcludes = [
"com.squareup.leakcanary:leakcanary-android:${version["leakcanaryVersion"]}" : [
'com.android.support' : 'support-annotations'
]
]
releaseImplementationExcludes = [
"com.squareup.leakcanary:leakcanary-android-no-op:${version["leakcanaryVersion"]}" : [
'com.android.support' : 'support-annotations'
]
]
testImplementationExcludes = [
"com.squareup.leakcanary:leakcanary-android-no-op:${version["leakcanaryVersion"]}" : [
'com.android.support' : 'support-annotations'
]
]
androidTestImplementationExcludes = [
"com.android.support.test.espresso:espresso-core:3.0.2" : [
'com.android.support' : 'support-annotations'
]
]
}