-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
72 lines (63 loc) · 1.83 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.default_module_version = 'latest.release'
ext.kotlin_version = "1.6.0"
ext.green_dao_version = "3.3.0"
repositories {
google()
mavenCentral()
maven {
url "https://maven.aliyun.com/repository/public"
}
maven {
url "https://jitpack.io"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.greenrobot:greendao-gradle-plugin:${green_dao_version}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://maven.aliyun.com/repository/public"
}
maven {
url "https://jitpack.io"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
// 用于编译的SDK版本
compile_sdk_version = 30
// 用于Gradle编译项目的工具版本
build_tools_version = "30.0.3"
// 最低支持Android版本
min_sdk_version = 21
// 目标版本
target_sdk_version = 30
//JavaVersion
java_version = JavaVersion.VERSION_1_8
ktx_core_version = "1.6.0"
kotlinx_coroutines_version = "1.5.2"
appcompat_version = "1.3.1"
material_version = "1.3.0"
constraint_version = "2.1.1"
multidex_version = "2.0.1"
junit_version = "4.13.2"
junit_ext_version = "1.1.2"
test_espresso_version = "3.3.0"
permission_version = "3.0.0"
tiny_pinyin = "2.0.3"
gson_version = "2.8.7"
fast_json_version = "1.1.72.android"
}