-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
50 lines (42 loc) · 1.44 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
//noinspection GroovyAssignabilityCheck
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}
}
allprojects {
repositories {
google()
jcenter()
mavenLocal()
}
project.plugins.whenPluginAdded { plugin ->
if ("com.android.build.gradle.AppPlugin" == plugin.class.name) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
} else if ("com.android.build.gradle.LibraryPlugin" == plugin.class.name) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
}
}
}
// http://www.gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html
project.ext {
compileSdkVersion = 27
buildToolsVersion = '27.0.0'
// see http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance.
// CIサーバなどでは -PdisablePreDex をつける。 preDexが省略されてビルドが速くなる
preDexLibs = !project.hasProperty('disablePreDex')
supportPackageVersion = '27.0.0'
playServicesVersion = '11.0.0'
testingSupportPackageVersion = '0.5'
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task wrapper(type: Wrapper) {
gradleVersion = '4.3'
}