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 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20// Defaults shared between real and test versions of the APEX. 21apex_defaults { 22 name: "com.android.tzdata-defaults", 23 updatable: true, 24 min_sdk_version: "33", 25 26 // Use a custom AndroidManifest.xml used for API targeting. 27 androidManifest: ":com.android.tzdata-androidManifest", 28 29 // Explicit because the defaulting behavior only works for the real 30 // module. 31 file_contexts: ":com.android.tzdata-file_contexts", 32 33 // Shared signing information. 34 key: "apex.tzdata.key", 35 certificate: ":com.android.tzdata.certificate", 36} 37 38filegroup { 39 name: "com.android.tzdata-androidManifest", 40 srcs: ["AndroidManifest.xml"], 41} 42 43apex_key { 44 name: "apex.tzdata.key", 45 public_key: "com.android.tzdata.avbpubkey", 46 private_key: "com.android.tzdata.pem", 47} 48 49android_app_certificate { 50 name: "com.android.tzdata.certificate", 51 certificate: "com.android.tzdata", 52} 53 54module_exports { 55 name: "tzdata-module-test-exports", 56 java_libs: [ 57 "tzdata-testing", 58 ], 59} 60 61// The definition for the real (not test) tzdata APEX. 62apex { 63 name: "com.android.tzdata", 64 defaults: ["com.android.tzdata-defaults"], 65 manifest: "manifest.json", 66 prebuilts: [ 67 "apex_tz_version", 68 "apex_tzdata", 69 "apex_tz_version_ver8", 70 "apex_tzlookup.xml_ver8", 71 "apex_telephonylookup.xml_ver8", 72 "apex_tzdata_ver8", 73 "apex_icu_res_files_ver8", 74 ], 75} 76