blob: 5def55fd31ff100bb56c361fcabc76a160856293 [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: [
27 "java/**/*.java",
28 "java/**/*.aidl",
29 ],
30 path: "java",
Anton Hanssonc7aa3f12020-12-15 18:28:20 +000031 visibility: ["//frameworks/base"],
Terry Wangecc0d1b2019-10-17 17:05:18 -070032}
33
Anton Hansson25a0a2b2020-10-08 13:43:48 +010034java_sdk_library {
Alexander Dorokhine0e8fa4e2020-01-13 20:22:20 -080035 name: "framework-appsearch",
Anton Hansson25a0a2b2020-10-08 13:43:48 +010036 srcs: [ ":framework-appsearch-sources" ],
Anton Hansson9f473e12020-04-09 15:28:51 +010037 sdk_version: "core_platform", // TODO(b/146218515) should be module_current
Anton Hansson25a0a2b2020-10-08 13:43:48 +010038 impl_only_libs: ["framework-minus-apex"], // TODO(b/146218515) should be removed
Anton Hansson25a0a2b2020-10-08 13:43:48 +010039 defaults: ["framework-module-defaults"],
Alexander Dorokhineb5d9bcc2020-01-16 13:10:15 -080040 permitted_packages: ["android.app.appsearch"],
Anton Hansson25a0a2b2020-10-08 13:43:48 +010041 aidl: {
42 include_dirs: ["frameworks/base/core/java"], // TODO(b/146218515) should be removed
43 },
Alexander Dorokhine0e8fa4e2020-01-13 20:22:20 -080044 apex_available: ["com.android.appsearch"],
Anton Hansson96b08ae2020-12-21 16:59:06 +000045 unsafe_ignore_missing_latest_api: true, // TODO(b/146218515) should be removed
Terry Wangecc0d1b2019-10-17 17:05:18 -070046}