31 lines
910 B
Groovy
31 lines
910 B
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
google()
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.0.1'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
|
|
classpath "org.jetbrains.kotlin:kotlin-android-extensions:${kotlinVersion}"
|
|
}
|
|
}
|
|
|
|
project.ext {
|
|
testCoverage = project.hasProperty('testCoverage')
|
|
optimizeForDevelopment = project.hasProperty('optimizeForDevelopment') && optimizeForDevelopment == 'true'
|
|
}
|
|
|
|
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.hasProperty('disablePreDex')
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
jcenter()
|
|
google()
|
|
}
|
|
}
|