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 |
| 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 Wang | f088937 | 2019-11-20 16:48:48 -0800 | [diff] [blame] | 24 | apex { |
| 25 | name: "com.android.appsearch", |
Terry Wang | f088937 | 2019-11-20 16:48:48 -0800 | [diff] [blame] | 26 | manifest: "apex_manifest.json", |
satayev | 9ba377d | 2021-05-12 16:44:08 +0100 | [diff] [blame] | 27 | bootclasspath_fragments: ["com.android.appsearch-bootclasspath-fragment"], |
satayev | 0583058 | 2021-05-18 14:43:38 +0100 | [diff] [blame] | 28 | systemserverclasspath_fragments: ["com.android.appsearch-systemserverclasspath-fragment"], |
Terry Wang | f088937 | 2019-11-20 16:48:48 -0800 | [diff] [blame] | 29 | key: "com.android.appsearch.key", |
| 30 | certificate: ":com.android.appsearch.certificate", |
Mathew Inwood | 66355f7 | 2021-02-23 14:00:23 +0000 | [diff] [blame] | 31 | updatable: false, |
Nikita Ioffe | 091aac3 | 2021-06-14 22:05:39 +0100 | [diff] [blame] | 32 | generate_hashtree: false, |
Terry Wang | f088937 | 2019-11-20 16:48:48 -0800 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | apex_key { |
| 36 | name: "com.android.appsearch.key", |
| 37 | public_key: "com.android.appsearch.avbpubkey", |
| 38 | private_key: "com.android.appsearch.pem", |
| 39 | } |
| 40 | |
| 41 | android_app_certificate { |
| 42 | name: "com.android.appsearch.certificate", |
| 43 | // This will use com.android.appsearch.x509.pem (the cert) and |
| 44 | // com.android.appsearch.pk8 (the private key) |
| 45 | certificate: "com.android.appsearch", |
| 46 | } |
satayev | 9ba377d | 2021-05-12 16:44:08 +0100 | [diff] [blame] | 47 | |
| 48 | // Encapsulate the contributions made by the com.android.appsearch to the bootclasspath. |
| 49 | bootclasspath_fragment { |
| 50 | name: "com.android.appsearch-bootclasspath-fragment", |
| 51 | contents: ["framework-appsearch"], |
| 52 | apex_available: ["com.android.appsearch"], |
Paul Duffin | 2d31fbc | 2021-06-29 02:17:11 +0100 | [diff] [blame^] | 53 | |
| 54 | // The bootclasspath_fragments that provide APIs on which this depends. |
| 55 | fragments: [ |
| 56 | { |
| 57 | apex: "com.android.art", |
| 58 | module: "art-bootclasspath-fragment", |
| 59 | }, |
| 60 | ], |
| 61 | |
| 62 | // Additional stubs libraries that this fragment's contents use which are |
| 63 | // not provided by another bootclasspath_fragment. |
| 64 | additional_stubs: [ |
| 65 | "android-non-updatable", |
| 66 | ], |
satayev | 9ba377d | 2021-05-12 16:44:08 +0100 | [diff] [blame] | 67 | } |
satayev | 0583058 | 2021-05-18 14:43:38 +0100 | [diff] [blame] | 68 | |
| 69 | // Encapsulate the contributions made by the com.android.appsearch to the systemserverclasspath. |
| 70 | systemserverclasspath_fragment { |
| 71 | name: "com.android.appsearch-systemserverclasspath-fragment", |
| 72 | contents: ["service-appsearch"], |
| 73 | apex_available: ["com.android.appsearch"], |
| 74 | } |