1// Copyright (C) 2020 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 15// A library for use on device or host to lookup time zones for a location. 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_library { 21 name: "geotz_lookup", 22 srcs: ["src/main/java/**/*.java"], 23 sdk_version: "31", 24 min_sdk_version: "31", 25 libs: ["androidx.annotation_annotation"], 26 static_libs: [ 27 "geotz_common", 28 "geotz_s2storage_ro", 29 "s2-geometry-library-java", 30 ], 31 host_supported: true, 32 jarjar_rules: "jarjar-rules.txt", 33 apex_available: [ 34 "com.android.geotz", 35 ], 36} 37 38// Device side tests for the geotz_lookup code. 39android_test { 40 name: "GeotzLookupTests", 41 srcs: ["src/test/java/**/*.java"], 42 manifest: "src/test/AndroidManifest.xml", 43 sdk_version: "31", 44 min_sdk_version: "31", 45 static_libs: [ 46 "androidx.test.runner", 47 "geotz_lookup", 48 "junit", 49 ], 50 java_resources: [":tzs2.dat-resources"], 51 test_suites: ["general-tests"], 52} 53