Ang Li | 425f2b2f | 2023-11-11 04:50:55 +0000 | [diff] [blame^] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
| 5 | android_library { |
| 6 | name: "InputRoboRNGTestsAssetsLib", |
| 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 | } |
| 16 | |
| 17 | android_app { |
| 18 | name: "InputRoboApp", |
| 19 | srcs: [], |
| 20 | static_libs: [ |
| 21 | "androidx.test.espresso.core", |
| 22 | "androidx.appcompat_appcompat", |
| 23 | "flag-junit", |
| 24 | "guava", |
| 25 | "InputRoboRNGTestsAssetsLib", |
| 26 | "platform-screenshot-diff-core", |
| 27 | "PlatformComposeSceneTransitionLayoutTestsUtils", |
| 28 | ], |
| 29 | manifest: "robo-manifest.xml", |
| 30 | aaptflags: [ |
| 31 | "--extra-packages", |
| 32 | "com.android.input.screenshot", |
| 33 | ], |
| 34 | dont_merge_manifests: true, |
| 35 | platform_apis: true, |
| 36 | system_ext_specific: true, |
| 37 | certificate: "platform", |
| 38 | privileged: true, |
| 39 | resource_dirs: [], |
| 40 | kotlincflags: ["-Xjvm-default=all"], |
| 41 | |
| 42 | plugins: ["dagger2-compiler"], |
| 43 | use_resource_processor: true, |
| 44 | } |
| 45 | |
| 46 | android_robolectric_test { |
| 47 | name: "InputRoboRNGTests", |
| 48 | srcs: [ |
| 49 | ":InputScreenshotTestRNGFiles", |
| 50 | ":flag-junit", |
| 51 | ":platform-test-screenshot-rules", |
| 52 | ], |
| 53 | // Do not add any new libraries here, they should be added to SystemUIGoogleRobo above. |
| 54 | static_libs: [ |
| 55 | "androidx.compose.runtime_runtime", |
| 56 | "androidx.test.uiautomator_uiautomator", |
| 57 | "androidx.test.ext.junit", |
| 58 | "inline-mockito-robolectric-prebuilt", |
| 59 | "platform-parametric-runner-lib", |
| 60 | "uiautomator-helpers", |
| 61 | ], |
| 62 | libs: [ |
| 63 | "android.test.runner", |
| 64 | "android.test.base", |
| 65 | "android.test.mock", |
| 66 | "truth", |
| 67 | ], |
| 68 | upstream: true, |
| 69 | java_resource_dirs: ["config"], |
| 70 | instrumentation_for: "InputRoboApp", |
| 71 | } |