• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import org.robolectric.gradle.AndroidProjectConfigPlugin
2
3apply plugin: 'com.android.library'
4apply plugin: AndroidProjectConfigPlugin
5apply plugin: 'kotlin-android'
6apply plugin: "com.diffplug.spotless"
7apply plugin: "io.gitlab.arturbosch.detekt"
8
9spotless {
10    kotlin {
11        target '**/*.kt'
12        ktfmt('0.42').googleStyle()
13    }
14}
15
16android {
17    compileSdk 28
18    namespace 'org.robolectric.integrationtests.compattarget28'
19
20    defaultConfig {
21        minSdk 19
22        // We must keep targetSdk to 28 for compatibility testing purpose
23        targetSdk 28
24    }
25
26    compileOptions {
27        sourceCompatibility = '1.8'
28        targetCompatibility = '1.8'
29    }
30
31    kotlinOptions {
32        jvmTarget = '1.8'
33    }
34
35    testOptions.unitTests.includeAndroidResources true
36}
37
38dependencies {
39    implementation libs.kotlin.stdlib
40
41    testImplementation project(":testapp")
42    testImplementation project(":robolectric")
43    testImplementation libs.junit4
44    testImplementation libs.truth
45}
46