diff --git a/.travis.yml b/.travis.yml index c3e70577d..eff9b9f56 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,6 +27,7 @@ jdk: - oraclejdk8 env: + - TRAVIS_BUILD=true global: MALLOC_ARENA_MAX=2 diff --git a/build.gradle b/build.gradle index 4e664f59f..f5187c8ba 100644 --- a/build.gradle +++ b/build.gradle @@ -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')