-
Notifications
You must be signed in to change notification settings - Fork 139
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (63 loc) · 2.41 KB
/
Copy pathbuild.gradle
File metadata and controls
72 lines (63 loc) · 2.41 KB
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
buildscript {
ext.kotlin_version = '1.7.20'
repositories {
mavenCentral()
maven { url 'https://www.jitpack.io' }
gradlePluginPortal()
// 华为云镜像Maven中央仓库
maven { url 'https://repo.huaweicloud.com/repository/maven/' }
// 华为云Google镜像(关键:包含AGP最新版本)
maven { url 'https://repo.huaweicloud.com/repository/google/' }
// 华为云Gradle镜像插件仓库
maven { url 'https://repo.huaweicloud.com/repository/gradle-plugin/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenCentral()
maven { url 'https://www.jitpack.io' }
gradlePluginPortal()
// 华为云镜像Maven中央仓库
maven { url 'https://repo.huaweicloud.com/repository/maven/' }
// 华为云Google镜像(关键:包含AGP最新版本)
maven { url 'https://repo.huaweicloud.com/repository/google/' }
// 华为云Gradle镜像插件仓库
maven { url 'https://repo.huaweicloud.com/repository/gradle-plugin/' }
}
configurations.configureEach {
resolutionStrategy {
// 强制所有库使用相同的Kotlin版本
force "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
force "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
force "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
}
}
ext {
versionCode = 2029
versionName = '2.0.29'
androidCompileSdkVersion = 34
recyclerviewSdkVersion = '1.3.0'
appcompatSdkVersion = '1.7.0'
constraintlayoutSdkVersion = '2.1.4'
documentfileSdkVersion = '1.0.1'
// 该库从1.5.0开始需要你在gradle文件中声明compile SDK version=31,如果升级至1.10.0m,那么compile SDK version至少需要34
androidMaterialSdkVersion = '1.11.0'
minSdkVersion = 21
targetSdkVersion = 33
junitVersion = '4.12'
rxjava2Version = '2.0.2'
retrofit2Version = '2.1.0'
gsonVersion = '2.6.2'
butterknifeVersion = '8.4.0'
// kotlin版本
ktx_version = '1.13.0'
// kotlin协程版本
ktx_coroutines_version = '1.7.3'
}