1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5android_library { 6 name: "SpaRoboRNGTestsAssetsLib", 7 asset_dirs: ["assets"], 8 sdk_version: "current", 9 platform_apis: true, 10 manifest: "AndroidManifest.xml", 11 optimize: { 12 enabled: false, 13 }, 14 use_resource_processor: true, 15 resource_dirs: ["res"], 16} 17 18android_app { 19 name: "SpaRoboApp", 20 srcs: [], 21 static_libs: [ 22 "androidx.test.espresso.core", 23 "androidx.appcompat_appcompat", 24 "flag-junit", 25 "guava", 26 "SpaLib", 27 "SpaLibTestUtils", 28 "SpaRoboRNGTestsAssetsLib", 29 "platform-screenshot-diff-core", 30 "PlatformComposeSceneTransitionLayoutTestsUtils", 31 ], 32 manifest: "robo-manifest.xml", 33 aaptflags: [ 34 "--extra-packages", 35 "com.android.settingslib.spa.screenshot", 36 ], 37 dont_merge_manifests: true, 38 platform_apis: true, 39 system_ext_specific: true, 40 certificate: "platform", 41 privileged: true, 42 resource_dirs: [], 43 kotlincflags: ["-Xjvm-default=all"], 44 45 plugins: ["dagger2-compiler"], 46 use_resource_processor: true, 47} 48 49android_robolectric_test { 50 name: "SpaRoboRNGTests", 51 srcs: [ 52 ":SpaScreenshotTestRNGFiles", 53 ":flag-junit", 54 ":platform-test-screenshot-rules", 55 ], 56 // Do not add any new libraries here, they should be added to SpaRoboApp above. 57 static_libs: [ 58 "androidx.compose.runtime_runtime", 59 "androidx.test.uiautomator_uiautomator", 60 "androidx.test.ext.junit", 61 "inline-mockito-robolectric-prebuilt", 62 "platform-parametric-runner-lib", 63 "uiautomator-helpers", 64 ], 65 libs: [ 66 "android.test.runner.stubs.system", 67 "android.test.base.stubs.system", 68 "android.test.mock.stubs.system", 69 "truth", 70 ], 71 upstream: true, 72 java_resource_dirs: ["config"], 73 instrumentation_for: "SpaRoboApp", 74 75 strict_mode: false, 76} 77