-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
109 lines (85 loc) · 2.43 KB
/
build.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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.gradle_version = "4.0.1"
ext.kotlin_version = "1.4.21"
ext.kotlin_coroutine_version = "1.3.9"
repositories {
//阿里云镜像
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
maven {
url 'http://maven.aliyun.com/nexus/content/repositories/releases/'
}
maven {
url 'https://maven.aliyun.com/repository/jcenter'
}
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$gradle_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
//阿里云镜像
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
maven {
url 'http://maven.aliyun.com/nexus/content/repositories/releases/'
}
maven {
url 'https://maven.aliyun.com/repository/jcenter'
}
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext{
/***app version***/
appVersionCode = 1
appVersionName = "1.0.0"
/***Sdk & tools***/
compileSdkVersion = 30
buildToolsVersion = "29.0.3"
minSdkVersion = 21
targetSdkVersion = 30
javaVersion = JavaVersion.VERSION_1_8
multidexVersion = "2.0.1"
appCompatVersion = "1.2.0"
materialVersion = "1.0.0"
liveDataVersion = "2.0.0"
recyclerViewVersion = "1.1.0"
/***Kotlin version**/
core_ktx_version = "1.3.1"
/***third party version***/
okHttpVersion = "4.9.0"
okHttpLoggingInterceptorVersion = "4.9.0"
retrofitVersion = "2.9.0"
adapter_rxJava2Version = "2.9.0"
converter_gsonVersion = "2.9.0"
rxJavaVersion = "3.0.6"
rxAndroidVersion = "3.0.0"
gsonVersion = "2.8.6"
toastVersion = "8.6"
arouterApiVersion = "1.5.0"
arouterCompilierVersion = "1.2.2"
mmkvVersion = "1.2.2"
liveDataVersion = "2.2.0"
kotlinPoetVersion = "1.5.0"
materialVersion="1.1.0"
constraintLayoutVersion = "1.1.3"
loggerVersion = "2.2.0"
glideVersion = "4.11.0"
commons_Lang_3_Version = "3.7"
/***test framework version***/
junit_junit_version = "4.13"
ext_junit_version = "1.1.2"
espresso_core_versino = "3.3.0"
}