blob: 9521f55112fa00552ba29278cc5dc9a361bae352 [file] [log] [blame]
Neil Fullerb27c4372018-10-29 17:36:55 +00001// 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
Bob Badoura8ca3442021-02-03 18:16:54 -080015package {
16 // http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // the below license kinds from "system_timezone_license":
19 // SPDX-license-identifier-Apache-2.0
20 default_applicable_licenses: ["system_timezone_license"],
21}
22
Neil Fullercd2a1472019-02-13 09:56:38 +000023// Defaults shared between real and test versions of the APEX.
24apex_defaults {
25 name: "com.android.tzdata-defaults",
Jiyong Parkd0aa58d2020-02-24 18:39:26 +090026 updatable: true,
Nikita Ioffecc7af282020-11-12 16:11:47 +000027 min_sdk_version: "30",
Neil Fullercd2a1472019-02-13 09:56:38 +000028
Neil Fullerfda1ec72019-02-13 10:03:56 +000029 // Use a custom AndroidManifest.xml used for API targeting.
30 androidManifest: ":com.android.tzdata-androidManifest",
31
Neil Fullercd2a1472019-02-13 09:56:38 +000032 // Explicit because the defaulting behavior only works for the real
33 // module.
Jooyung Hand3b9e9c2019-11-20 17:55:24 +090034 file_contexts: ":com.android.tzdata-file_contexts",
Neil Fullercd2a1472019-02-13 09:56:38 +000035
36 // Shared signing information.
Neil Fullerb27c4372018-10-29 17:36:55 +000037 key: "apex.tzdata.key",
Jiyong Parkd6c51fe2019-02-11 11:01:06 +090038 certificate: ":com.android.tzdata.certificate",
Neil Fullerb27c4372018-10-29 17:36:55 +000039}
40
Neil Fullerfda1ec72019-02-13 10:03:56 +000041filegroup {
42 name: "com.android.tzdata-androidManifest",
43 srcs: ["AndroidManifest.xml"],
44}
45
Neil Fullerb27c4372018-10-29 17:36:55 +000046apex_key {
47 name: "apex.tzdata.key",
Jiyong Parke86064e2018-11-22 16:30:08 +090048 public_key: "com.android.tzdata.avbpubkey",
49 private_key: "com.android.tzdata.pem",
Neil Fullerb27c4372018-10-29 17:36:55 +000050}
51
Jiyong Parkd6c51fe2019-02-11 11:01:06 +090052android_app_certificate {
53 name: "com.android.tzdata.certificate",
54 certificate: "com.android.tzdata",
55}
56
Nicolas Geoffrayd79ea582021-01-11 09:43:25 +000057module_exports {
58 name: "tzdata-module-test-exports",
59 java_libs: [
60 "tzdata-testing",
61 ],
62}
63
Neil Fullercd2a1472019-02-13 09:56:38 +000064// The definition for the real (not test) tzdata APEX.
65apex {
66 name: "com.android.tzdata",
67 defaults: ["com.android.tzdata-defaults"],
68 manifest: "manifest.json",
69 prebuilts: [
70 "apex_tz_version",
71 "apex_tzlookup.xml",
Neil Fullerf85e8142019-10-28 17:21:55 +000072 "apex_telephonylookup.xml",
Neil Fullercd2a1472019-02-13 09:56:38 +000073 "apex_tzdata",
74 "apex_icu_tzdata.dat",
75 ],
76}