| import org.robolectric.gradle.AndroidProjectConfigPlugin |
| |
| apply plugin: 'com.android.library' |
| apply plugin: AndroidProjectConfigPlugin |
| apply plugin: 'kotlin-android' |
| apply plugin: "com.diffplug.spotless" |
| |
| spotless { |
| kotlin { |
| target '**/*.kt' |
| ktfmt('0.34').googleStyle() |
| } |
| } |
| |
| android { |
| compileSdk 28 |
| |
| defaultConfig { |
| minSdk 16 |
| // We must keep targetSdk to 28 for compatibility testing purpose |
| targetSdk 28 |
| } |
| |
| compileOptions { |
| sourceCompatibility = '1.8' |
| targetCompatibility = '1.8' |
| } |
| |
| testOptions.unitTests.includeAndroidResources true |
| } |
| |
| dependencies { |
| implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion" |
| |
| testImplementation project(path: ':testapp') |
| testImplementation project(":robolectric") |
| testImplementation "junit:junit:$junitVersion" |
| testImplementation "com.google.truth:truth:$truthVersion" |
| } |