summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-02-17 15:31:55 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-02-17 15:31:55 +0000
commit8aa13b8c1ba1023c45d068500a1f63aaf20603f2 (patch)
tree9f99e17811085cda21c49bd5ff4ee1dfb061940e
parentdfada88c05248db6e2c83f8974c29a608cc3bd58 (diff)
parent664a9e857a40eac782ce19eeeb19f57acf87b4c4 (diff)
downloadobjenesis-8aa13b8c1ba1023c45d068500a1f63aaf20603f2.tar.gz
Merge "[LSC] Add LOCAL_LICENSE_KINDS to external/objenesis"android-s-preview-1
-rw-r--r--Android.bp23
-rw-r--r--tck-android/Android.bp9
2 files changed, 32 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index b00600f..9c1cc83 100644
--- a/Android.bp
+++ b/Android.bp
@@ -14,6 +14,29 @@
//
//
+package {
+ default_applicable_licenses: ["external_objenesis_license"],
+}
+
+// Added automatically by a large-scale-change
+//
+// large-scale-change included anything that looked like it might be a license
+// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
+//
+// Please consider removing redundant or irrelevant files from 'license_text:'.
+// See: http://go/android-license-faq
+license {
+ name: "external_objenesis_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ ],
+ license_text: [
+ "LICENSE.txt",
+ "NOTICE",
+ ],
+}
+
java_library_static {
name: "objenesis",
host_supported: true,
diff --git a/tck-android/Android.bp b/tck-android/Android.bp
index 7de3742..5450758 100644
--- a/tck-android/Android.bp
+++ b/tck-android/Android.bp
@@ -21,6 +21,15 @@
// adb install -r ${ANDROID_PRODUCT_OUT}/data/app/ObjenesisTck/ObjenesisTck.apk
// adb shell am instrument -w org.objenesis.tck.android/.TckInstrumentation
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "external_objenesis_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ default_applicable_licenses: ["external_objenesis_license"],
+}
+
android_test {
name: "ObjenesisTck",
sdk_version: "current",