xref: /aosp_15_r20/external/volley/Android.bp (revision a494ed5db247d14ea5602de4a744bb4a531fd3a7)
1*a494ed5dSAndroid Build Coastguard Worker//
2*a494ed5dSAndroid Build Coastguard Worker// Copyright (C) 2011 The Android Open Source Project
3*a494ed5dSAndroid Build Coastguard Worker//
4*a494ed5dSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*a494ed5dSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*a494ed5dSAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*a494ed5dSAndroid Build Coastguard Worker//
8*a494ed5dSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*a494ed5dSAndroid Build Coastguard Worker//
10*a494ed5dSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*a494ed5dSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*a494ed5dSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*a494ed5dSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*a494ed5dSAndroid Build Coastguard Worker// limitations under the License.
15*a494ed5dSAndroid Build Coastguard Worker//
16*a494ed5dSAndroid Build Coastguard Worker
17*a494ed5dSAndroid Build Coastguard Workerpackage {
18*a494ed5dSAndroid Build Coastguard Worker    default_applicable_licenses: ["external_volley_license"],
19*a494ed5dSAndroid Build Coastguard Worker}
20*a494ed5dSAndroid Build Coastguard Worker
21*a494ed5dSAndroid Build Coastguard Worker// Added automatically by a large-scale-change
22*a494ed5dSAndroid Build Coastguard Worker// http://go/android-license-faq
23*a494ed5dSAndroid Build Coastguard Workerlicense {
24*a494ed5dSAndroid Build Coastguard Worker    name: "external_volley_license",
25*a494ed5dSAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
26*a494ed5dSAndroid Build Coastguard Worker    license_kinds: [
27*a494ed5dSAndroid Build Coastguard Worker        "SPDX-license-identifier-Apache-2.0",
28*a494ed5dSAndroid Build Coastguard Worker    ],
29*a494ed5dSAndroid Build Coastguard Worker    license_text: [
30*a494ed5dSAndroid Build Coastguard Worker        "LICENSE",
31*a494ed5dSAndroid Build Coastguard Worker    ],
32*a494ed5dSAndroid Build Coastguard Worker}
33*a494ed5dSAndroid Build Coastguard Worker
34*a494ed5dSAndroid Build Coastguard Workerjava_library {
35*a494ed5dSAndroid Build Coastguard Worker
36*a494ed5dSAndroid Build Coastguard Worker    name: "volley",
37*a494ed5dSAndroid Build Coastguard Worker    sdk_version: "28",
38*a494ed5dSAndroid Build Coastguard Worker    min_sdk_version: "8",
39*a494ed5dSAndroid Build Coastguard Worker    srcs: ["core/src/main/java/**/*.java"],
40*a494ed5dSAndroid Build Coastguard Worker
41*a494ed5dSAndroid Build Coastguard Worker    // Exclude Cronet support for now. Can be enabled later if/when Cronet is made available as a
42*a494ed5dSAndroid Build Coastguard Worker    // compilation dependency for Volley clients.
43*a494ed5dSAndroid Build Coastguard Worker
44*a494ed5dSAndroid Build Coastguard Worker    libs: [
45*a494ed5dSAndroid Build Coastguard Worker        // Only needed at compile-time.
46*a494ed5dSAndroid Build Coastguard Worker        "androidx.annotation_annotation",
47*a494ed5dSAndroid Build Coastguard Worker
48*a494ed5dSAndroid Build Coastguard Worker        "sdk_public_28_org.apache.http.legacy",
49*a494ed5dSAndroid Build Coastguard Worker    ],
50*a494ed5dSAndroid Build Coastguard Worker    optional_uses_libs: [
51*a494ed5dSAndroid Build Coastguard Worker        "org.apache.http.legacy",
52*a494ed5dSAndroid Build Coastguard Worker    ],
53*a494ed5dSAndroid Build Coastguard Worker}
54