summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-08 16:00:11 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-08 16:00:11 +0000
commit424a39f4cfebc89f4f3ba91760a4665a957661f5 (patch)
tree80dacaffc5bbebf8d5bf117e08e2dd49aa02042b
parentc69452a937831020ef987691b5ac93be2e9afa93 (diff)
parent068ada767c295d9b040641db0d8ff8cf5c9c5a6e (diff)
downloadapache-xml-424a39f4cfebc89f4f3ba91760a4665a957661f5.tar.gz
Change-Id: I9c17419c131834a298ea64b0e83c0dde8175ef17
-rw-r--r--Android.bp50
-rw-r--r--METADATA3
2 files changed, 19 insertions, 34 deletions
diff --git a/Android.bp b/Android.bp
index 5f8f505..e909fd2 100644
--- a/Android.bp
+++ b/Android.bp
@@ -16,33 +16,6 @@
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.
@@ -58,12 +31,10 @@ java_library {
name: "apache-xml",
visibility: [
"//art/build/apex",
- "//art/build/sdk",
"//libcore",
- "//packages/modules/ArtPrebuilt",
],
apex_available: [
- "com.android.art",
+ "com.android.art.release",
"com.android.art.debug",
],
srcs: ["src/main/java/**/*.java"],
@@ -77,5 +48,22 @@ java_library {
sdk_version: "none",
system_modules: "core-all-system-modules",
- min_sdk_version: "31",
+}
+
+// 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",
}
diff --git a/METADATA b/METADATA
deleted file mode 100644
index d97975c..0000000
--- a/METADATA
+++ /dev/null
@@ -1,3 +0,0 @@
-third_party {
- license_type: NOTICE
-}