• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//#############################################
2// Compile Robolectric sandbox
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_sandbox",
16    srcs: ["src/main/java/**/*.java"],
17    libs: [
18        "Robolectric_annotations",
19        "Robolectric_shadowapi",
20        "Robolectric_utils_reflector",
21        "Robolectric_utils",
22        "asm-commons-9.6",
23        "guava",
24        "asm-tree-9.6",
25        "asm-9.6",
26        "jsr305",
27    ],
28    plugins: [
29        "auto_service_plugin",
30        "auto_value_plugin",
31    ],
32    openjdk9: {
33        javacflags: [
34            "--add-opens=java.base/java.lang=ALL-UNNAMED",
35        ],
36    },
37}
38
39//#############################################
40// Compile Robolectric sandbox tests
41//#############################################
42
43java_test_host {
44    name: "Robolectric_sandbox_tests",
45    srcs: ["src/test/java/**/*.java"],
46    static_libs: [
47        "Robolectric_annotations",
48        "Robolectric_shadowapi",
49        "Robolectric_sandbox",
50        "Robolectric_utils_reflector",
51        "Robolectric_utils",
52        "Robolectric_junit",
53        "mockito-robolectric-prebuilt",
54        "hamcrest",
55        "asm-commons-9.6",
56        "guava",
57        "objenesis",
58        "asm-tree-9.6",
59        "junit",
60        "truth",
61        "asm-9.6",
62        "jsr305",
63    ],
64    plugins: [
65        "auto_service_plugin",
66        "auto_value_plugin",
67    ],
68    test_suites: ["general-tests"],
69}
70