forked from getodk/collect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (66 loc) · 2.29 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
ext.kotlin_version = '1.4.30'
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.google.gms:google-services:4.3.5'
classpath 'org.jacoco:org.jacoco.core:0.8.6'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.0.0"
}
}
allprojects {
repositories {
// Needs to go first to get specialty libraries https://stackoverflow.com/a/48438866/137744
google()
jcenter()
maven { url 'https://oss.sonatype.org/content/groups/public' }
maven { url 'https://jitpack.io' }
maven {
url 'https://staging.dev.medicmobile.org/_couch/maven-repo'
metadataSources { artifact() }
}
}
}
configurations.all {
transitive = true
}
task checkAll(type: GradleBuild) {
tasks = ['checkCode', 'checkTests']
}
task checkCode(type: GradleBuild) {
tasks = ['pmd', 'ktlintCheck', 'checkstyle', 'lintDebug']
}
task checkTests(type: GradleBuild) {
tasks = ['testDebugUnitTest', 'connectedDebugAndroidTest']
}
task checkFeature(type: GradleBuild) {
tasks = ["connectedDebugAndroidTest"]
startParameter.projectProperties = ["android.testInstrumentationRunnerArguments.package": "org.odk.collect.android.feature"]
}
task checkRegression(type: GradleBuild) {
tasks = ["connectedDebugAndroidTest"]
startParameter.projectProperties = ["android.testInstrumentationRunnerArguments.package": "org.odk.collect.android.regression"]
}
task checkInstrumented(type: GradleBuild) {
tasks = ["connectedDebugAndroidTest"]
startParameter.projectProperties = ["android.testInstrumentationRunnerArguments.package": "org.odk.collect.android.instrumented"]
}
ext {
androidCompileSdk = 30
androidMinSdk = 21
androidTargetSdk = 29
fragmentVersion = '1.2.5'
daggerVersion = '2.32'
okhttp3Version = '4.9.0'
timberVersion = '4.7.1'
materialVersion = '1.3.0'
}