-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
48 lines (39 loc) · 988 Bytes
/
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.novoda:bintray-release:0.7.0'
}
}
allprojects {
repositories {
google()
jcenter()
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
// App version
versionCode = 100
versionName = '1.0.0' // 这里的versionName完整格式为 x.x.x
// Sdk and tools
minSdkVersion = 16
targetSdkVersion = 27
compileSdkVersion = 27
buildToolsVersion = "27.0.3"
// App dependencies
supportLibraryVersion = '27.1.1'
// Sdk version
sdkVersionCode = 110
sdkVersionName = '1.1.0'
}