19 lines
597 B
Groovy
19 lines
597 B
Groovy
|
|
import org.robolectric.gradle.RoboJavaModulePlugin
|
||
|
|
|
||
|
|
apply plugin: RoboJavaModulePlugin
|
||
|
|
|
||
|
|
// test with a project that depends on the stubs jar, not org.robolectric:android-all
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
api project(":robolectric")
|
||
|
|
api libs.junit4
|
||
|
|
|
||
|
|
testImplementation files("${System.getenv("ANDROID_HOME")}/platforms/android-29/android.jar")
|
||
|
|
|
||
|
|
testCompileOnly AndroidSdk.MAX_SDK.coordinates // compile against latest Android SDK
|
||
|
|
testRuntimeOnly AndroidSdk.MAX_SDK.coordinates
|
||
|
|
testImplementation libs.truth
|
||
|
|
testImplementation libs.mockito
|
||
|
|
testImplementation libs.hamcrest.junit
|
||
|
|
}
|