aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadrien Zalek <hzalek@google.com>2020-06-19 17:00:51 -0700
committerHadrien Zalek <hzalek@google.com>2020-06-29 20:24:50 -0700
commit2bf353cc2616f27364a158b2683f8d0d20c77b70 (patch)
treea5fdab1fb4756850c10827595f13258d62768d5a
parent58f48cc424a4db0eb99fd891986573023ae23d9f (diff)
downloadgrpc-grpc-java-2bf353cc2616f27364a158b2683f8d0d20c77b70.tar.gz
Build the gRPC Java Authentication library
Add a Soong module to build the gRPC authentication library from source. Test: m grpc-java-auth grpc-java Bug: 148404241 Change-Id: I8afdf8c14773de4c13889016b0bfd8b6da132548
-rw-r--r--Android.bp1
-rw-r--r--auth/Android.bp27
2 files changed, 28 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index f7835ef33..37c6c8f2e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -17,6 +17,7 @@
java_library_host {
name: "grpc-java",
static_libs: [
+ "grpc-java-auth",
"grpc-java-context",
"grpc-java-core",
"grpc-java-core-inprocess",
diff --git a/auth/Android.bp b/auth/Android.bp
new file mode 100644
index 000000000..68d08f430
--- /dev/null
+++ b/auth/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.
+//
+
+java_library_host {
+ name: "grpc-java-auth",
+ srcs: [
+ "src/main/java/io/grpc/auth/*.java",
+ ],
+ libs: [
+ "grpc-java-core",
+ "google-auth-library-credentials-0.13.0",
+ "guava",
+ "jsr305",
+ ],
+}