xref: /aosp_15_r20/external/grpc-grpc-java/okhttp/Android.bp (revision e07d83d3ffcef9ecfc9f7f475418ec639ff0e5fe)
1// Copyright (C) 2018 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
16package {
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "external_grpc-grpc-java_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-Apache-2.0
22    default_applicable_licenses: ["external_grpc-grpc-java_license"],
23}
24
25java_library {
26    name: "grpc-java-okhttp",
27    host_supported: true,
28    srcs: [
29        "third_party/okhttp/main/java/**/*.java",
30        "src/main/java/**/*.java",
31    ],
32    java_resource_dirs: [
33        "src/main/resources",
34    ],
35    libs: [
36        "error_prone_annotations",
37        "grpc-java-annotation-stubs",
38        "grpc-java-api",
39        "grpc-java-core",
40        "grpc-java-core-internal",
41        "grpc-java-core-util",
42        "jsr305",
43        "guava",
44    ],
45    static_libs: [
46        "okhttp-norepackage",
47        "perfmark",
48    ],
49    sdk_version: "current",
50    min_sdk_version: "30",
51    apex_available: [
52        "//apex_available:platform",
53        "com.android.adservices",
54        "com.android.devicelock",
55        "com.android.extservices",
56        "com.android.virt",
57    ],
58    // b/267831518: Pin tradefed and dependencies to Java 11.
59    java_version: "11",
60}
61