/
build.gradle
45 lines (36 loc) · 997 Bytes
/
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
import org.robolectric.gradle.AndroidProjectConfigPlugin
apply plugin: 'com.android.library'
apply plugin: AndroidProjectConfigPlugin
apply plugin: 'kotlin-android'
apply plugin: "com.diffplug.spotless"
apply plugin: "io.gitlab.arturbosch.detekt"
spotless {
kotlin {
target '**/*.kt'
ktfmt('0.42').googleStyle()
}
}
android {
compileSdk 29
namespace 'org.robolectric.integrationtests.sdkcompat'
defaultConfig {
minSdk 19
// We must keep targetSdk to 29 for compatibility testing purpose
targetSdk 29
}
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
kotlinOptions {
jvmTarget = '1.8'
}
testOptions.unitTests.includeAndroidResources true
}
dependencies {
implementation libs.kotlin.stdlib
testImplementation project(":testapp")
testImplementation project(":robolectric")
testImplementation libs.junit4
testImplementation libs.truth
}