-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
69 lines (58 loc) · 2.1 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
buildscript {
// 编译: 2020-01-03
ext.support_gradle_version = '4.2.2'
// 核心: 2020-01-03
ext.support_activity_version = '1.1.0'
ext.support_fragment_version = '1.2.5'
ext.support_annotation_version = "1.1.0"
ext.support_appcompat_version = "1.1.0"
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
maven { url "https://jitpack.io" }
maven { url 'https://dl.bintray.com/umsdk/release' }
jcenter()
google()
}
dependencies {
classpath "com.android.tools.build:gradle:${support_gradle_version}"
}
}
allprojects {
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
maven { url "https://jitpack.io" }
maven { url 'https://dl.bintray.com/umsdk/release' }
jcenter()
google()
}
}
ext {
// 常量
plugin = [
com_android_application: 'com.android.application',
com_android_library : 'com.android.library',
andresguard : 'AndResGuard',
java : 'java',
armeabi_v7a : 'armeabi-v7a',
x86 : 'x86',
fastclick : 'android-aspectjx',
]
// 版本
android = [
applicationId : "com.kalu.safetools",
compileSdkVersion: 28,
buildToolsVersion: "28.0.3",
minSdkVersion : 23, // 6.0+
targetSdkVersion : 28, // 28之后强制使用https, 否则报错, 或者networkSecurityConfig
versionCode : 11,
versionName : "2.0.0"
]
// 依赖
dependencies = [
// 核心: 2020-01-03
"support_activity" : "androidx.activity:activity:$support_activity_version",
"support_fragment" : "androidx.fragment:fragment:$support_fragment_version",
"support_annotation": "androidx.annotation:annotation:$support_annotation_version",
"support_appcompat" : "androidx.appcompat:appcompat:$support_appcompat_version",
]
}