disable pre-dexing for CI builds

This commit is contained in:
Mariotaku Lee 2015-11-26 11:45:37 +08:00
parent bcb385e136
commit 44e2ab05f8
2 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,7 @@ jdk:
- oraclejdk8
env:
- TRAVIS_BUILD=true
global:
MALLOC_ARENA_MAX=2

View File

@ -53,6 +53,13 @@ subprojects {
exclude 'META-INF/ASL2.0'
}
if (System.getenv('TRAVIS_BUILD') == 'true') {
System.out.println("Is travis build, disable pre-dexing")
dexOptions {
preDexLibraries = false;
}
}
if (android.hasProperty('buildTypes') && project.plugins.hasPlugin('com.android.application')) {
android.buildTypes.each { buildType ->
File file = rootProject.file('signing.properties')