From 4a1b927d577bb002c230e55154c587c1d09c0232 Mon Sep 17 00:00:00 2001 From: Ted Xie Date: Fri, 22 Mar 2024 13:30:17 -0700 Subject: [PATCH] Set public visibility for R8 desugar binary We are migrating Android functionality out of Bazel into rules_android. Currently rules_android depends on @bazel_tools//tools/android:desugar_java8 for a sh_binary that calls the R8 desugar binary. Going forward, we'll maintain the sh_binary directly in rules_android, and therefore will require public visibility on [...]/r8:desugar. Eventually the source code for the Bazel R8 desugar wrapper will also move into rules_android. Part of https://github.com/bazelbuild/rules_android/issues/122. Closes #21775. PiperOrigin-RevId: 618272641 Change-Id: I09d9ca19b742049c2d29a75336d1b0680b0005b1 --- .../java/com/google/devtools/build/android/r8/BUILD.tools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/android/java/com/google/devtools/build/android/r8/BUILD.tools b/src/tools/android/java/com/google/devtools/build/android/r8/BUILD.tools index ac75c82a25d6c1..643a8d4c7951d1 100644 --- a/src/tools/android/java/com/google/devtools/build/android/r8/BUILD.tools +++ b/src/tools/android/java/com/google/devtools/build/android/r8/BUILD.tools @@ -46,7 +46,7 @@ java_binary( "-Dcom.android.tools.r8.createSingletonsForStatelessLambdas", ], main_class = "com.google.devtools.build.android.r8.Desugar", - visibility = ["//tools/android:__subpackages__"], + visibility = ["//visibility:public"], runtime_deps = [ ":r8", ],