mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
no pre-dexing on travis (performance)
This commit is contained in:
parent
3115066215
commit
c2b813c8f7
1 changed files with 10 additions and 0 deletions
10
build.gradle
10
build.gradle
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue