-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.gradle
More file actions
144 lines (119 loc) · 7.24 KB
/
config.gradle
File metadata and controls
144 lines (119 loc) · 7.24 KB
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
/**
* 资源依赖配置表
*/
def supportVersion = "26.1.0"
def eventbusVersion = "3.1.1"
def constraintVerion = "1.0.2"
def streamVersion = "1.0.8"
def rxandroidVersion = "1.2.1"
def rxBindingVersion = "0.4.0"
def retrofitVersion = "2.2.0"
def okHttpVersion = "3.9.1"
def gsonVersion = "2.8.2"
def stethoVersion = "1.5.0"
def butterKnifeVersion = "8.8.1"
def daggerVersion = "2.8"
def glideVersion = "4.4.0"
def multidexVersion = "1.0.1"
def nanohttpdVersion = "2.3.1"
def gradleToolVersion = "3.0.0"
def leakcanaryVersion = "1.5.4"
def xmpcoreVersion = "5.1.2"
def pluginVersion = "1.0.0"
def converterGsonVersion= "2.0.2"
def ormliteVersion = "5.0"
def fastjsonVersion = "1.2.31"
def junitVersion = "4.12"
def retrofit2FastjsonConverterVersion = "1.2"
//test模块
def testRunnerVersion = "1.0.1"
def testEspressoVersion = "3.0.1"
def testJunitVersion = "4.12"
project.ext {
//----------------------------------------------------------------------- App配置------------------------------------------------------------------------------------
//app
app = [
applicationId : "com.abt.recycler",
versionCode : 1,
versionName : "1.0.0"
]
//----------------------------------------------------------------------- 组件化插件配置------------------------------------------------------------------------------------
plugin = [
"group" : "com.pi.plugin",
"plugin" : "build-gradle:${pluginVersion}",
"version" : "${pluginVersion}",
"repo" : "../repo"
]
//----------------------------------------------------------------------- android配置------------------------------------------------------------------------------------
//android config
android = [
compileSdkVersion: 26,
minSdkVersion : 23,
targetSdkVersion : 26,
]
//----------------------------------------------------------------------- test配置------------------------------------------------------------------------------------
test = [
"runner" : "com.android.support.test:runner:${testRunnerVersion}",
"espresso" : "com.android.support.test.espresso:espresso-core:${testEspressoVersion}",
"junit" : "junit:junit:${testJunitVersion}",
"androidRunner" : "android.support.test.runner.AndroidJUnitRunner",
"bugtags" : "com.bugtags.library:bugtags-lib:latest.integration"
]
//----------------------------------------------------------------------- 依赖配置------------------------------------------------------------------------------------
dependencies = [
"build-gradle" : "com.android.tools.build:gradle:${gradleToolVersion}",
//android-support
"support-v4" : "com.android.support:support-v4:${supportVersion}",
"appcompat-v7" : "com.android.support:appcompat-v7:${supportVersion}",
"design" : "com.android.support:design:${supportVersion}",
"recyclerview-v7" : "com.android.support:recyclerview-v7:${supportVersion}",
"cardview-v7" : "com.android.support:cardview-v7:${supportVersion}",
"constraint-layout" : "com.android.support.constraint:constraint-layout:${constraintVerion}",
//处理65536依赖包
"multidex" : "com.android.support:multidex:${multidexVersion}",
"nanohttpd" :"org.nanohttpd:nanohttpd:${nanohttpdVersion}",
"xmpcore" :"com.adobe.xmp:xmpcore:${xmpcoreVersion}",
//java8-support
"stream" : "com.annimon:stream:${streamVersion}",
//rx
"rxandroid" : "io.reactivex:rxandroid:${rxandroidVersion}",
"rxbinding" : "com.jakewharton.rxbinding:rxbinding:${rxBindingVersion}",
"rxbinding-support-v4" : "com.jakewharton.rxbinding:rxbinding-support-v4:${rxBindingVersion}",
"rxbinding-appcompat-v7" : "com.jakewharton.rxbinding:rxbinding-appcompat-v7:${rxBindingVersion}",
"rxbinding-design" : "com.jakewharton.rxbinding:rxbinding-design:${rxBindingVersion}",
"rxbinding-recyclerview-v7" : "com.jakewharton.rxbinding:rxbinding-recyclerview-v7:${rxBindingVersion}",
//retrofit
"retrofit" : "com.squareup.retrofit2:retrofit:${retrofitVersion}",
"adapter-rxjava" : "com.squareup.retrofit2:adapter-rxjava:${retrofitVersion}",
"gson" : "com.google.code.gson:gson:${gsonVersion}",
"converter-gson" : "com.squareup.retrofit2:converter-gson:${converterGsonVersion}",
"glide" : "com.github.bumptech.glide:glide:${glideVersion}",
"glideProcessor" : "com.github.bumptech.glide:compiler:${glideVersion}",
"glide-okhttp3-integration" : "com.github.bumptech.glide:okhttp3-integration:${glideVersion}",
"eventbus" : "org.greenrobot:eventbus:${eventbusVersion}",
"debugCompile" : "com.squareup.leakcanary:leakcanary-android:${leakcanaryVersion}",
"releaseCompile" : "com.squareup.leakcanary:leakcanary-android-no-op:${leakcanaryVersion}",
//dagger
"dagger" : "com.google.dagger:dagger:${daggerVersion}",
"dagger-compiler" : "com.google.dagger:dagger-compiler:${daggerVersion}",
//router
//"router" : "com.baronzhang.android:router:${routerVersion}",
//"router-compiler" : "com.baronzhang.android:router-compiler:${routerVersion}",
//butterKnife
"butterknife" : "com.jakewharton:butterknife:${butterKnifeVersion}",
"annotationProcessor" : "com.jakewharton:butterknife-compiler:${butterKnifeVersion}",
//facebook debug network
"stetho" : "com.facebook.stetho:stetho:${stethoVersion}",
"stetho-okhttp3" : "com.facebook.stetho:stetho-okhttp3:${stethoVersion}",
//okHttp3
"okhttp3" : "com.squareup.okhttp3:okhttp:${okHttpVersion}",
"okhttp3-logging-interceptor" : "com.squareup.okhttp3:logging-interceptor:${okHttpVersion}",
"okhttp3-okhttp-urlconnection" : "com.squareup.okhttp3:okhttp-urlconnection:${okHttpVersion}",
//others
"ormlite-android" : "com.j256.ormlite:ormlite-android:${ormliteVersion}",
"fastjson" : "com.alibaba:fastjson:${fastjsonVersion}",
"retrofit2-fastjson-converter": "com.github.BaronZ88:Retrofit2-FastJson-Converter:${retrofit2FastjsonConverterVersion}",
//test
"junit" : "junit:junit:${junitVersion}",
]
}