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 namespace 'org.robolectric.integrationtests.compattarget28' 18 19 defaultConfig { 20 minSdk 16 21 // We must keep targetSdk to 28 for compatibility testing purpose 22 targetSdk 28 23 } 24 25 compileOptions { 26 sourceCompatibility = '1.8' 27 targetCompatibility = '1.8' 28 } 29 30 kotlinOptions { 31 jvmTarget = '1.8' 32 } 33 34 testOptions.unitTests.includeAndroidResources true 35} 36 37dependencies { 38 implementation libs.kotlin.stdlib 39 40 testImplementation project(path: ':testapp') 41 testImplementation project(":robolectric") 42 testImplementation libs.junit4 43 testImplementation libs.truth 44} 45