aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadrien Zalek <hzalek@google.com>2020-07-22 16:05:48 -0700
committerHadrien Zalek <hzalek@google.com>2020-07-24 14:04:24 -0700
commit4cff808a49a8db2e111745888e5b505c416719c7 (patch)
treec0dd1e40aca87c964e67a477418a95d1a54bbf32
parent332041b0592239d4bfe59bfd316f28c02f523570 (diff)
downloadgrpc-grpc-java-4cff808a49a8db2e111745888e5b505c416719c7.tar.gz
Add a build module for the Netty Shaded library
The gRPC documentation recommends that most users use the Netty Shaded library for Transport Layer Security (TLS) on non-Android platforms. The library prepackages netty-tcnative on BoringSSL which makes it easier to use. Note that this change essentially restores the module which was deleted in a previous commit. This new binary is imported for the same version that the source is currently at and does not cause any runtime issues. Test: m grpc-java-netty-shaded Bug: 148404241 Change-Id: I7ae611add53627d2c00beeeac829fa31069d5594
-rw-r--r--netty/shaded/Android.bp27
1 files changed, 27 insertions, 0 deletions
diff --git a/netty/shaded/Android.bp b/netty/shaded/Android.bp
new file mode 100644
index 000000000..5aecf42ba
--- /dev/null
+++ b/netty/shaded/Android.bp
@@ -0,0 +1,27 @@
+//
+// Copyright (C) 2020 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// The below module imports the Netty shaded binary from the Maven repository
+// since it's not trivial to build from source due to the large number of
+// external dependencies and missing build-system support.
+//
+// WARNING: The artifact version must match the source to avoid runtime issues.
+java_library_host {
+ name: "grpc-java-netty-shaded",
+ static_libs: [
+ "grpc-netty-shaded-1.16.1-jar",
+ ],
+}