• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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",
16    srcs: ["src/main/java/**/*.java"],
17    common_srcs: ["src/main/java/**/*.kt"],
18    plugins: ["auto_service_plugin"],
19    static_libs: [
20        "robolectric-javax.annotation-api-1.2",
21        "Robolectric_annotations",
22        "Robolectric_pluginapi",
23        "error_prone_annotations",
24        "guava",
25        "jsr330",
26        "jsr305",
27        "asm-9.6",
28        "auto_service_annotations",
29    ],
30}
31
32//#############################################
33// Compile Robolectric utils tests
34//#############################################
35
36java_test_host {
37    name: "Robolectric_utils_tests",
38    srcs: [
39        "src/test/java/**/*.java",
40        "src/test/java/**/*.kt",
41    ],
42    plugins: [
43        "auto_service_plugin",
44    ],
45    static_libs: [
46        "Robolectric_utils",
47        "hamcrest",
48        "guava",
49        "junit",
50        "error_prone_core",
51        "truth",
52        "asm-9.6",
53        "mockito",
54    ],
55    test_suites: ["general-tests"],
56}
57