-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (53 loc) · 1.67 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
//bugly符号表
classpath 'com.tencent.bugly:symtabfileuploader:2.2.1'
//Add New Relic
classpath "com.newrelic.agent.android:agent-gradle-plugin:5.21.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.11"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
maven { url 'https://dl.bintray.com/umsdk/release' }
}
}
ext {
compileSdkVersion = 27
buildToolsVersion = "27.0.3"
minSdkVersion = 16
targetSdkVersion = 27
//kotlin
kotlinVersion = '1.1.3-2'
ankoVersion = '0.9.1'
//打包类型
appPackageType = "product"
File localProperties = new File('local.properties')
def buildEnv
if (localProperties.exists()) {
Properties properties = new Properties()
properties.load(localProperties.newDataInputStream())
buildEnv = properties.getProperty('buildModel')
if (buildEnv != null && buildEnv.contains("debug")) {
appPackageType = "debug"
} else if (buildEnv != null && buildEnv.contains("beta")) {
appPackageType = "beta"
}
println "App package type is " + appPackageType
}
}
//task clean(type: Delete) {
// delete rootProject.buildDir
//}