disable predexing on travis
This commit is contained in:
parent
beb216c300
commit
ad063d00cc
|
@ -16,4 +16,4 @@ android:
|
||||||
licenses:
|
licenses:
|
||||||
- '.+'
|
- '.+'
|
||||||
script:
|
script:
|
||||||
- ./gradlew assembleFreeRelease
|
- ./gradlew assembleFreeRelease -PdisablePreDex
|
||||||
|
|
|
@ -106,6 +106,14 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
project.plugins.whenPluginAdded { plugin ->
|
||||||
|
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name)) {
|
||||||
|
project.android.dexOptions.preDexLibraries = !project.hasProperty('disablePreDex')
|
||||||
|
} else if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
|
||||||
|
project.android.dexOptions.preDexLibraries = !project.hasProperty('disablePreDex')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
|
|
Loading…
Reference in a new issue