blob: aed25c703daad58e779689ec24aec046ce196f4f [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
Baligh Uddinaae30492021-09-28 05:09:49 +000018 default_applicable_licenses: ["packages_modules_appsearch_license"],
Bob Badour5ed3f992021-02-23 13:18:34 -080019}
20
Baligh Uddinaae30492021-09-28 05:09:49 +000021// Added automatically by a large-scale-change
22// See: http://go/android-license-faq
23license {
24 name: "packages_modules_appsearch_license",
25 visibility: [":__subpackages__"],
26 license_kinds: [
27 "SPDX-license-identifier-Apache-2.0",
28 ],
29 license_text: [
30 "NOTICE",
31 ],
32}
33
34
Terry Wangf0889372019-11-20 16:48:48 -080035apex {
36 name: "com.android.appsearch",
Terry Wangf0889372019-11-20 16:48:48 -080037 manifest: "apex_manifest.json",
satayev9ba377d2021-05-12 16:44:08 +010038 bootclasspath_fragments: ["com.android.appsearch-bootclasspath-fragment"],
satayev05830582021-05-18 14:43:38 +010039 systemserverclasspath_fragments: ["com.android.appsearch-systemserverclasspath-fragment"],
Terry Wangf0889372019-11-20 16:48:48 -080040 key: "com.android.appsearch.key",
41 certificate: ":com.android.appsearch.certificate",
Mathew Inwood66355f72021-02-23 14:00:23 +000042 updatable: false,
Alexander Dorokhine626d83c2021-06-28 19:44:58 -070043 jni_libs: ["libicing"],
Terry Wangf0889372019-11-20 16:48:48 -080044}
45
46apex_key {
47 name: "com.android.appsearch.key",
48 public_key: "com.android.appsearch.avbpubkey",
49 private_key: "com.android.appsearch.pem",
50}
51
52android_app_certificate {
53 name: "com.android.appsearch.certificate",
54 // This will use com.android.appsearch.x509.pem (the cert) and
55 // com.android.appsearch.pk8 (the private key)
56 certificate: "com.android.appsearch",
57}
satayev9ba377d2021-05-12 16:44:08 +010058
59// Encapsulate the contributions made by the com.android.appsearch to the bootclasspath.
60bootclasspath_fragment {
61 name: "com.android.appsearch-bootclasspath-fragment",
62 contents: ["framework-appsearch"],
63 apex_available: ["com.android.appsearch"],
Paul Duffin2d31fbc2021-06-29 02:17:11 +010064
65 // The bootclasspath_fragments that provide APIs on which this depends.
66 fragments: [
67 {
68 apex: "com.android.art",
69 module: "art-bootclasspath-fragment",
70 },
71 ],
72
73 // Additional stubs libraries that this fragment's contents use which are
74 // not provided by another bootclasspath_fragment.
75 additional_stubs: [
76 "android-non-updatable",
77 ],
Paul Duffincaa3e6c2022-03-15 16:54:41 +000078
79 hidden_api: {
80 // This module does not contain any split packages.
81 split_packages: [],
82
83 // The following packages and all their subpackages currently only
84 // contain classes from this bootclasspath_fragment. Listing a package
85 // here won't prevent other bootclasspath modules from adding classes in
86 // any of those packages but it will prevent them from adding those
87 // classes into an API surface, e.g. public, system, etc.. Doing so will
88 // result in a build failure due to inconsistent flags.
89 package_prefixes: [
90 "android.app.appsearch",
91 ],
92 },
satayev9ba377d2021-05-12 16:44:08 +010093}
satayev05830582021-05-18 14:43:38 +010094
95// Encapsulate the contributions made by the com.android.appsearch to the systemserverclasspath.
96systemserverclasspath_fragment {
97 name: "com.android.appsearch-systemserverclasspath-fragment",
98 contents: ["service-appsearch"],
99 apex_available: ["com.android.appsearch"],
100}