[LSC] Add LOCAL_LICENSE_KINDS to external/icing
Added SPDX-license-identifier-Apache-2.0 to:
Android.bp
java/Android.bp
java/tests/instrumentation/Android.bp
proto/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I38c56024f1fabc5ea1cc471e8ba9328971051eee
diff --git a/Android.bp b/Android.bp
index fb14778..87ed49e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,6 +12,23 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+package {
+ default_applicable_licenses: ["external_icing_license"],
+}
+
+// Added automatically by a large-scale-change
+// See: http://go/android-license-faq
+license {
+ name: "external_icing_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ ],
+ license_text: [
+ "LICENSE",
+ ],
+}
+
cc_defaults {
name: "libicing_defaults",
diff --git a/java/Android.bp b/java/Android.bp
index fb61c75..7daeb0a 100644
--- a/java/Android.bp
+++ b/java/Android.bp
@@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "external_icing_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ default_applicable_licenses: ["external_icing_license"],
+}
+
java_library {
name: "libicing-java",
srcs: ["src/**/*.java"],
diff --git a/java/tests/instrumentation/Android.bp b/java/tests/instrumentation/Android.bp
index 8960354..2b680f0 100644
--- a/java/tests/instrumentation/Android.bp
+++ b/java/tests/instrumentation/Android.bp
@@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "external_icing_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ default_applicable_licenses: ["external_icing_license"],
+}
+
android_test {
name: "IcingSearchEngineTest",
srcs: [
diff --git a/proto/Android.bp b/proto/Android.bp
index 7bc1859..4fb0c18 100644
--- a/proto/Android.bp
+++ b/proto/Android.bp
@@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "external_icing_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ default_applicable_licenses: ["external_icing_license"],
+}
+
java_library {
name: "icing-java-proto-lite",
proto: {