-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild.gradle
55 lines (50 loc) · 1.81 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: 'dependencies.gradle'
buildscript {
repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21"
classpath "com.google.dagger:hilt-android-gradle-plugin:2.36"
}
}
allprojects {
// build.gradle
allprojects {
repositories {
maven {
url "https://androidx.dev/snapshots/builds/6543454/artifacts/repository/"
}
}
}
repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://www.jitpack.io' }
google()
mavenCentral()
}
ext {
//发布debug版本修改此参数,发布release版本同时去掉debug
androidApplicationId = 'com.just.news'
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
releaseVersionNameSuffix = androidTargetSdkVersion
androidVersionName = "1.0"
androidVersionCode = 1
apkVersion = "" + androidVersionName
androidNdkVersion = '22.1.7171670'
androidMultiDexEnabled = true
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}