27 lines
770 B
Groovy
27 lines
770 B
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:2.1.0'
|
|
}
|
|
}
|
|
|
|
project.ext {
|
|
preDexLibs = !project.hasProperty('disablePreDex')
|
|
testCoverage = project.hasProperty('testCoverage')
|
|
optimizeForDevelopment = project.hasProperty('optimizeForDevelopment') && optimizeForDevelopment == 'true'
|
|
|
|
compileSdkVersion = 23
|
|
buildToolsVersion = '23.0.3'
|
|
}
|
|
|
|
subprojects {
|
|
project.plugins.whenPluginAdded { plugin ->
|
|
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name) ||
|
|
"com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
}
|
|
}
|
|
}
|