diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-07-14 00:45:16 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-07-14 00:45:16 +0000 |
commit | 21819800608898fca7885f2fdda8ccc53346ebfa (patch) | |
tree | c8d8b8f0fe9e29739c1befe0762e4a90dbb618a8 | |
parent | b6ff1cf192bff3a87bb01fff00cd42ecf5c1814d (diff) | |
parent | 3dcb38d6ce18598b5b4329623d617ab762214a47 (diff) | |
download | opencensus-java-android-mainline-12.0.0_r79.tar.gz |
Snap for 7547121 from 3dcb38d6ce18598b5b4329623d617ab762214a47 to mainline-permission-releaseandroid-mainline-12.0.0_r93android-mainline-12.0.0_r79android-mainline-12.0.0_r64android-mainline-12.0.0_r51android-mainline-12.0.0_r34android-mainline-12.0.0_r15android-mainline-12.0.0_r123android-mainline-12.0.0_r107android12-mainline-permission-release
Change-Id: I06c2b41f88e36a688e24eb768191a097d685b796
-rw-r--r-- | Android.bp | 31 | ||||
-rw-r--r-- | api/Android.bp | 17 | ||||
-rw-r--r-- | contrib/grpc_metrics/Android.bp | 13 |
3 files changed, 57 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 00000000..cc59bbaa --- /dev/null +++ b/Android.bp @@ -0,0 +1,31 @@ +// +// Copyright (C) 2021 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. + +package { + default_applicable_licenses: ["external_opencensus-java_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "external_opencensus-java_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "LICENSE", + ], +} diff --git a/api/Android.bp b/api/Android.bp index 003a4dee..537d9696 100644 --- a/api/Android.bp +++ b/api/Android.bp @@ -14,18 +14,29 @@ // // -java_library_host { +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "external_opencensus-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_opencensus-java_license"], +} + +java_library { name: "opencensus-java-api", + host_supported: true, srcs: [ "src/main/java/**/*.java", ], plugins: [ - "dagger2-auto-value", + "auto_value_plugin", ], libs: [ "error_prone_annotations", - "dagger2-auto-value", + "auto_value_annotations", "grpc-java-context", "jsr305", ], + sdk_version: "current", } diff --git a/contrib/grpc_metrics/Android.bp b/contrib/grpc_metrics/Android.bp index 9d045184..8770bd62 100644 --- a/contrib/grpc_metrics/Android.bp +++ b/contrib/grpc_metrics/Android.bp @@ -14,8 +14,18 @@ // // -java_library_host { +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "external_opencensus-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_opencensus-java_license"], +} + +java_library { name: "opencensus-java-contrib-grpc-metrics", + host_supported: true, srcs: [ "src/main/java/**/*.java", ], @@ -23,4 +33,5 @@ java_library_host { "opencensus-java-api", "guava", ], + sdk_version: "current", } |