-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_config.gradle
More file actions
217 lines (162 loc) · 7.78 KB
/
build_config.gradle
File metadata and controls
217 lines (162 loc) · 7.78 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
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
//Support
def SupportVersion = "27.1.0"
def ConstraintLayoutVersion = "1.1.0"
// Retrofit
def RetrofitVersion = "2.4.0"
// OkHttp
def OkHttpVersion = '3.11.0'
// LeakCanary
def LeakCanaryVersion = "1.6.2"
// RxJava
def RxJavaVersion = '2.2.0-SNAPSHOT'
// RxAndroid
def RxAndroidVersion = '2.0.2'
// GreenDao
def GreenDaoVersion = "3.2.2"
// EventBus
def EventBusVersion = "3.1.1"
// ButterKnife
def ButterKnifeVersion = "8.8.1"
// Gson
def GsonVersion = "2.8.5"
//SmartRefresh
def SmartRefreshLayoutVersion = "1.1.0-alpha-7"
//rxpermissions
def RxPermissionsVersion = "0.9.5@aar"
//GifDrawable
def GifDrawableVersion = "1.2.12"
//Crop
def CropVersion = "1.0.1@aar"
//MultiDex
def MultiDexVersion = "1.0.2"
//libOneKeyPayment
def OneKeyPaymentVersion = "1.0.3"
//RvAdapter
def RvAdapterVersion = "1.1.2"
//Used
def UsedVersion = "1.0.5-alpha-1"
//Banner
def BannerVersion = "1.0.2"
//Widget
def WidgetVersion = "1.0.2"
//AnnotationsJava
def AnnotationsJavaVersion = "15.0"
//PictureLoad
def PictureLoadVersion = "1.0.0"
//ErrorCollection
def ErrorCollectionVersion = "1.0.2"
//Junit
def JunitVersion = "4.12"
//Runner
def RunnerVersion = "1.0.2"
//EspressoCore
def EspressoCoreVersion = "3.0.2"
//Timber
def TimberVersion = "4.7.1"
//Paging
def PagingVersion = "1.0.1"
def buildDate() {
def date = new Date()
def formattedDate = date.format('yyyyMMddHHmmss')
return formattedDate
}
ext {
android = [
compileSdkVersion: 28,
buildToolsVersion: "28.0.3",
minSdkVersion : 16,
targetSdkVersion : 23,
greenDaoDBVersion: 1,
]
greenDao = [
dbVersion : 3,
daoPackage : "org.daimhim.db",
targetGenDir: "src/main/java"
]
config = [
quiet : true,
abortOnError : false,
ignoreWarnings : true,
checkReleaseBuilds: false
]
dependencies = [
libJunit : "junit:junit:${JunitVersion}",
libRunner : "com.android.support.test:runner:${RunnerVersion}",
libEspressoCore : "com.android.support.test.espresso:espresso-core:${EspressoCoreVersion}",
// https://developer.android.com/topic/libraries/support-library/revisions.html
libDesign : "com.android.support:design:${SupportVersion}",
libSupportV4 : "com.android.support:support-v4:${SupportVersion}",
libAppCompatV7 : "com.android.support:appcompat-v7:${SupportVersion}",
libRecyclerViewV7 : "com.android.support:recyclerview-v7:${SupportVersion}",
libCardViewV7 : "com.android.support:cardview-v7:${SupportVersion}",
libGridLayout : "com.android.support:gridlayout-v7:${SupportVersion}",
libConstraintLayout : "com.android.support.constraint:constraint-layout:${ConstraintLayoutVersion}",
libMultiDex : "com.android.support:multidex:${MultiDexVersion}",
// https://github.com/square/retrofit
libRetrofit : "com.squareup.retrofit2:retrofit:${RetrofitVersion}",
libRetrofitAdapterRxJava : "com.squareup.retrofit2:adapter-rxjava:${RetrofitVersion}",
libRetrofitConverterGson : "com.squareup.retrofit2:converter-gson:${RetrofitVersion}",
libRetrofitConverterScalars: "com.squareup.retrofit2:converter-scalars:${RetrofitVersion}",
// https://github.com/square/okhttp
libOkHttp : "com.squareup.okhttp3:okhttp:${OkHttpVersion}",
libOkHttpLoggingInterceptor: "com.squareup.okhttp3:logging-interceptor:${OkHttpVersion}",
// https://github.com/ReactiveX/RxJava
libRxJava : "io.reactivex.rxjava2:rxjava:${RxJavaVersion}",
// https://github.com/ReactiveX/RxAndroid
libRxAndroid : "io.reactivex.rxjava2:rxandroid:${RxAndroidVersion}",
// https://github.com/greenrobot/EventBus
libEventBus : "org.greenrobot:eventbus:${EventBusVersion}",
// https://github.com/JakeWharton/butterknife
libButterKnife : "com.jakewharton:butterknife:${ButterKnifeVersion}",
libButterknifeCompiler : "com.jakewharton:butterknife-compiler:${ButterKnifeVersion}",
// https://github.com/greenrobot/greenDAO
libGreenDao : "org.greenrobot:greendao:${GreenDaoVersion}",
// https://github.com/google/gson
libGson : "com.google.code.gson:gson:${GsonVersion}",
//https://github.com/scwang90/SmartRefreshLayout
libSmartRefreshLayout : "com.scwang.smartrefresh:SmartRefreshLayout:${SmartRefreshLayoutVersion}",
//https://github.com/tbruyelle/RxPermissions
libRxPermissions : "com.tbruyelle.rxpermissions2:rxpermissions:${RxPermissionsVersion}",
//https://github.com/koral--/android-gif-drawable
libGifDrawable : "pl.droidsonroids.gif:android-gif-drawable:${GifDrawableVersion}",
//https://github.com/jdamcd/android-crop
libCrop : "com.soundcloud.android:android-crop:${CropVersion}",
//https://github.com/JakeWharton/timber
libTimber : "com.jakewharton.timber:timber:${TimberVersion}",
//
libPaging : "android.arch.paging:runtime:${PagingVersion}",
//https://github.com/Daimhim
libOneKeyPayment : "org.daimhim.onekeypayment:onekeypayment:${OneKeyPaymentVersion}",
libWidget : "org.daimhim.widget:widget:${WidgetVersion}",
libBanner : "org.daimhim.widget:banner:${BannerVersion}",
libUsed : "com.github.Daimhim.usedlibrary:used:${UsedVersion}",
libRvAdapter : "org.daimhim.rvdecoration:rvadapter:${RvAdapterVersion}",
libPictureLoad : "org.daimhim.pictureload:pictureload:${PictureLoadVersion}",
libErrorCollection : "org.daimhim.errorcollection:errorcollection:${ErrorCollectionVersion}",
//org.jetbrains:annotations-java5:15.0
libAnnotationsJava5 : "org.jetbrains:annotations-java5:${AnnotationsJavaVersion}",
]
debugDependencies = [
// https://github.com/square/leakcanary
leakCanary : "com.squareup.leakcanary:leakcanary-android:${LeakCanaryVersion}",
leakFragmentCanary: "com.squareup.leakcanary:leakcanary-support-fragment:${LeakCanaryVersion}",
]
releaseDependencies = [
// https://github.com/square/leakcanary
leakCanary: "com.squareup.leakcanary:leakcanary-android-no-op:${LeakCanaryVersion}",
]
}
//implementation rootProject.ext.dependencies.libTimber
//implementation rootProject.ext.dependencies.libAppCompatV7
//implementation rootProject.ext.dependencies.libRecyclerViewV7
//implementation rootProject.ext.dependencies.libConstraintLayout
//testImplementation rootProject.ext.dependencies.libJunit
//androidTestImplementation rootProject.ext.dependencies.libRunner
//androidTestImplementation rootProject.ext.dependencies.libEspressoCore
//debugImplementation rootProject.ext.debugDependencies.leakCanary
//debugImplementation rootProject.ext.debugDependencies.leakFragmentCanary
//releaseImplementation rootProject.ext.releaseDependencies.leakCanary
//compileSdkVersion rootProject.ext.android.compileSdkVersion
//buildToolsVersion rootProject.ext.android.buildToolsVersion
//minSdkVersion rootProject.ext.android.minSdkVersion
//targetSdkVersion rootProject.ext.android.targetSdkVersion