Terry Wang | f088937 | 2019-11-20 16:48:48 -0800 | [diff] [blame] | 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 | |
Bob Badour | 5ed3f99 | 2021-02-23 13:18:34 -0800 | [diff] [blame] | 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
Baligh Uddin | 04eb58f | 2021-09-28 05:09:49 +0000 | [diff] [blame^] | 18 | default_applicable_licenses: ["packages_modules_appsearch_license"], |
Bob Badour | 5ed3f99 | 2021-02-23 13:18:34 -0800 | [diff] [blame] | 19 | } |
| 20 | |
Baligh Uddin | 04eb58f | 2021-09-28 05:09:49 +0000 | [diff] [blame^] | 21 | // Added automatically by a large-scale-change |
| 22 | // See: http://go/android-license-faq |
| 23 | license { |
| 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 Wang | f088937 | 2019-11-20 16:48:48 -0800 | [diff] [blame] | 35 | apex { |
| 36 | name: "com.android.appsearch", |
Terry Wang | f088937 | 2019-11-20 16:48:48 -0800 | [diff] [blame] | 37 | manifest: "apex_manifest.json", |
satayev | 9ba377d | 2021-05-12 16:44:08 +0100 | [diff] [blame] | 38 | bootclasspath_fragments: ["com.android.appsearch-bootclasspath-fragment"], |
satayev | 0583058 | 2021-05-18 14:43:38 +0100 | [diff] [blame] | 39 | systemserverclasspath_fragments: ["com.android.appsearch-systemserverclasspath-fragment"], |
Terry Wang | f088937 | 2019-11-20 16:48:48 -0800 | [diff] [blame] | 40 | key: "com.android.appsearch.key", |
| 41 | certificate: ":com.android.appsearch.certificate", |
Mathew Inwood | 66355f7 | 2021-02-23 14:00:23 +0000 | [diff] [blame] | 42 | updatable: false, |
Alexander Dorokhine | 626d83c | 2021-06-28 19:44:58 -0700 | [diff] [blame] | 43 | jni_libs: ["libicing"], |
Nikita Ioffe | 091aac3 | 2021-06-14 22:05:39 +0100 | [diff] [blame] | 44 | generate_hashtree: false, |
Terry Wang | f088937 | 2019-11-20 16:48:48 -0800 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | apex_key { |
| 48 | name: "com.android.appsearch.key", |
| 49 | public_key: "com.android.appsearch.avbpubkey", |
| 50 | private_key: "com.android.appsearch.pem", |
| 51 | } |
| 52 | |
| 53 | android_app_certificate { |
| 54 | name: "com.android.appsearch.certificate", |
| 55 | // This will use com.android.appsearch.x509.pem (the cert) and |
| 56 | // com.android.appsearch.pk8 (the private key) |
| 57 | certificate: "com.android.appsearch", |
| 58 | } |
satayev | 9ba377d | 2021-05-12 16:44:08 +0100 | [diff] [blame] | 59 | |
| 60 | // Encapsulate the contributions made by the com.android.appsearch to the bootclasspath. |
| 61 | bootclasspath_fragment { |
| 62 | name: "com.android.appsearch-bootclasspath-fragment", |
| 63 | contents: ["framework-appsearch"], |
| 64 | apex_available: ["com.android.appsearch"], |
Paul Duffin | 2d31fbc | 2021-06-29 02:17:11 +0100 | [diff] [blame] | 65 | |
| 66 | // The bootclasspath_fragments that provide APIs on which this depends. |
| 67 | fragments: [ |
| 68 | { |
| 69 | apex: "com.android.art", |
| 70 | module: "art-bootclasspath-fragment", |
| 71 | }, |
| 72 | ], |
| 73 | |
| 74 | // Additional stubs libraries that this fragment's contents use which are |
| 75 | // not provided by another bootclasspath_fragment. |
| 76 | additional_stubs: [ |
| 77 | "android-non-updatable", |
| 78 | ], |
satayev | 9ba377d | 2021-05-12 16:44:08 +0100 | [diff] [blame] | 79 | } |
satayev | 0583058 | 2021-05-18 14:43:38 +0100 | [diff] [blame] | 80 | |
| 81 | // Encapsulate the contributions made by the com.android.appsearch to the systemserverclasspath. |
| 82 | systemserverclasspath_fragment { |
| 83 | name: "com.android.appsearch-systemserverclasspath-fragment", |
| 84 | contents: ["service-appsearch"], |
| 85 | apex_available: ["com.android.appsearch"], |
| 86 | } |