xref: /aosp_15_r20/external/robolectric/integration_tests/nativegraphics/build.gradle.kts (revision e6ba16074e6af37d123cb567d575f496bf0a58ee)

<lambda>null1*e6ba1607SAndroid Build Coastguard Worker plugins {
2*e6ba1607SAndroid Build Coastguard Worker   alias(libs.plugins.android.library)
3*e6ba1607SAndroid Build Coastguard Worker   alias(libs.plugins.robolectric.android.project)
4*e6ba1607SAndroid Build Coastguard Worker }
5*e6ba1607SAndroid Build Coastguard Worker 
<lambda>null6*e6ba1607SAndroid Build Coastguard Worker android {
7*e6ba1607SAndroid Build Coastguard Worker   compileSdk = 34
8*e6ba1607SAndroid Build Coastguard Worker   namespace = "org.robolectric.shadows"
9*e6ba1607SAndroid Build Coastguard Worker 
10*e6ba1607SAndroid Build Coastguard Worker   defaultConfig { minSdk = 26 }
11*e6ba1607SAndroid Build Coastguard Worker 
12*e6ba1607SAndroid Build Coastguard Worker   testOptions {
13*e6ba1607SAndroid Build Coastguard Worker     targetSdk = 34
14*e6ba1607SAndroid Build Coastguard Worker     unitTests {
15*e6ba1607SAndroid Build Coastguard Worker       isIncludeAndroidResources = true
16*e6ba1607SAndroid Build Coastguard Worker       all { it.systemProperty("robolectric.graphicsMode", "NATIVE") }
17*e6ba1607SAndroid Build Coastguard Worker     }
18*e6ba1607SAndroid Build Coastguard Worker   }
19*e6ba1607SAndroid Build Coastguard Worker 
20*e6ba1607SAndroid Build Coastguard Worker   compileOptions {
21*e6ba1607SAndroid Build Coastguard Worker     sourceCompatibility = JavaVersion.VERSION_11
22*e6ba1607SAndroid Build Coastguard Worker     targetCompatibility = JavaVersion.VERSION_11
23*e6ba1607SAndroid Build Coastguard Worker   }
24*e6ba1607SAndroid Build Coastguard Worker }
25*e6ba1607SAndroid Build Coastguard Worker 
<lambda>null26*e6ba1607SAndroid Build Coastguard Worker dependencies {
27*e6ba1607SAndroid Build Coastguard Worker   testImplementation(AndroidSdk.MAX_SDK.coordinates)
28*e6ba1607SAndroid Build Coastguard Worker   testImplementation(project(":robolectric"))
29*e6ba1607SAndroid Build Coastguard Worker 
30*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.androidx.core)
31*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.androidx.test.ext.junit)
32*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.truth)
33*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.junit4)
34*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.mockito)
35*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.guava.testlib)
36*e6ba1607SAndroid Build Coastguard Worker }
37