2013-09-09 21:11:16 +02:00
|
|
|
buildscript {
|
|
|
|
|
repositories {
|
2014-12-04 20:02:06 +01:00
|
|
|
jcenter()
|
2013-09-09 21:11:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2014-06-04 10:22:05 +02:00
|
|
|
// NOTE: Always use fixed version codes not dynamic ones, e.g. 0.7.3 instead of 0.7.+, see README for more information
|
2014-12-12 14:31:41 +01:00
|
|
|
classpath 'com.android.tools.build:gradle:1.0.0'
|
2013-09-09 21:11:16 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
2014-12-04 20:02:06 +01:00
|
|
|
jcenter()
|
2015-01-14 19:14:30 +01:00
|
|
|
|
|
|
|
|
maven {
|
|
|
|
|
// for https://github.com/journeyapps/zxing-android-embedded
|
|
|
|
|
url "http://dl.bintray.com/journeyapps/maven"
|
|
|
|
|
}
|
2013-09-09 21:11:16 +02:00
|
|
|
}
|
|
|
|
|
}
|
2013-05-25 23:13:39 +02:00
|
|
|
|
|
|
|
|
task wrapper(type: Wrapper) {
|
2014-12-04 18:57:09 +01:00
|
|
|
gradleVersion = '2.2.1'
|
2014-03-06 17:32:00 +01:00
|
|
|
}
|
2014-07-11 19:19:49 +02:00
|
|
|
|
2014-12-29 13:32:28 +01:00
|
|
|
subprojects {
|
|
|
|
|
tasks.withType(Test) {
|
2014-12-30 11:59:57 +01:00
|
|
|
maxParallelForks = 1
|
2014-12-29 13:32:28 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-07-27 15:40:22 +01:00
|
|
|
// Ignore tests for external dependency
|
|
|
|
|
project(':extern:spongycastle') {
|
|
|
|
|
subprojects {
|
|
|
|
|
// Need to re-apply the plugin here otherwise the test property below can't be set.
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
|
test.enabled = false
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-03-02 15:46:41 +01:00
|
|
|
|
|
|
|
|
// Copied from https://gitlab.com/fdroid/fdroidclient/blob/master/build.gradle#L144
|
|
|
|
|
subprojects {
|
|
|
|
|
|
|
|
|
|
// This is the hacky way which we force the subprojects to use the same build tools:
|
|
|
|
|
// http://stackoverflow.com/a/21032272
|
|
|
|
|
afterEvaluate {
|
|
|
|
|
if ( it.hasProperty( 'android' ) ) {
|
|
|
|
|
android {
|
|
|
|
|
|
|
|
|
|
// The android build task only lets you configure the buildToolsVersion once, so if
|
|
|
|
|
// we execute the closure below to configure our subprojects, it will fail when it
|
|
|
|
|
// hits the second subproject. Therefore, we will only do it once, and I guess the
|
|
|
|
|
// android plugin will re-use the existing value I set.
|
|
|
|
|
// https://android.googlesource.com/platform/tools/build/+/master/gradle/src/main/groovy/com/android/build/gradle/BaseExtension.groovy
|
|
|
|
|
try {
|
|
|
|
|
buildToolsVersion '21.1.2'
|
|
|
|
|
logger.info("Set buildToolsVersion to '21.1.2'")
|
|
|
|
|
} catch (GradleException e) {
|
|
|
|
|
logger.info("Tried to set the buildToolsVersion, however we were not allowed to: $e.message")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// don't abort build on lint errors
|
|
|
|
|
// http://stackoverflow.com/a/25149514
|
|
|
|
|
configure(android.lintOptions) {
|
|
|
|
|
abortOnError false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|