blob: b2414a85c0951e77c6456c40fb31c4359f8796e5 [file] [log] [blame]
Ang Li425f2b2f2023-11-11 04:50:55 +00001package {
Ronish Kaliaf8913972024-02-14 14:30:14 +00002 default_team: "trendy_team_input_framework",
Ang Li425f2b2f2023-11-11 04:50:55 +00003 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: [
Jihoon Kang1e37ed32024-08-30 00:29:12 +000064 "android.test.runner.stubs.system",
65 "android.test.base.stubs.system",
66 "android.test.mock.stubs.system",
Ang Li425f2b2f2023-11-11 04:50:55 +000067 "truth",
68 ],
69 upstream: true,
70 java_resource_dirs: ["config"],
71 instrumentation_for: "InputRoboApp",
Kevin Liuc1c110e2024-05-02 20:36:09 +000072
73 strict_mode: false,
Ang Li425f2b2f2023-11-11 04:50:55 +000074}