-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathbuild.gradle
74 lines (58 loc) · 1.78 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
70
71
72
73
74
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
//butterknife
mavenCentral()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
//butterknife
classpath 'com.jakewharton:butterknife-gradle-plugin:8.4.0'
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
def androidSupportVersion = '25.3.1'
def butterknifeVersion = '8.4.0'
// Define versions in a single place
//时间:2017.2.13;每次修改版本号都要添加修改时间
ext {
// Sdk and tools
//localBuildToolsVersion是gradle.properties中的数据
buildToolsVersion = localBuildToolsVersion
compileSdkVersion = 25
minSdkVersion = 16
targetSdkVersion = 25
versionCode = 1
versionName = "1.0"
javaVersion = JavaVersion.VERSION_1_8
// App dependencies version
appcompatV7 = "com.android.support:appcompat-v7:$androidSupportVersion"
constraintLayout = 'com.android.support.constraint:constraint-layout:1.0.2'
eventbusVersion = "3.0.0"
//arouter
arouterApi = 'com.alibaba:arouter-api:1.3.1'
arouterCompiler = 'com.alibaba:arouter-compiler:1.1.4'
//butterknife
butterknife = "com.jakewharton:butterknife:$butterknifeVersion"
butterknifeCompiler = "com.jakewharton:butterknife-compiler:$butterknifeVersion"
//eventbusVersion
eventbus= "org.greenrobot:eventbus:$eventbusVersion"
cookieVersion = "v1.0.1"
toastyVersion = "1.1.3"
}