forked from aleyn97/MVVMLin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.gradle
84 lines (74 loc) · 3.59 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
ext {
//android开发版本配置
android = [
compileSdkVersion: 28,
buildToolsVersion: "28.0.3",
applicationId : "com.pcl.mvvm",
minSdkVersion : 19,
targetSdkVersion : 28,
versionCode : 4,
versionName : "1.0.3",
]
//version配置
versions = [
appcompat : "1.1.0",
material : '1.0.0',
junit : "4.12",
extensions: '2.2.0-rc01',
constraint: '1.1.3',
annotation: '1.1.0',
dagger2 : '2.26',
room : '2.2.4'
]
//androidx
androidx = [
appcompat : "androidx.appcompat:appcompat:${versions['appcompat']}",
material : "com.google.android.material:material:${versions['material']}",
'core-ktx' : "androidx.core:core-ktx:1.1.0",
'constraint-layout': "androidx.constraintlayout:constraintlayout:${versions["constraint"]}",
//viewModel and LiveData
extensions : "androidx.lifecycle:lifecycle-extensions:${versions['extensions']}",
'viewmodel-ktx' : "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions['extensions']}",
annotation : 'androidx.annotation:annotation:1.1.0'
]
test = [
'junit' : "junit:junit:${versions['junit']}",
'runner' : 'androidx.test:runner:1.2.0',
'espresso-core': 'androidx.test.espresso:espresso-core:3.2.0'
]
//network
retrofit = [
retrofit : "com.squareup.retrofit2:retrofit:2.6.0",
"converter-gson": "com.squareup.retrofit2:converter-gson:2.6.0",
]
dagger2 = [
"dagger-android" : "com.google.dagger:dagger-android:${versions["dagger2"]}",
"dagger-android-support" : "com.google.dagger:dagger-android-support:${versions["dagger2"]}",
"dagger-compiler" : "com.google.dagger:dagger-compiler:${versions["dagger2"]}",
"dagger-android-processor": "com.google.dagger:dagger-android-processor:${versions["dagger2"]}"
]
room = [
'room-runtime' : "androidx.room:room-runtime:${versions["room"]}",
'room-compiler': "androidx.room:room-compiler:${versions["room"]}",
'room-ktx' : "androidx.room:room-ktx:${versions["room"]}",
'room-testing' : "androidx.room:room-testing:${versions["room"]}",
]
//依赖第三方配置
dependencies = [
//glide图片加载
glide : "com.github.bumptech.glide:glide:4.9.0",
"glide-compiler" : "com.github.bumptech.glide:compiler:4.9.0",
//material-dialogs
"material-dialogs-lifecycle": "com.afollestad.material-dialogs:lifecycle:3.1.1",
"material-dialogs-core" : "com.afollestad.material-dialogs:core:3.1.1",
//Utils
utilcodex : 'com.blankj:utilcodex:1.26.0',
banner : 'com.github.xiaohaibin:XBanner:androidx_v1.0.2',
'bottom-tab' : 'me.majiajie:pager-bottom-tab-strip:2.3.0X',
BRVAH : 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46',
bdclta : 'me.tatarka.bindingcollectionadapter2:bindingcollectionadapter:3.1.1',
'bdclta-rv' : 'me.tatarka.bindingcollectionadapter2:bindingcollectionadapter-recyclerview:3.1.1'
]
androidxs = androidx.values()
network = retrofit.values()
}