Merge pull request #6090 from TacoTheDank/removePreDex
Remove old preDexLibs code in build.gradle
This commit is contained in:
commit
a621551658
15
build.gradle
15
build.gradle
|
@ -19,21 +19,6 @@ allprojects {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable predex if requested (we can"t predex in Circle CI
|
|
||||||
// See http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance
|
|
||||||
// and https://circleci.com/docs/android
|
|
||||||
project.ext.preDexLibs = !project.hasProperty("disablePreDex")
|
|
||||||
|
|
||||||
subprojects {
|
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
project.ext {
|
project.ext {
|
||||||
// AndroidX
|
// AndroidX
|
||||||
annotationVersion = "1.2.0"
|
annotationVersion = "1.2.0"
|
||||||
|
|
Loading…
Reference in New Issue