mirror of
https://github.com/android10/Android-CleanArchitecture.git
synced 2026-03-13 10:13:41 +08:00
Disable pre design on continuos integration environment. Minor refactor.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
apply from: 'buildsrc/dependencies.gradle'
|
||||
apply from: 'buildsystem/ci.gradle'
|
||||
apply from: 'buildsystem/dependencies.gradle'
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
|
||||
13
buildsystem/ci.gradle
Normal file
13
buildsystem/ci.gradle
Normal file
@@ -0,0 +1,13 @@
|
||||
def ciServer = 'TRAVIS'
|
||||
def executingOnCI = "true".equals(System.getenv(ciServer))
|
||||
|
||||
// Since for CI we always do full clean builds, we don't want to pre-dex
|
||||
// See http://tools.android.com/tech-docs/new-build-system/tips
|
||||
subprojects {
|
||||
project.plugins.whenPluginAdded { plugin ->
|
||||
if ('com.android.build.gradle.AppPlugin'.equals(plugin.class.name) ||
|
||||
'com.android.build.gradle.LibraryPlugin'.equals(plugin.class.name)) {
|
||||
project.android.dexOptions.preDexLibraries = !executingOnCI
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user