Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
no pre-dexing on travis (performance)
  • Loading branch information
AndyScherzinger committed Nov 2, 2016
commit c2b813c8f7a3e9f76914b36606e71869d574a513
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down