blob: b8fce4f10cd0bc02b8bf59585a20f81e1cad9827 [file] [log] [blame]
Terry Wangecc0d1b2019-10-17 17:05:18 -07001// Copyright (C) 2019 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Bob Badourd5949582021-02-23 13:18:34 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_base_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_base_license"],
22}
23
Terry Wangecc0d1b2019-10-17 17:05:18 -070024filegroup {
Alexander Dorokhine0e8fa4e2020-01-13 20:22:20 -080025 name: "framework-appsearch-sources",
26 srcs: [
Anton Hanssonfd6c6152021-05-10 12:13:19 +010027 ":framework-appsearch-internal-sources",
28 ":framework-appsearch-external-sources",
29 ],
30 visibility: ["//frameworks/base"],
31}
32
33filegroup {
34 name: "framework-appsearch-internal-sources",
35 srcs: [
Alexander Dorokhine0e8fa4e2020-01-13 20:22:20 -080036 "java/**/*.java",
37 "java/**/*.aidl",
38 ],
Anton Hanssonfd6c6152021-05-10 12:13:19 +010039 exclude_srcs: [":framework-appsearch-external-sources"],
Alexander Dorokhine0e8fa4e2020-01-13 20:22:20 -080040 path: "java",
Anton Hanssonfd6c6152021-05-10 12:13:19 +010041}
42
43filegroup {
44 name: "framework-appsearch-external-sources",
45 srcs: [
46 "java/external/**/*.java",
47 "java/external/**/*.aidl",
48 ],
49 path: "java/external",
Terry Wangecc0d1b2019-10-17 17:05:18 -070050}
51
Anton Hansson25a0a2b2020-10-08 13:43:48 +010052java_sdk_library {
Alexander Dorokhine0e8fa4e2020-01-13 20:22:20 -080053 name: "framework-appsearch",
Alexander Dorokhineb10c5162021-04-30 19:05:16 -070054 srcs: [":framework-appsearch-sources"],
Alexander Dorokhinec0bf81a2021-05-12 11:34:51 -070055 sdk_version: "module_current",
56 static_libs: [
57 // This list must be kept in sync with jarjar.txt
58 "modules-utils-preconditions",
59 ],
Alexander Dorokhineb10c5162021-04-30 19:05:16 -070060 libs: ["unsupportedappusage"], // TODO(b/181887768) should be removed
Anton Hansson25a0a2b2020-10-08 13:43:48 +010061 defaults: ["framework-module-defaults"],
Alexander Dorokhineb5d9bcc2020-01-16 13:10:15 -080062 permitted_packages: ["android.app.appsearch"],
Anton Hansson25a0a2b2020-10-08 13:43:48 +010063 aidl: {
64 include_dirs: ["frameworks/base/core/java"], // TODO(b/146218515) should be removed
65 },
Alexander Dorokhinec0bf81a2021-05-12 11:34:51 -070066 jarjar_rules: "jarjar-rules.txt",
Alexander Dorokhine0e8fa4e2020-01-13 20:22:20 -080067 apex_available: ["com.android.appsearch"],
Anton Hansson96b08ae2020-12-21 16:59:06 +000068 unsafe_ignore_missing_latest_api: true, // TODO(b/146218515) should be removed
Terry Wangecc0d1b2019-10-17 17:05:18 -070069}