|
| 1 | +# Copyright 2022 The Bazel Authors. All rights reserved. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +"""Module extension to declare Android runtime dependencies for Bazel.""" |
| 16 | + |
| 17 | +load("//tools/build_defs/repo:http.bzl", "http_archive", "http_jar") |
| 18 | + |
| 19 | +def _remote_android_tools_extensions_impl(_ctx): |
| 20 | + http_archive( |
| 21 | + name = "android_tools", |
| 22 | + sha256 = "1afa4b7e13c82523c8b69e87f8d598c891ec7e2baa41d9e24e08becd723edb4d", # do_not_remove_this_android_tools_update_marker |
| 23 | + url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.27.0.tar.gz", |
| 24 | + ) |
| 25 | + http_jar( |
| 26 | + name = "android_gmaven_r8", |
| 27 | + sha256 = "8626ca32fb47aba7fddd2c897615e2e8ffcdb4d4b213572a2aefb3f838f01972", |
| 28 | + url = "https://maven.google.com/com/android/tools/r8/3.3.28/r8-3.3.28.jar", |
| 29 | + ) |
| 30 | + |
| 31 | +remote_android_tools_extensions = module_extension( |
| 32 | + implementation = _remote_android_tools_extensions_impl, |
| 33 | +) |
0 commit comments