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
15package {
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
23// Defaults shared between real and test versions of the APEX.
24apex_defaults {
25    name: "com.android.tzdata-defaults",
26    updatable: true,
27    min_sdk_version: "31",
28
29    // Use a custom AndroidManifest.xml used for API targeting.
30    androidManifest: ":com.android.tzdata-androidManifest",
31
32    // Explicit because the defaulting behavior only works for the real
33    // module.
34    file_contexts: ":com.android.tzdata-file_contexts",
35
36    // Shared signing information.
37    key: "apex.tzdata.key",
38    certificate: ":com.android.tzdata.certificate",
39}
40
41filegroup {
42    name: "com.android.tzdata-androidManifest",
43    srcs: ["AndroidManifest.xml"],
44}
45
46apex_key {
47    name: "apex.tzdata.key",
48    public_key: "com.android.tzdata.avbpubkey",
49    private_key: "com.android.tzdata.pem",
50}
51
52android_app_certificate {
53    name: "com.android.tzdata.certificate",
54    certificate: "com.android.tzdata",
55}
56
57module_exports {
58    name: "tzdata-module-test-exports",
59    java_libs: [
60        "tzdata-testing",
61    ],
62}
63
64// 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",
72        "apex_telephonylookup.xml",
73        "apex_tzdata",
74        "apex_icu_tzdata.dat",
75    ],
76}
77