Neil Fuller | b27c437 | 2018-10-29 17:36:55 +0000 | [diff] [blame] | 1 | // Copyright (C) 2018 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 | |
Neil Fuller | cd2a147 | 2019-02-13 09:56:38 +0000 | [diff] [blame] | 15 | // Defaults shared between real and test versions of the APEX. |
| 16 | apex_defaults { |
| 17 | name: "com.android.tzdata-defaults", |
Jiyong Park | d0aa58d | 2020-02-24 18:39:26 +0900 | [diff] [blame] | 18 | updatable: true, |
Nikita Ioffe | cc7af28 | 2020-11-12 16:11:47 +0000 | [diff] [blame] | 19 | min_sdk_version: "30", |
Neil Fuller | cd2a147 | 2019-02-13 09:56:38 +0000 | [diff] [blame] | 20 | |
Neil Fuller | fda1ec7 | 2019-02-13 10:03:56 +0000 | [diff] [blame] | 21 | // Use a custom AndroidManifest.xml used for API targeting. |
| 22 | androidManifest: ":com.android.tzdata-androidManifest", |
| 23 | |
Neil Fuller | cd2a147 | 2019-02-13 09:56:38 +0000 | [diff] [blame] | 24 | // Explicit because the defaulting behavior only works for the real |
| 25 | // module. |
Jooyung Han | d3b9e9c | 2019-11-20 17:55:24 +0900 | [diff] [blame] | 26 | file_contexts: ":com.android.tzdata-file_contexts", |
Neil Fuller | cd2a147 | 2019-02-13 09:56:38 +0000 | [diff] [blame] | 27 | |
| 28 | // Shared signing information. |
Neil Fuller | b27c437 | 2018-10-29 17:36:55 +0000 | [diff] [blame] | 29 | key: "apex.tzdata.key", |
Jiyong Park | d6c51fe | 2019-02-11 11:01:06 +0900 | [diff] [blame] | 30 | certificate: ":com.android.tzdata.certificate", |
Neil Fuller | b27c437 | 2018-10-29 17:36:55 +0000 | [diff] [blame] | 31 | } |
| 32 | |
Neil Fuller | fda1ec7 | 2019-02-13 10:03:56 +0000 | [diff] [blame] | 33 | filegroup { |
| 34 | name: "com.android.tzdata-androidManifest", |
| 35 | srcs: ["AndroidManifest.xml"], |
| 36 | } |
| 37 | |
Neil Fuller | b27c437 | 2018-10-29 17:36:55 +0000 | [diff] [blame] | 38 | apex_key { |
| 39 | name: "apex.tzdata.key", |
Jiyong Park | e86064e | 2018-11-22 16:30:08 +0900 | [diff] [blame] | 40 | public_key: "com.android.tzdata.avbpubkey", |
| 41 | private_key: "com.android.tzdata.pem", |
Neil Fuller | b27c437 | 2018-10-29 17:36:55 +0000 | [diff] [blame] | 42 | } |
| 43 | |
Jiyong Park | d6c51fe | 2019-02-11 11:01:06 +0900 | [diff] [blame] | 44 | android_app_certificate { |
| 45 | name: "com.android.tzdata.certificate", |
| 46 | certificate: "com.android.tzdata", |
| 47 | } |
| 48 | |
Neil Fuller | cd2a147 | 2019-02-13 09:56:38 +0000 | [diff] [blame] | 49 | // The definition for the real (not test) tzdata APEX. |
| 50 | apex { |
| 51 | name: "com.android.tzdata", |
| 52 | defaults: ["com.android.tzdata-defaults"], |
| 53 | manifest: "manifest.json", |
| 54 | prebuilts: [ |
| 55 | "apex_tz_version", |
| 56 | "apex_tzlookup.xml", |
Neil Fuller | f85e814 | 2019-10-28 17:21:55 +0000 | [diff] [blame] | 57 | "apex_telephonylookup.xml", |
Neil Fuller | cd2a147 | 2019-02-13 09:56:38 +0000 | [diff] [blame] | 58 | "apex_tzdata", |
| 59 | "apex_icu_tzdata.dat", |
| 60 | ], |
| 61 | } |
Neil Fuller | e18ab53 | 2020-11-09 15:26:16 +0000 | [diff] [blame^] | 62 | |