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 "packages_modules_appsearch_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["packages_modules_appsearch_license"], 22} 23 24filegroup { 25 name: "framework-appsearch-sources", 26 defaults: ["framework-sources-module-defaults"], 27 srcs: [ 28 ":framework-appsearch-internal-sources", 29 ":framework-appsearch-external-sources", 30 ], 31 visibility: ["//packages/modules/AppSearch:__subpackages__"], 32} 33 34filegroup { 35 name: "framework-appsearch-internal-sources", 36 srcs: [ 37 "java/**/*.java", 38 "java/**/*.aidl", 39 ], 40 exclude_srcs: [":framework-appsearch-external-sources"], 41 path: "java", 42} 43 44filegroup { 45 name: "framework-appsearch-external-sources", 46 srcs: [ 47 "java/external/**/*.java", 48 "java/external/**/*.aidl", 49 ], 50 path: "java/external", 51} 52 53java_sdk_library { 54 name: "framework-appsearch", 55 srcs: [":framework-appsearch-sources"], 56 sdk_version: "module_current", 57 min_sdk_version: "Tiramisu", 58 libs: ["unsupportedappusage"], 59 static_libs: [ 60 // This list must be kept in sync with jarjar.txt 61 "modules-utils-preconditions", 62 ], 63 optimize: { 64 enabled: true, 65 optimize: true, 66 shrink: true, 67 proguard_flags_files: ["proguard.flags"], 68 }, 69 defaults: ["framework-module-defaults"], 70 permitted_packages: ["android.app.appsearch"], 71 jarjar_rules: "jarjar-rules.txt", 72 apex_available: ["com.android.appsearch"], 73 impl_library_visibility: [ 74 "//cts/tests/appsearch:__subpackages__", 75 "//packages/modules/AppSearch/service:__subpackages__", 76 "//packages/modules/AppSearch/testing:__subpackages__", 77 ], 78} 79 80java_api_contribution { 81 name: "framework-appsearch-public-stubs", 82 api_surface: "public", 83 api_file: "api/current.txt", 84 visibility: [ 85 "//build/orchestrator/apis", 86 ], 87} 88 89java_api_contribution { 90 name: "framework-appsearch-system-stubs", 91 api_surface: "system", 92 api_file: "api/system-current.txt", 93 visibility: [ 94 "//build/orchestrator/apis", 95 ], 96} 97 98java_api_contribution { 99 name: "framework-appsearch-module-lib-stubs", 100 api_surface: "module-lib", 101 api_file: "api/module-lib-current.txt", 102 visibility: [ 103 "//build/orchestrator/apis", 104 ], 105} 106