-
Notifications
You must be signed in to change notification settings - Fork 500
/
build.gradle
61 lines (51 loc) · 1.48 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
import com.airbnb.mvrx.JacocoReportTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-parcelize'
apply plugin: "jacoco"
apply plugin: "com.vanniktech.maven.publish"
tasks.withType(KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += [
'-Xopt-in=com.airbnb.mvrx.InternalMavericksApi',
]
}
}
android {
resourcePrefix 'mvrx_'
defaultConfig {
consumerProguardFiles 'proguard-rules.pro'
}
testOptions {
unitTests {
includeAndroidResources = true
all {
jacoco {
includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*']
}
}
}
}
}
jacoco {
toolVersion = "0.8.2"
}
dependencies {
implementation Libraries.kotlinReflect
implementation Libraries.appcompat
api project(':mvrx')
testImplementation project(':testing')
testImplementation TestLibraries.mockito
testImplementation TestLibraries.junit
testImplementation TestLibraries.roboeletric
testImplementation TestLibraries.kotlinCoroutinesTest
// Including autovalue just for the AutoValue type printer test
testImplementation Libraries.autoValue
kaptTest AnnotationProcessors.autoValue
}
tasks.register("coverage", JacocoReportTask.class) {
coverage.dependsOn("testDebugUnitTest")
}