Disable pre-dexing

This commit is contained in:
2016-03-24 22:14:54 -04:00
parent d3ebb4ff25
commit 3656c51e95
2 changed files with 13 additions and 1 deletions

View File

@@ -13,3 +13,15 @@ allprojects {
jcenter()
}
}
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
subprojects {
project.plugins.whenPluginAdded { plugin ->
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
} else if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
}
}
}