disable predexing to get CircleCI doing a full build

This commit is contained in:
Tom Hennen 2015-09-05 11:40:17 -04:00
parent 83aa1b15f2
commit 58822faf7d
2 changed files with 18 additions and 0 deletions

View File

@ -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'
}

View File

@ -1,3 +1,6 @@
machine:
java:
version: oraclejdk8
test:
override:
- ./gradlew assembleDebug -PdisablePreDex