1//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
18//     CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
19//     DEPENDING ON IT IN YOUR PROJECT. ***
20package {
21    // See: http://go/android-license-faq
22    default_applicable_licenses: ["Android-Apache-2.0"],
23}
24
25license {
26    name: "tools_apkzlib_testdata_license",
27    visibility: ["//visibility:private"],
28    license_kinds: [
29        "SPDX-license-identifier-GFDL", // by exception only
30        "SPDX-license-identifier-GPL",
31        "legacy_notice",
32    ],
33}
34
35filegroup {
36    name: "tools_apkzlib_testdata",
37    srcs: ["src/test/resources/testData/**/*"],
38    visibility: ["//visibility:private"],
39    licenses: ["tools_apkzlib_testdata_license"],
40}
41
42java_library_static {
43    name: "apkzlib_zip",
44    sdk_version: "24",
45    srcs: [
46        "src/main/java/com/android/tools/build/apkzlib/utils/**/*.java",
47        "src/main/java/com/android/tools/build/apkzlib/zip/**/*.java",
48        ],
49    static_libs: ["guava"],
50}
51
52java_library_host {
53    name: "apkzlib",
54    srcs: [
55        "src/main/java/com/android/tools/build/apkzlib/**/*.java",
56        ],
57    static_libs: ["guava", "apksig"],
58}
59