• 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"
7
8spotless {
9    kotlin {
10        target '**/*.kt'
11        ktfmt('0.42').googleStyle()
12    }
13}
14
15android {
16    compileSdk 28
17
18    defaultConfig {
19        minSdk 16
20        // We must keep targetSdk to 28 for compatibility testing purpose
21        targetSdk 28
22    }
23
24    compileOptions {
25        sourceCompatibility = '1.8'
26        targetCompatibility = '1.8'
27    }
28
29    testOptions.unitTests.includeAndroidResources true
30}
31
32dependencies {
33    implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
34
35    testImplementation project(path: ':testapp')
36    testImplementation project(":robolectric")
37    testImplementation "junit:junit:$junitVersion"
38    testImplementation "com.google.truth:truth:$truthVersion"
39}
40