-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
49 lines (46 loc) · 1.86 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
//版本
ext.versions = [
'minSdk' : 21,
'compileSdk': 31,
'targetSdk' : 31,
]
//依赖
ext.deps = [
'core' : [
'test': [
'junit' : 'junit:junit:4.12',
'runner' : 'androidx.test:runner:1.2.0',
'expresso': 'androidx.test.espresso:espresso-core:3.2.0'
]
],
'extension': [
'silentUpdate' : 'com.github.caoyanglee:SilentUpdate:0.5.8',//静默更新
'imagePicker' : 'com.github.caoyanglee:ImagePicker:0.3.6',//图片选择
'metro' : 'com.github.caoyanglee.Metro:lib:0.3.3',//Metro路由
'metro_compiler': 'com.github.caoyanglee.Metro:compiler:0.3.3',//Metro路由 注解处理器
]
]
ext.kotlin_version = '1.7.0'
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }//阿里云 maven & jcenter
maven { url "https://jitpack.io" } // 添加jitpack
maven { url 'https://maven.aliyun.com/repository/google' }//阿里云 google
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }//阿里云 maven & jcenter
maven { url "https://jitpack.io" } // 添加jitpack
maven { url 'https://maven.aliyun.com/repository/google' }//阿里云 google
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}