2014-11-09 18:02:29 +01:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
2018-06-10 17:27:18 +02:00
|
|
|
google()
|
2018-06-08 05:42:25 +02:00
|
|
|
jcenter()
|
2014-11-09 18:02:29 +01:00
|
|
|
}
|
|
|
|
dependencies {
|
2019-10-02 22:27:34 +02:00
|
|
|
classpath 'com.android.tools.build:gradle:3.5.1'
|
2014-11-09 18:02:29 +01:00
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
// in the individual module build.gradle files
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-11 23:45:45 +01:00
|
|
|
ext {
|
2019-01-26 21:41:41 +01:00
|
|
|
|
2016-03-11 23:45:45 +01:00
|
|
|
travisBuild = System.getenv("TRAVIS") == "true"
|
|
|
|
// allows for -Dpre-dex=false to be set
|
|
|
|
preDexEnabled = "true".equals(System.getProperty("pre-dex", "true"))
|
2018-11-24 21:11:48 +01:00
|
|
|
|
2019-11-04 04:42:37 +01:00
|
|
|
// Travis may report host CPU counts vs guest, but runs 2 cores everywhere
|
|
|
|
// everyone else gets 50% of cores to account for SMT which doesn't help this workload
|
2018-11-24 21:11:48 +01:00
|
|
|
gradleTestMaxParallelForks = 1
|
|
|
|
if (!travisBuild) {
|
|
|
|
gradleTestMaxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
|
|
|
|
}
|
2016-10-23 10:55:19 +02:00
|
|
|
}
|
2018-11-24 21:11:48 +01:00
|
|
|
|