blob: 35ce4814f97d9511003470f29057c479f1642637 [file] [log] [blame]
Makoto Onuki3aefe332023-10-06 10:02:07 -07001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_base_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_base_license"],
8}
9
10filegroup {
11 name: "ravenwood-annotations",
12 srcs: [
13 "annotations-src/**/*.java",
14 ],
Anton Hanssond82cbc72023-10-30 20:00:39 +000015 path: "annotations-src",
Makoto Onuki3aefe332023-10-06 10:02:07 -070016 visibility: ["//visibility:public"],
17}
18
Makoto Onuki3aefe332023-10-06 10:02:07 -070019java_library {
20 name: "ravenwood-annotations-lib",
21 srcs: [":ravenwood-annotations"],
22 sdk_version: "core_current",
23 host_supported: true,
24 visibility: ["//visibility:public"],
25}
Jeff Sharkey91f414e2023-11-07 15:43:59 -070026
27java_library {
Jeff Sharkey41cfbb32023-11-16 09:26:28 -070028 name: "ravenwood-junit-impl",
29 srcs: [
30 "junit-src/**/*.java",
31 "junit-impl-src/**/*.java",
32 ],
Jeff Sharkeyc91451a2024-01-29 10:55:45 -070033 static_libs: [
34 "androidx.test.monitor-for-device",
35 ],
Jeff Sharkey91f414e2023-11-07 15:43:59 -070036 libs: [
Jeff Sharkey5e210d72023-11-10 11:22:05 -070037 "framework-minus-apex.ravenwood",
Jeff Sharkey91f414e2023-11-07 15:43:59 -070038 "junit",
39 ],
Makoto Onukia8bcba12023-11-22 14:00:24 -080040 sdk_version: "core_current",
Jeff Sharkey41cfbb32023-11-16 09:26:28 -070041 visibility: ["//frameworks/base"],
42}
43
44// Carefully compiles against only test_current to support tests that
45// want to verify they're unbundled. The "impl" library above is what
46// ships inside the Ravenwood environment to actually drive any API
47// access to implementation details.
48java_library {
49 name: "ravenwood-junit",
50 srcs: [
51 "junit-src/**/*.java",
52 "junit-stub-src/**/*.java",
53 ],
54 sdk_version: "test_current",
55 libs: [
56 "junit",
57 ],
Jeff Sharkey91f414e2023-11-07 15:43:59 -070058 visibility: ["//visibility:public"],
59}
Jeff Sharkey4ee8a652023-11-14 08:45:56 -070060
Jeff Sharkey1e928352024-02-12 13:44:49 -070061java_library {
62 // Prefixed with "200" to ensure it's sorted early in Tradefed classpath
63 // so that we provide a concrete implementation before Mainline stubs
64 name: "200-kxml2-android",
65 static_libs: [
66 "kxml2-android",
Jeff Sharkey4ee8a652023-11-14 08:45:56 -070067 ],
Jeff Sharkey1e928352024-02-12 13:44:49 -070068 visibility: ["//frameworks/base"],
Jeff Sharkey4ee8a652023-11-14 08:45:56 -070069}
Jeff Sharkeyc91451a2024-01-29 10:55:45 -070070
71java_host_for_device {
72 name: "androidx.test.monitor-for-device",
73 libs: [
74 "androidx.test.monitor-for-host",
75 ],
76}
77
78java_device_for_host {
79 name: "androidx.test.monitor-for-host",
80 libs: [
81 "androidx.test.monitor",
82 ],
83}