xref: /aosp_15_r20/external/robolectric/utils/reflector/Android.bp (revision e6ba16074e6af37d123cb567d575f496bf0a58ee)
1//#############################################
2// Compile Robolectric utils
3//#############################################
4
5package {
6    // See: http://go/android-license-faq
7    // A large-scale-change added 'default_applicable_licenses' to import
8    // all of the 'license_kinds' from "external_robolectric_license"
9    // to get the below license kinds:
10    //   SPDX-license-identifier-Apache-2.0
11    default_applicable_licenses: ["external_robolectric_license"],
12}
13
14java_library_host {
15    name: "Robolectric_utils_reflector_upstream",
16    static_libs: [
17        "Robolectric_utils_upstream",
18        "asm-9.6",
19        "asm-commons-9.6",
20        "asm-tree-9.6",
21        "asm-util-9.6",
22    ],
23    srcs: ["src/main/java/**/*.java"],
24}
25
26//#############################################
27// Compile Robolectric utils tests
28//#############################################
29
30java_test_host {
31    name: "Robolectric_utils_reflector_tests_upstream",
32    srcs: ["src/test/java/**/*.java"],
33    static_libs: [
34        "Robolectric_utils_reflector_upstream",
35        "Robolectric_shadowapi_upstream",
36        "hamcrest",
37        "guava",
38        "junit",
39        "truth",
40    ],
41    test_suites: ["general-tests"],
42}
43