Expand visibility of libcore-platform-compat-config

Bug: 182402754
Test: m droid
Change-Id: Ia306c274242f1c594678ba5103f756ec56717fb9
diff --git a/JavaLibrary.bp b/JavaLibrary.bp
index 599aad9..f58deeb 100644
--- a/JavaLibrary.bp
+++ b/JavaLibrary.bp
@@ -200,6 +200,10 @@
 platform_compat_config {
     name: "libcore-platform-compat-config",
     src: ":core-all",
+    visibility: [
+        "//art/build/apex",
+        "//art/build/sdk",
+    ],
 }
 
 // A system modules definition for use by core library targets only. It only