-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
58 lines (48 loc) · 1.85 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}
allprojects {
repositories {
jcenter()
}
}
configure(allprojects) {
/* Android config and dependency versions */
ext {
androidMinSdkVersion = 16
androidTargetSdkVersion = 25
androidCompileSdkVersion = 25
androidBuildToolsVersion = "25.0.2"
androidSupportLibraryVersion = "25.3.1"
butterknifeVersion = "8.4.0"
junitVersion = "4.12"
mockitoVersion = "1.10.19"
robolectricVersion = "3.1.2"
runnerVersion = "0.6-alpha"
rulesVersion = "0.6-alpha"
espressoVersion = "2.2"
cucumberVersion = "1.2.2"
superReflectVersion = "1.0.1"
awaitilityVersion = "1.7.0"
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
/**
* Value to be used for {@code android.buildTypes.debug.testCoverageEnabled}.
* Setting this to {@code true} breaks the debugger i.e. you cannot see the variables
* @return true if test coverage should be enabled, false otherwise
*/
public boolean getTestCoverageEnabledFromProperties() {
(project.hasProperty("TEST_COVERAGE_ENABLED") ? project.getProperties().get("TEST_COVERAGE_ENABLED") : false) as boolean
}