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 default_applicable_licenses: ["tools_apkzlib_license"], 22} 23 24// Added automatically by a large-scale-change that took the approach of 25// 'apply every license found to every target'. While this makes sure we respect 26// every license restriction, it may not be entirely correct. 27// 28// e.g. GPL in an MIT project might only apply to the contrib/ directory. 29// 30// Please consider splitting the single license below into multiple licenses, 31// taking care not to lose any license_kind information, and overriding the 32// default license using the 'licenses: [...]' property on targets as needed. 33// 34// For unused files, consider creating a 'fileGroup' with "//visibility:private" 35// to attach the license to, and including a comment whether the files may be 36// used in the current project. 37// See: http://go/android-license-faq 38license { 39 name: "tools_apkzlib_license", 40 visibility: [":__subpackages__"], 41 license_kinds: [ 42 "SPDX-license-identifier-Apache-2.0", 43 "SPDX-license-identifier-GFDL", // by exception only 44 "SPDX-license-identifier-GPL", 45 "legacy_notice", 46 ], 47 // large-scale-change unable to identify any license_text files 48} 49 50java_library_static { 51 name: "apkzlib_zip", 52 sdk_version: "24", 53 srcs: [ 54 "src/main/java/com/android/tools/build/apkzlib/utils/**/*.java", 55 "src/main/java/com/android/tools/build/apkzlib/zip/**/*.java", 56 ], 57 static_libs: ["guava"], 58} 59 60java_library_host { 61 name: "apkzlib", 62 srcs: [ 63 "src/main/java/com/android/tools/build/apkzlib/**/*.java", 64 ], 65 static_libs: ["guava", "apksig"], 66} 67