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// Library for read-only access to TZ S2 data files.
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20// GeoTZ read-only classes (including generic classes)
21java_library {
22    name: "geotz_s2storage_ro",
23    sdk_version: "31",
24    min_sdk_version: "31",
25    host_supported: true,
26    srcs: [
27        "src/readonly/java/com/android/timezone/**/*.java",
28    ],
29    static_libs: [
30        "s2storage_ro",
31    ],
32    apex_available: [
33        "//apex_available:platform",
34        "com.android.geotz",
35    ],
36}
37
38// Library for read/write access to TZ S2 data files.
39java_library_host {
40    name: "geotz_s2storage_rw",
41    srcs: [
42        "src/write/java/**/*.java",
43    ],
44    static_libs: [
45        "geotz_s2storage_ro",
46        "s2storage_rw",
47    ],
48}
49
50// Tests for the TZ S2 storage code.
51java_test_host {
52    name: "geotz_s2storage_tests",
53
54    srcs: ["src/test/java/**/*.java"],
55    static_libs: [
56        "s2storage_testing",
57        "geotz_s2storage_rw",
58        "junit",
59        "mockito",
60        "objenesis",
61    ],
62    test_options: {
63        unit_test: true,
64    },
65}
66