41 lines
911 B
Groovy
41 lines
911 B
Groovy
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.42').googleStyle()
|
|
}
|
|
}
|
|
|
|
android {
|
|
compileSdk 28
|
|
namespace 'org.robolectric.integrationtests.compattarget28'
|
|
|
|
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 libs.kotlin.stdlib
|
|
|
|
testImplementation project(path: ':testapp')
|
|
testImplementation project(":robolectric")
|
|
testImplementation libs.junit4
|
|
testImplementation libs.truth
|
|
}
|