Wrap Android repositories with maybe().
This is so that they can be overridden from the main WORKSPACE file e.g. when one wants to vendor them.
RELNOTES: None.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_jar")
+load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
# This must be kept in sync with the top-level WORKSPACE file.
-http_archive(
+maybe(
+ http_archive,
name = "android_tools",
sha256 = "5aba10f2381bd4699313879336e038f9fa09e8180cd5a98d3c0ae40a13082549",
url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.24.0.tar.gz",
)
# This must be kept in sync with the top-level WORKSPACE file.
-http_jar(
+maybe(
+ http_jar,
name = "android_gmaven_r8",
sha256 = "8626ca32fb47aba7fddd2c897615e2e8ffcdb4d4b213572a2aefb3f838f01972",
url = "https://maven.google.com/com/android/tools/r8/3.3.28/r8-3.3.28.jar",
