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// Generic read-only storage classes 21java_library { 22 name: "s2storage_ro", 23 sdk_version: "31", 24 min_sdk_version: "31", 25 host_supported: true, 26 srcs: [ 27 "src/readonly/java/**/*.java", 28 ], 29 apex_available: [ 30 "//apex_available:platform", 31 "com.android.geotz", 32 ], 33} 34 35// Generic read/write storage classes 36java_library { 37 name: "s2storage_rw", 38 host_supported: true, 39 srcs: [ 40 "src/write/java/**/*.java", 41 ], 42 static_libs: [ 43 "s2storage_ro", 44 ], 45} 46 47// Generic read-only storage classes 48java_library_host { 49 name: "s2storage_testing", 50 srcs: [ 51 "src/testing/java/**/*.java", 52 ], 53 libs: [ 54 "junit", 55 ], 56} 57 58// Tests for the generic storage classes 59java_test_host { 60 name: "s2storage_tests", 61 62 srcs: ["src/test/java/**/*.java"], 63 static_libs: [ 64 "s2storage_rw", 65 "s2storage_testing", 66 "junit", 67 "mockito", 68 "objenesis", 69 ], 70 test_options: { 71 unit_test: true, 72 }, 73} 74