-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.gradle
54 lines (44 loc) · 2.77 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
//1.在项目的 build.gradle 中添加: apply from: "config.gradle"
//或者 ext 也可写在项目的 build.gradle 中
ext {
// compileSdkVersion : 29,//rootProject.compileSdkVersion
android = [
buildToolsVersion : "29.0.0",
compileSdkVersion : 29,//rootProject.ext.android.compileSdkVersion or rootProject.ext.android["compileSdkVersion"]
minSdkVersion : 21,
targetSdkVersion : 29,
versionCode : 2022011901,//2020年xx月xx日xx(版本)
versionName : "2.0.1"
]
version = [
androidSupportSdkVersion: "28.0.0",
espressoSdkVersion : "3.0.1",
canarySdkVersion : "1.5.4",
]
//androidx 的依赖包
dependencies = [
// rootProject.ext.dependencies.design or rootProject.ext.dependencies["design"]
"design" : "com.google.android.material:material:${version.androidSupportSdkVersion}",
"support_v4" : 'androidx.legacy:legacy-support-v4:1.0.0',//${version["androidSupportSdkVersion"]}
"appcompat_v7" : 'androidx.appcompat:appcompat:1.0.0',
"swiperefreshlayout" : 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0',
"cardview_v7" : "androidx.cardview:cardview:${version.androidSupportSdkVersion}",
"annotations" : "androidx.annotation:annotation:${version.androidSupportSdkVersion}",
"recyclerview_v7" : "androidx.recyclerview:recyclerview:${version.androidSupportSdkVersion}",
"androidx_core" : 'androidx.core:core:1.3.1',
"constraint_layout" : 'androidx.constraintlayout:constraintlayout:2.0.4',
//tools
"multidex" : "androidx.multidex:multidex:1.0.3",
//test
"androidJUnitRunner" : "android.support.test.runner.AndroidJUnitRunner",
"junit" : "junit:junit:4.12",
"runner" : "androidx.test:runner:1.0.1",
"espresso-core" : "androidx.test.espresso:espresso-core:${version["espressoSdkVersion"]}",
"espresso-contrib" : "androidx.test.espresso:espresso-contrib:${version["espressoSdkVersion"]}",
"espresso-intents" : "androidx.test.espresso:espresso-intents:${version["espressoSdkVersion"]}",
"canary-debug" : "com.squareup.leakcanary:leakcanary-android:${version["canarySdkVersion"]}",
"canary-release" : "com.squareup.leakcanary:leakcanary-android-no-op:${version["canarySdkVersion"]}",
//Others
"greendao" : "org.greenrobot:greendao:3.3.0",
]
}