0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00
Anki-Android/build.gradle

30 lines
931 B
Groovy
Raw Normal View History

// 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.3.0'
2016-10-23 10:55:19 +02:00
classpath 'com.github.triplet.gradle:play-publisher:1.1.5'
2018-10-05 19:41:05 +02:00
classpath "org.jacoco:org.jacoco.core:0.8.2"
// 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 {
travisBuild = System.getenv("TRAVIS") == "true"
// allows for -Dpre-dex=false to be set
preDexEnabled = "true".equals(System.getProperty("pre-dex", "true"))
// Travis may report host CPU counts vs guest, everyone else gets 50% of cores
gradleTestMaxParallelForks = 1
if (!travisBuild) {
gradleTestMaxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
}
2016-10-23 10:55:19 +02:00
}