aboutsummaryrefslogtreecommitdiff
path: root/integration_tests/compat-target28/build.gradle
blob: a124b5eafc2509dbf59f540d87ba32dce16a51fa (plain)
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 28
    namespace 'org.robolectric.integrationtests.compattarget28'

    defaultConfig {
        minSdk 19
        // We must keep targetSdk to 28 for compatibility testing purpose
        targetSdk 28
    }

    compileOptions {
        sourceCompatibility = '1.8'
        targetCompatibility = '1.8'
    }

    kotlinOptions {
        jvmTarget = '1.8'
    }

    testOptions.unitTests.includeAndroidResources true
}

dependencies {
    implementation libs.kotlin.stdlib

    testImplementation project(path: ':testapp')
    testImplementation project(":robolectric")
    testImplementation libs.junit4
    testImplementation libs.truth
}