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_library {
11    name: "SettingsLib-search-interface",
12    visibility: ["//visibility:private"],
13    srcs: ["interface-src/**/*.java"],
14    host_supported: true,
15}
16
17android_library {
18    name: "SettingsLib-search",
19    use_resource_processor: true,
20    defaults: [
21        "SettingsLintDefaults",
22    ],
23    static_libs: [
24        "SettingsLib-search-interface",
25    ],
26    srcs: ["src/**/*.java"],
27
28    sdk_version: "system_current",
29    min_sdk_version: "21",
30    lint: {
31        baseline_filename: "lint-baseline.xml",
32    },
33}
34
35java_plugin {
36    name: "SettingsLib-annotation-processor",
37    processor_class: "com.android.settingslib.search.IndexableProcessor",
38    static_libs: [
39        "SettingsLib-search-interface",
40        "javapoet",
41    ],
42    srcs: ["processor-src/**/*.java"],
43    java_resource_dirs: ["resources"],
44}
45
46// NOTE: Keep this module in sync with ./common.mk
47java_defaults {
48    name: "SettingsLib-search-defaults",
49    plugins: ["SettingsLib-annotation-processor"],
50    static_libs: ["SettingsLib-search"],
51}
52