aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadrien Zalek <hzalek@google.com>2020-05-28 23:35:58 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-05-28 23:35:58 +0000
commit32c8db9f77f78858c0298de1eb4cfba1b614a0f5 (patch)
tree7edc7e823c381782540373dff6d3e85b60a4d82a
parent284017ea8c0cabfc2a63b30260dfdff786f4e944 (diff)
parent1b51202d675c8e50efa12493e827bc47b686b273 (diff)
downloadopencensus-java-32c8db9f77f78858c0298de1eb4cfba1b614a0f5.tar.gz
Add OpenCensus build modules required for gRPC am: 9bc011a365 am: 1b51202d67
Change-Id: Ia660e269a9dfa8bf4643c0e2368794661d779a5a
-rw-r--r--api/Android.bp31
-rw-r--r--contrib/grpc_metrics/Android.bp26
2 files changed, 57 insertions, 0 deletions
diff --git a/api/Android.bp b/api/Android.bp
new file mode 100644
index 00000000..003a4dee
--- /dev/null
+++ b/api/Android.bp
@@ -0,0 +1,31 @@
+// 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: "opencensus-java-api",
+ srcs: [
+ "src/main/java/**/*.java",
+ ],
+ plugins: [
+ "dagger2-auto-value",
+ ],
+ libs: [
+ "error_prone_annotations",
+ "dagger2-auto-value",
+ "grpc-java-context",
+ "jsr305",
+ ],
+}
diff --git a/contrib/grpc_metrics/Android.bp b/contrib/grpc_metrics/Android.bp
new file mode 100644
index 00000000..9d045184
--- /dev/null
+++ b/contrib/grpc_metrics/Android.bp
@@ -0,0 +1,26 @@
+// 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: "opencensus-java-contrib-grpc-metrics",
+ srcs: [
+ "src/main/java/**/*.java",
+ ],
+ libs: [
+ "opencensus-java-api",
+ "guava",
+ ],
+}