mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 20:03:05 +02:00
29 lines
893 B
Groovy
29 lines
893 B
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.5.3'
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
// in the individual module build.gradle files
|
|
}
|
|
}
|
|
|
|
ext {
|
|
|
|
travisBuild = System.getenv("TRAVIS") == "true"
|
|
// allows for -Dpre-dex=false to be set
|
|
preDexEnabled = "true" == System.getProperty("pre-dex", "true")
|
|
|
|
// 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
|
|
gradleTestMaxParallelForks = 1
|
|
if (!travisBuild) {
|
|
gradleTestMaxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
|
|
}
|
|
}
|
|
|