1*e07d83d3SAndroid Build Coastguard Worker// 2*e07d83d3SAndroid Build Coastguard Worker// Copyright (C) 2020 The Android Open Source Project 3*e07d83d3SAndroid Build Coastguard Worker// 4*e07d83d3SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 5*e07d83d3SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 6*e07d83d3SAndroid Build Coastguard Worker// You may obtain a copy of the License at 7*e07d83d3SAndroid Build Coastguard Worker// 8*e07d83d3SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 9*e07d83d3SAndroid Build Coastguard Worker// 10*e07d83d3SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 11*e07d83d3SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 12*e07d83d3SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*e07d83d3SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 14*e07d83d3SAndroid Build Coastguard Worker// limitations under the License. 15*e07d83d3SAndroid Build Coastguard Worker// 16*e07d83d3SAndroid Build Coastguard Worker 17*e07d83d3SAndroid Build Coastguard Worker// The below module imports the Netty shaded binary from the Maven repository 18*e07d83d3SAndroid Build Coastguard Worker// since it's not trivial to build from source due to the large number of 19*e07d83d3SAndroid Build Coastguard Worker// external dependencies and missing build-system support. 20*e07d83d3SAndroid Build Coastguard Worker// 21*e07d83d3SAndroid Build Coastguard Worker// WARNING: The artifact version must match the source to avoid runtime issues. 22*e07d83d3SAndroid Build Coastguard Workerpackage { 23*e07d83d3SAndroid Build Coastguard Worker // See: http://go/android-license-faq 24*e07d83d3SAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 25*e07d83d3SAndroid Build Coastguard Worker // all of the 'license_kinds' from "external_grpc-grpc-java_license" 26*e07d83d3SAndroid Build Coastguard Worker // to get the below license kinds: 27*e07d83d3SAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 28*e07d83d3SAndroid Build Coastguard Worker default_applicable_licenses: ["external_grpc-grpc-java_license"], 29*e07d83d3SAndroid Build Coastguard Worker} 30*e07d83d3SAndroid Build Coastguard Worker 31*e07d83d3SAndroid Build Coastguard Workerjava_library_host { 32*e07d83d3SAndroid Build Coastguard Worker name: "grpc-java-netty-shaded", 33*e07d83d3SAndroid Build Coastguard Worker // Dependencies below match Maven runtime dependencies of 34*e07d83d3SAndroid Build Coastguard Worker // the prebuilt "grpc-netty-shaded-1.56.0-jar" library. 35*e07d83d3SAndroid Build Coastguard Worker static_libs: [ 36*e07d83d3SAndroid Build Coastguard Worker "error_prone_annotations", 37*e07d83d3SAndroid Build Coastguard Worker "grpc-netty-shaded-1.56.0-jar", 38*e07d83d3SAndroid Build Coastguard Worker "guava", 39*e07d83d3SAndroid Build Coastguard Worker "perfmark-api-lib", 40*e07d83d3SAndroid Build Coastguard Worker ], 41*e07d83d3SAndroid Build Coastguard Worker target: { 42*e07d83d3SAndroid Build Coastguard Worker windows: { 43*e07d83d3SAndroid Build Coastguard Worker enabled: true, 44*e07d83d3SAndroid Build Coastguard Worker }, 45*e07d83d3SAndroid Build Coastguard Worker }, 46*e07d83d3SAndroid Build Coastguard Worker} 47*e07d83d3SAndroid Build Coastguard Worker 48*e07d83d3SAndroid Build Coastguard Workerjava_library { 49*e07d83d3SAndroid Build Coastguard Worker name: "grpc-java-netty-shaded-test", 50*e07d83d3SAndroid Build Coastguard Worker // Dependencies below match Maven runtime dependencies of 51*e07d83d3SAndroid Build Coastguard Worker // the prebuilt "grpc-netty-shaded-1.56.0-jar" library. 52*e07d83d3SAndroid Build Coastguard Worker static_libs: [ 53*e07d83d3SAndroid Build Coastguard Worker "error_prone_annotations", 54*e07d83d3SAndroid Build Coastguard Worker "grpc-netty-shaded-1.56.0-jar", 55*e07d83d3SAndroid Build Coastguard Worker "guava", 56*e07d83d3SAndroid Build Coastguard Worker "perfmark-api-lib", 57*e07d83d3SAndroid Build Coastguard Worker ], 58*e07d83d3SAndroid Build Coastguard Worker visibility: ["//packages/modules/Bluetooth/android/pandora/server"], 59*e07d83d3SAndroid Build Coastguard Worker} 60