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 that can be incorporated into an Application to provide an Offline 16// LocationTimeZoneProvider service. 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21java_library { 22 name: "offlinelocationtimezoneprovider", 23 srcs: ["src/main/java/**/*.java"], 24 sdk_version: "system_31", 25 libs: [ 26 "androidx.annotation_annotation", 27 ], 28 static_libs: [ 29 "geotz_common", 30 "geotz_lookup", 31 ], 32 apex_available: [ 33 "com.android.geotz", 34 ], 35} 36 37// Device side tests for offlinelocationtimezoneprovider. 38android_test { 39 name: "OfflineLocationTimeZoneProviderTests", 40 srcs: ["src/test/java/**/*.java"], 41 manifest: "src/test/AndroidManifest.xml", 42 sdk_version: "system_31", 43 static_libs: [ 44 "androidx.test.runner", 45 "junit", 46 "offlinelocationtimezoneprovider", 47 "truth-prebuilt", 48 ], 49 test_suites: ["general-tests"], 50} 51