mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 03:32:16 -05:00
Add support for disabling pre-dexing
This commit is contained in:
parent
87a9126107
commit
98559900c2
15
build.gradle
15
build.gradle
@ -25,10 +25,25 @@ dependencies {
|
|||||||
compile fileTree(dir: 'libs', include: '*.jar')
|
compile fileTree(dir: 'libs', include: '*.jar')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 19
|
compileSdkVersion 19
|
||||||
buildToolsVersion '20.0.0'
|
buildToolsVersion '20.0.0'
|
||||||
|
|
||||||
|
dexOptions {
|
||||||
|
preDexLibraries = rootProject.ext.preDexLibs
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
manifest.srcFile 'AndroidManifest.xml'
|
manifest.srcFile 'AndroidManifest.xml'
|
||||||
|
Loading…
Reference in New Issue
Block a user