blob: 977e610d734f2dfdb93d29bd6eff2891afa74f73 [file] [log] [blame]
Terry Wangf0889372019-11-20 16:48:48 -08001// 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 Badour5ed3f992021-02-23 13:18:34 -080015package {
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 Wangf0889372019-11-20 16:48:48 -080024apex {
25 name: "com.android.appsearch",
Terry Wangf0889372019-11-20 16:48:48 -080026 manifest: "apex_manifest.json",
satayev9ba377d2021-05-12 16:44:08 +010027 bootclasspath_fragments: ["com.android.appsearch-bootclasspath-fragment"],
satayev05830582021-05-18 14:43:38 +010028 systemserverclasspath_fragments: ["com.android.appsearch-systemserverclasspath-fragment"],
Terry Wangf0889372019-11-20 16:48:48 -080029 key: "com.android.appsearch.key",
30 certificate: ":com.android.appsearch.certificate",
Mathew Inwood66355f72021-02-23 14:00:23 +000031 updatable: false,
Alexander Dorokhine626d83c2021-06-28 19:44:58 -070032 jni_libs: ["libicing"],
Nikita Ioffe091aac32021-06-14 22:05:39 +010033 generate_hashtree: false,
Terry Wangf0889372019-11-20 16:48:48 -080034}
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}
satayev9ba377d2021-05-12 16:44:08 +010048
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"],
Paul Duffin2d31fbc2021-06-29 02:17:11 +010054
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 ],
satayev9ba377d2021-05-12 16:44:08 +010068}
satayev05830582021-05-18 14:43:38 +010069
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}