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 24apex { 25 name: "com.android.appsearch", 26 manifest: "apex_manifest.json", 27 bootclasspath_fragments: ["com.android.appsearch-bootclasspath-fragment"], 28 systemserverclasspath_fragments: ["com.android.appsearch-systemserverclasspath-fragment"], 29 key: "com.android.appsearch.key", 30 certificate: ":com.android.appsearch.certificate", 31 updatable: false, 32 jni_libs: ["libicing"], 33 generate_hashtree: false, 34} 35 36apex_key { 37 name: "com.android.appsearch.key", 38 public_key: "com.android.appsearch.avbpubkey", 39 private_key: "com.android.appsearch.pem", 40} 41 42android_app_certificate { 43 name: "com.android.appsearch.certificate", 44 // This will use com.android.appsearch.x509.pem (the cert) and 45 // com.android.appsearch.pk8 (the private key) 46 certificate: "com.android.appsearch", 47} 48 49// Encapsulate the contributions made by the com.android.appsearch to the bootclasspath. 50bootclasspath_fragment { 51 name: "com.android.appsearch-bootclasspath-fragment", 52 contents: ["framework-appsearch"], 53 apex_available: ["com.android.appsearch"], 54 55 // The bootclasspath_fragments that provide APIs on which this depends. 56 fragments: [ 57 { 58 apex: "com.android.art", 59 module: "art-bootclasspath-fragment", 60 }, 61 ], 62 63 // Additional stubs libraries that this fragment's contents use which are 64 // not provided by another bootclasspath_fragment. 65 additional_stubs: [ 66 "android-non-updatable", 67 ], 68} 69 70// Encapsulate the contributions made by the com.android.appsearch to the systemserverclasspath. 71systemserverclasspath_fragment { 72 name: "com.android.appsearch-systemserverclasspath-fragment", 73 contents: ["service-appsearch"], 74 apex_available: ["com.android.appsearch"], 75} 76