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        "//apex_available:platform",
35        "com.android.geotz",
36    ],
37}
38
39// Device side tests for the geotz_lookup code.
40android_test {
41    name: "GeotzLookupTests",
42    srcs: ["src/test/java/**/*.java"],
43    manifest: "src/test/AndroidManifest.xml",
44    sdk_version: "31",
45    min_sdk_version: "31",
46    static_libs: [
47        "androidx.test.runner",
48        "geotz_lookup",
49        "junit",
50    ],
51    java_resources: [":tzs2.dat-resources"],
52    test_suites: ["general-tests"],
53}
54