blob: f34c569d25daa39622bd37913ab43ecfd12bf63f [file] [log] [blame]
# Copyright 2022 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Module extension to declare Android runtime dependencies for Bazel."""
load("//tools/build_defs/repo:http.bzl", "http_archive", "http_jar")
def _remote_android_tools_extensions_impl(_ctx):
http_archive(
name = "android_tools",
sha256 = "d7223664ca5b0de490f2a918c31f35cdf4f23a1446fe261d7470b8a22bd7bcf1", # DO_NOT_REMOVE_THIS_ANDROID_TOOLS_UPDATE_MARKER
url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.29.0.tar",
)
http_jar(
name = "android_gmaven_r8",
sha256 = "57a696749695a09381a87bc2f08c3a8ed06a717a5caa3ef878a3077e0d3af19d",
url = "https://maven.google.com/com/android/tools/r8/8.1.56/r8-8.1.56.jar",
)
remote_android_tools_extensions = module_extension(
implementation = _remote_android_tools_extensions_impl,
)