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 15package { 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 24filegroup { 25 name: "framework-appsearch-sources", 26 srcs: [ 27 ":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: [ 36 "java/**/*.java", 37 "java/**/*.aidl", 38 ], 39 exclude_srcs: [":framework-appsearch-external-sources"], 40 path: "java", 41} 42 43filegroup { 44 name: "framework-appsearch-external-sources", 45 srcs: [ 46 "java/external/**/*.java", 47 "java/external/**/*.aidl", 48 ], 49 path: "java/external", 50} 51 52java_sdk_library { 53 name: "framework-appsearch", 54 srcs: [":framework-appsearch-sources"], 55 sdk_version: "module_current", 56 static_libs: [ 57 // This list must be kept in sync with jarjar.txt 58 "modules-utils-preconditions", 59 ], 60 defaults: ["framework-module-defaults"], 61 permitted_packages: ["android.app.appsearch"], 62 jarjar_rules: "jarjar-rules.txt", 63 apex_available: ["com.android.appsearch"], 64 impl_library_visibility: [ 65 "//frameworks/base/apex/appsearch/service", 66 ], 67 unsafe_ignore_missing_latest_api: true, // TODO(b/146218515) should be removed 68} 69