| Terry Wang | ecc0d1b | 2019-10-17 17:05:18 -0700 | [diff] [blame] | 1 | // 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 Badour | d594958 | 2021-02-23 13:18:34 -0800 | [diff] [blame] | 15 | package { |
| 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 Wang | ecc0d1b | 2019-10-17 17:05:18 -0700 | [diff] [blame] | 24 | filegroup { |
| Alexander Dorokhine | 0e8fa4e | 2020-01-13 20:22:20 -0800 | [diff] [blame] | 25 | name: "framework-appsearch-sources", |
| 26 | srcs: [ |
| 27 | "java/**/*.java", |
| 28 | "java/**/*.aidl", |
| 29 | ], |
| 30 | path: "java", |
| Anton Hansson | c7aa3f1 | 2020-12-15 18:28:20 +0000 | [diff] [blame] | 31 | visibility: ["//frameworks/base"], |
| Terry Wang | ecc0d1b | 2019-10-17 17:05:18 -0700 | [diff] [blame] | 32 | } |
| 33 | |
| Anton Hansson | 25a0a2b | 2020-10-08 13:43:48 +0100 | [diff] [blame] | 34 | java_sdk_library { |
| Alexander Dorokhine | 0e8fa4e | 2020-01-13 20:22:20 -0800 | [diff] [blame] | 35 | name: "framework-appsearch", |
| Alexander Dorokhine | b10c516 | 2021-04-30 19:05:16 -0700 | [diff] [blame^] | 36 | srcs: [":framework-appsearch-sources"], |
| Anton Hansson | 9f473e1 | 2020-04-09 15:28:51 +0100 | [diff] [blame] | 37 | sdk_version: "core_platform", // TODO(b/146218515) should be module_current |
| Anton Hansson | 25a0a2b | 2020-10-08 13:43:48 +0100 | [diff] [blame] | 38 | impl_only_libs: ["framework-minus-apex"], // TODO(b/146218515) should be removed |
| Alexander Dorokhine | b10c516 | 2021-04-30 19:05:16 -0700 | [diff] [blame^] | 39 | libs: ["unsupportedappusage"], // TODO(b/181887768) should be removed |
| Anton Hansson | 25a0a2b | 2020-10-08 13:43:48 +0100 | [diff] [blame] | 40 | defaults: ["framework-module-defaults"], |
| Alexander Dorokhine | b5d9bcc | 2020-01-16 13:10:15 -0800 | [diff] [blame] | 41 | permitted_packages: ["android.app.appsearch"], |
| Anton Hansson | 25a0a2b | 2020-10-08 13:43:48 +0100 | [diff] [blame] | 42 | aidl: { |
| 43 | include_dirs: ["frameworks/base/core/java"], // TODO(b/146218515) should be removed |
| 44 | }, |
| Alexander Dorokhine | 0e8fa4e | 2020-01-13 20:22:20 -0800 | [diff] [blame] | 45 | apex_available: ["com.android.appsearch"], |
| Anton Hansson | 96b08ae | 2020-12-21 16:59:06 +0000 | [diff] [blame] | 46 | unsafe_ignore_missing_latest_api: true, // TODO(b/146218515) should be removed |
| Terry Wang | ecc0d1b | 2019-10-17 17:05:18 -0700 | [diff] [blame] | 47 | } |