• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
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
10java_plugin {
11    name: "error_prone_android_framework",
12
13    static_libs: [
14        "error_prone_android_framework_lib",
15    ],
16}
17
18java_library_host {
19    name: "error_prone_android_framework_lib",
20
21    srcs: ["java/**/*.java"],
22
23    static_libs: [
24        "annotations",
25        "framework-annotations-lib",
26        "//external/error_prone:error_prone_core",
27    ],
28
29    libs: [
30        "//external/auto:auto_service_annotations",
31    ],
32
33    plugins: [
34        "//external/auto:auto_service_plugin",
35    ],
36}
37
38java_test_host {
39    name: "error_prone_android_framework_test",
40    srcs: ["tests/java/**/*.java"],
41    java_resource_dirs: ["tests/res"],
42    java_resources: [":error_prone_android_framework_testdata"],
43    static_libs: [
44        "truth",
45        "kxml2-2.3.0",
46        "compile-testing-prebuilt",
47        "error_prone_android_framework_lib",
48        "error_prone_test_helpers",
49        "google_java_format",
50        "hamcrest-library",
51        "hamcrest",
52        "platform-test-annotations",
53        "junit",
54    ],
55    test_options: {
56        unit_test: true,
57    },
58}
59
60filegroup {
61    name: "error_prone_android_framework_testdata",
62    path: "tests/res",
63    srcs: ["tests/res/**/*.java"],
64}
65