| 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 "junit:junit:${junitVersion}" |
| |
| 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 "com.google.truth:truth:${truthVersion}" |
| testImplementation "org.mockito:mockito-core:${mockitoVersion}" |
| testImplementation "org.hamcrest:hamcrest-junit:2.0.0.0" |
| } |