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