no pre-dexing on travis (performance)

This commit is contained in:
Andy Scherzinger 2016-08-16 17:22:22 +02:00 committed by AndyScherzinger
parent 3115066215
commit c2b813c8f7
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -21,6 +21,11 @@ apply plugin: 'findbugs'
ext {
supportLibraryVersion = '24.1.1'
travisBuild = System.getenv("TRAVIS") == "true"
// allows for -Dpre-dex=false to be set
preDexEnabled = "true".equals(System.getProperty("pre-dex", "true"))
}
repositories {
@ -127,6 +132,11 @@ android {
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
dexOptions {
// Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
preDexLibraries = preDexEnabled && !travisBuild
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7