disable predexing to get CircleCI doing a full build
This commit is contained in:
parent
83aa1b15f2
commit
58822faf7d
15
build.gradle
15
build.gradle
|
@ -19,6 +19,21 @@ 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".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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = '2.4'
|
||||
}
|
|
@ -1,3 +1,6 @@
|
|||
machine:
|
||||
java:
|
||||
version: oraclejdk8
|
||||
test:
|
||||
override:
|
||||
- ./gradlew assembleDebug -PdisablePreDex
|
Loading…
Reference in New Issue