Add android_sdk_repository_extension and define @androidsdk MODULE.bazel Child project will not use android_sdk_repository_extension before //external* are removed from @bazel_tools. PiperOrigin-RevId: 613783798 Change-Id: I0ca2f4f0ad2696fd49905b6ec33f8e99871424e6
diff --git a/BUILD b/BUILD index c0770f0..9c93e71 100644 --- a/BUILD +++ b/BUILD
@@ -53,3 +53,31 @@ "@platforms//os:android", ], ) + +# TODO: remove these alias when we no longer needs bind in WORKSPACE.bzlmod +# Because @androidsdk is not defined in WORKSPACE.bzlmod, where the only valid place +# we can call native function bind. Using these alias to forward the binding. +alias( + name = "androidsdk_sdk", + actual = "@androidsdk//:sdk", +) + +alias( + name = "androidsdk_d8_jar_import", + actual = "@androidsdk//:d8_jar_import", +) + +alias( + name = "androidsdk_dx_jar_import", + actual = "@androidsdk//:dx_jar_import", +) + +alias( + name = "androidsdk_files", + actual = "@androidsdk//:files", +) + +alias( + name = "androidsdk_has_android_sdk", + actual = "@androidsdk//:has_android_sdk", +)