1// Copyright 2021 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 15package { 16 default_applicable_licenses: ["external_downloader_src_main_license"], 17} 18 19// Added automatically by a large-scale-change 20// See: http://go/android-license-faq 21license { 22 name: "external_downloader_src_main_license", 23 visibility: [":__subpackages__"], 24 license_kinds: [ 25 "SPDX-license-identifier-Apache-2.0", 26 ], 27 license_text: [ 28 "LICENSE", 29 ], 30} 31 32android_library { 33 name: "android_downloader_lib", 34 srcs: ["java/**/*.java"], 35 exclude_srcs: [ 36 "java/com/google/android/downloader/CronetUrlEngine.java", 37 "java/com/google/android/downloader/FloggerDownloaderLogger.java", 38 "java/com/google/android/downloader/OkHttp2UrlEngine.java", 39 "java/com/google/android/downloader/OkHttp3UrlEngine.java", 40 "java/com/google/android/downloader/ProtoFileDownloadDestination.java", 41 "java/com/google/android/downloader/AndroidConnectivityHandler.java", 42 ], 43 static_libs: [ 44 "androidx.core_core", 45 "androidx.annotation_annotation", 46 "error_prone_annotations", 47 "guava", 48 ], 49 libs: [ 50 "auto_value_annotations", 51 ], 52 plugins: [ 53 "auto_value_plugin", 54 ], 55 sdk_version: "current", 56 min_sdk_version: "30", 57 apex_available: [ 58 "//apex_available:platform", 59 "com.android.extservices", 60 ], 61 visibility: [ 62 "//external/libtextclassifier:__subpackages__", 63 ], 64} 65