summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2019-06-03 15:18:32 +0100
committerPaul Duffin <paulduffin@google.com>2019-06-28 10:27:40 +0100
commit9a3df700941f36f68d829927fd1d66ea03130cdf (patch)
tree2e26f5adefd20419f6f1bdd5a98a31b241fa783d
parent6c3596d66b7aeefc12fd1fd8fd05c3d41b3931b3 (diff)
downloadapache-xml-9a3df700941f36f68d829927fd1d66ea03130cdf.tar.gz
Set default visibility to private
Added visibility to apache-xml-testdex even though it is only used in .mk files to record the dependency as the name is constructed dynamically by adding "-testdex" suffix to a list of other dependencies and so cannot be found by searching. Bug: 134379140 Test: m droid Change-Id: I64d4cdb2fbed80a0d39f06ae2656367ce8c69fbc
-rw-r--r--Android.bp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 84a8f14..80c7ec7 100644
--- a/Android.bp
+++ b/Android.bp
@@ -14,11 +14,16 @@
// limitations under the License.
//
+package {
+ default_visibility: ["//visibility:private"],
+}
+
// The set of files that contribute to APIs.
// Generally, apache-xml source files are not marked with @hide so we add them
// one-by-one after having done so.
filegroup {
name: "apache-xml_api_files",
+ visibility: ["//libcore"],
srcs: [],
}
@@ -47,6 +52,9 @@ java_library {
// not be stripped. See b/24535627.
java_library {
name: "apache-xml-testdex",
+ visibility: [
+ "//art:__subpackages__",
+ ],
static_libs: ["apache-xml"],
installable: true,