-
Notifications
You must be signed in to change notification settings - Fork 0
/
configs.gradle
112 lines (97 loc) · 6.75 KB
/
configs.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
ext {
isMultiApp = isBuildModule.toBoolean()
hosts = [
api_host_release: "",
api_host_debug : "http://"
]
api = [
api_host: hosts.api_host_debug
]
configs = [
logEnable: true, // LogCat开关
]
android = [
compileSdkVersion: 28,
buildToolsVersion: "28.0.3",
minSdkVersion : 17,
targetSdkVersion : 28
]
version = [
androidSupportSdkVersion: "28.0.0",
androidArchSdkVersion : "1.1.1",
retrofitSdkVersion : "2.6.1",
dagger2SdkVersion : "2.24",
glideSdkVersion : "4.8.0",
butterknifeSdkVersion : "10.1.0",
rxlifecycleSdkVersion : "1.0",
rxlifecycle2SdkVersion : "2.2.2",
espressoSdkVersion : "3.0.1",
canarySdkVersion : "1.5.4",
arouterSdkVersion : "1.5.0",
aRouterCompilerSdkVersion: "1.2.2",
okhttp3SdkVersion : "4.1.0",
canarySdkVersion : "2.0-beta-3",
]
dependencies = [
//support
"appcompat-v7" : "com.android.support:appcompat-v7:${version["androidSupportSdkVersion"]}",
"design" : "com.android.support:design:${version["androidSupportSdkVersion"]}",
"support-v4" : "com.android.support:support-v4:${version["androidSupportSdkVersion"]}",
"cardview-v7" : "com.android.support:cardview-v7:${version["androidSupportSdkVersion"]}",
"annotations" : "com.android.support:support-annotations:${version["androidSupportSdkVersion"]}",
"recyclerview-v7" : "com.android.support:recyclerview-v7:${version["androidSupportSdkVersion"]}",
"constraintlayout" : "com.android.support.constraint:constraint-layout:1.1.3",
"kotlin_stdlib" : "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
//network
"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}",
"okhttp3" : "com.squareup.okhttp3:okhttp:${version.okhttp3SdkVersion}",
"okhttp-urlconnection" : "com.squareup.okhttp:okhttp-urlconnection:2.0.0",
"logging-interceptor" : "com.squareup.okhttp3:logging-interceptor:${version.okhttp3SdkVersion}",
"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}",
//view
"butterknife" : "com.jakewharton:butterknife:${version["butterknifeSdkVersion"]}",
"butterknife-compiler" : "com.jakewharton:butterknife-compiler:${version["butterknifeSdkVersion"]}",
//rx2
"rxandroid2" : "io.reactivex.rxjava2:rxandroid:2.1.1",
"rxjava2" : "io.reactivex.rxjava2:rxjava:2.2.12",
"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",
"rxcache-jolyglot-gson" : "com.github.VictorAlbertos.Jolyglot:gson:0.0.4",
"rxpermissions2" : "com.github.tbruyelle:rxpermissions:0.10.2",
"rxerrorhandler2" : "me.jessyan:rxerrorhandler:2.1.1",
//mvvm( Lifecycles, LiveData, and ViewModel, Room)
"lifecycle-runtime" : "android.arch.lifecycle:runtime:${version["androidArchSdkVersion"]}",
"lifecycle-extensions" : "android.arch.lifecycle:extensions:${version["androidArchSdkVersion"]}",
"lifecycle-compiler" : "android.arch.lifecycle:compiler:${version["androidArchSdkVersion"]}",
"room-runtime" : "android.arch.persistence.room:runtime:${version["androidArchSdkVersion"]}",
"room-compiler" : "android.arch.persistence.room:compiler:${version["androidArchSdkVersion"]}",
"room-testing" : "android.arch.persistence.room:testing:${version["androidArchSdkVersion"]}",
"room-rxjava2" : "android.arch.persistence.room:rxjava2:${version["androidArchSdkVersion"]}",
//tools
"dagger2" : "com.google.dagger:dagger:${version["dagger2SdkVersion"]}",
"dagger2-android" : "com.google.dagger:dagger-android:${version["dagger2SdkVersion"]}",
"dagger2-android-support" : "com.google.dagger:dagger-android-support:${version["dagger2SdkVersion"]}",
"dagger2-compiler" : "com.google.dagger:dagger-compiler:${version["dagger2SdkVersion"]}",
"dagger2-android-processor": "com.google.dagger:dagger-android-processor:${version["dagger2SdkVersion"]}",
"arouter" : "com.alibaba:arouter-api:${version.arouterSdkVersion}",
"arouter-compiler" : "com.alibaba:arouter-compiler:${version.aRouterCompilerSdkVersion}",
"gson" : "com.google.code.gson:gson:2.8.5",
"eventbus" : "org.greenrobot:eventbus:3.1.1",
"mmkv" : "com.tencent:mmkv:1.0.22",
//test
"junit" : "junit:junit:4.12",
"androidJUnitRunner" : "android.support.test.runner.AndroidJUnitRunner",
"runner" : "com.android.support.test:runner:1.0.1",
"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"]}",
"canary-debug" : "com.squareup.leakcanary:leakcanary-android:${version.canarySdkVersion}",
"logger" : "com.orhanobut:logger:2.2.0",
]
}