| 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: [ |
| Anton Hansson | fd6c615 | 2021-05-10 12:13:19 +0100 | [diff] [blame] | 27 | ":framework-appsearch-internal-sources", |
| 28 | ":framework-appsearch-external-sources", |
| 29 | ], |
| 30 | visibility: ["//frameworks/base"], |
| 31 | } |
| 32 | |
| 33 | filegroup { |
| 34 | name: "framework-appsearch-internal-sources", |
| 35 | srcs: [ |
| Alexander Dorokhine | 0e8fa4e | 2020-01-13 20:22:20 -0800 | [diff] [blame] | 36 | "java/**/*.java", |
| 37 | "java/**/*.aidl", |
| 38 | ], |
| Anton Hansson | fd6c615 | 2021-05-10 12:13:19 +0100 | [diff] [blame] | 39 | exclude_srcs: [":framework-appsearch-external-sources"], |
| Alexander Dorokhine | 0e8fa4e | 2020-01-13 20:22:20 -0800 | [diff] [blame] | 40 | path: "java", |
| Anton Hansson | fd6c615 | 2021-05-10 12:13:19 +0100 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | filegroup { |
| 44 | name: "framework-appsearch-external-sources", |
| 45 | srcs: [ |
| 46 | "java/external/**/*.java", |
| 47 | "java/external/**/*.aidl", |
| 48 | ], |
| 49 | path: "java/external", |
| Terry Wang | ecc0d1b | 2019-10-17 17:05:18 -0700 | [diff] [blame] | 50 | } |
| 51 | |
| Anton Hansson | 25a0a2b | 2020-10-08 13:43:48 +0100 | [diff] [blame] | 52 | java_sdk_library { |
| Alexander Dorokhine | 0e8fa4e | 2020-01-13 20:22:20 -0800 | [diff] [blame] | 53 | name: "framework-appsearch", |
| Alexander Dorokhine | b10c516 | 2021-04-30 19:05:16 -0700 | [diff] [blame] | 54 | srcs: [":framework-appsearch-sources"], |
| Alexander Dorokhine | c0bf81a | 2021-05-12 11:34:51 -0700 | [diff] [blame] | 55 | sdk_version: "module_current", |
| 56 | static_libs: [ |
| 57 | // This list must be kept in sync with jarjar.txt |
| 58 | "modules-utils-preconditions", |
| 59 | ], |
| Alexander Dorokhine | b10c516 | 2021-04-30 19:05:16 -0700 | [diff] [blame] | 60 | libs: ["unsupportedappusage"], // TODO(b/181887768) should be removed |
| Anton Hansson | 25a0a2b | 2020-10-08 13:43:48 +0100 | [diff] [blame] | 61 | defaults: ["framework-module-defaults"], |
| Alexander Dorokhine | b5d9bcc | 2020-01-16 13:10:15 -0800 | [diff] [blame] | 62 | permitted_packages: ["android.app.appsearch"], |
| Anton Hansson | 25a0a2b | 2020-10-08 13:43:48 +0100 | [diff] [blame] | 63 | aidl: { |
| 64 | include_dirs: ["frameworks/base/core/java"], // TODO(b/146218515) should be removed |
| 65 | }, |
| Alexander Dorokhine | c0bf81a | 2021-05-12 11:34:51 -0700 | [diff] [blame] | 66 | jarjar_rules: "jarjar-rules.txt", |
| Alexander Dorokhine | 0e8fa4e | 2020-01-13 20:22:20 -0800 | [diff] [blame] | 67 | apex_available: ["com.android.appsearch"], |
| Alexander Dorokhine | 9da0fe5 | 2021-06-24 22:58:46 -0700 | [diff] [blame] | 68 | impl_library_visibility: [ |
| 69 | "//frameworks/base/apex/appsearch/service", |
| 70 | ], |
| Anton Hansson | 96b08ae | 2020-12-21 16:59:06 +0000 | [diff] [blame] | 71 | unsafe_ignore_missing_latest_api: true, // TODO(b/146218515) should be removed |
| Terry Wang | ecc0d1b | 2019-10-17 17:05:18 -0700 | [diff] [blame] | 72 | } |