summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-23 02:30:00 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-23 02:30:00 +0000
commitad5034a2b9faf853815472bcf89b8534b14b8de1 (patch)
tree3c1badb7488f3ce3c9d358a7b9173f9756850092
parent068ada767c295d9b040641db0d8ff8cf5c9c5a6e (diff)
parent04e935211a41e94ee35fe62e131d30ab034fe03e (diff)
downloadapache-xml-android12-mainline-neuralnetworks-release.tar.gz
Change-Id: Ib70f85aee3341d2b01a3ec5d3ce4717b031ea20f
-rw-r--r--Android.bp50
-rw-r--r--METADATA3
2 files changed, 34 insertions, 19 deletions
diff --git a/Android.bp b/Android.bp
index e909fd2..5f8f505 100644
--- a/Android.bp
+++ b/Android.bp
@@ -16,6 +16,33 @@
package {
default_visibility: ["//visibility:private"],
+ default_applicable_licenses: ["external_apache-xml_license"],
+}
+
+// Added automatically by a large-scale-change that took the approach of
+// 'apply every license found to every target'. While this makes sure we respect
+// every license restriction, it may not be entirely correct.
+//
+// e.g. GPL in an MIT project might only apply to the contrib/ directory.
+//
+// Please consider splitting the single license below into multiple licenses,
+// taking care not to lose any license_kind information, and overriding the
+// default license using the 'licenses: [...]' property on targets as needed.
+//
+// For unused files, consider creating a 'fileGroup' with "//visibility:private"
+// to attach the license to, and including a comment whether the files may be
+// used in the current project.
+// See: http://go/android-license-faq
+license {
+ name: "external_apache-xml_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ "SPDX-license-identifier-W3C",
+ ],
+ license_text: [
+ "NOTICE",
+ ],
}
// The set of files that contribute to APIs.
@@ -31,10 +58,12 @@ java_library {
name: "apache-xml",
visibility: [
"//art/build/apex",
+ "//art/build/sdk",
"//libcore",
+ "//packages/modules/ArtPrebuilt",
],
apex_available: [
- "com.android.art.release",
+ "com.android.art",
"com.android.art.debug",
],
srcs: ["src/main/java/**/*.java"],
@@ -48,22 +77,5 @@ java_library {
sdk_version: "none",
system_modules: "core-all-system-modules",
-}
-
-// A guaranteed unstripped version of apache-xml for use on device.
-// The build system may or may not strip the apache-xml jar, but this one will
-// not be stripped. See b/24535627.
-java_library {
- name: "apache-xml-testdex",
- visibility: [
- "//art:__subpackages__",
- ],
- static_libs: ["apache-xml"],
-
- installable: true,
- dex_preopt: {
- enabled: false,
- },
-
- sdk_version: "core_platform",
+ min_sdk_version: "31",
}
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..d97975c
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,3 @@
+third_party {
+ license_type: NOTICE
+}