Skip to content

Commit 3d15d99

Browse files
committed
Update rules_android to 0.5.1
1 parent 9cfccc3 commit 3d15d99

File tree

13 files changed

+27
-24
lines changed

13 files changed

+27
-24
lines changed

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
common --enable_bzlmod=true
2+
common --experimental_google_legacy_api
23

34
common:rbe --java_runtime_version=11
45
common:rbe --tool_java_runtime_version=11

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ bazel_dep(name = "bazel_skylib", version = "1.7.1")
1010
bazel_dep(name = "rules_java", version = "7.2.0")
1111
bazel_dep(name = "rules_python", version = "0.23.1")
1212
bazel_dep(name = "rules_cc", version = "0.0.8")
13-
bazel_dep(name = "rules_android", version = "0.1.1")
13+
bazel_dep(name = "rules_android", version = "0.5.1")
1414

1515
rules_kotlin_extensions = use_extension("//src/main/starlark/core/repositories:bzlmod_setup.bzl", "rules_kotlin_extensions")
1616
use_repo(

MODULE.release.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ bazel_dep(name = "bazel_skylib", version = "1.7.1")
1010
bazel_dep(name = "rules_java", version = "7.2.0")
1111
bazel_dep(name = "rules_python", version = "0.23.1")
1212
bazel_dep(name = "rules_cc", version = "0.0.8")
13-
bazel_dep(name = "rules_android", version = "0.1.1")
13+
bazel_dep(name = "rules_android", version = "0.5.1")
1414

1515
rules_kotlin_extensions = use_extension(
1616
"//src/main/starlark/core/repositories:bzlmod_setup.bzl",

examples/android/MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module(name = "android-example")
33
remote_android_extensions = use_extension("@bazel_tools//tools/android:android_extensions.bzl", "remote_android_tools_extensions")
44
use_repo(remote_android_extensions, "android_gmaven_r8", "android_tools")
55

6-
bazel_dep(name = "rules_android", version = "0.1.1")
6+
bazel_dep(name = "rules_android", version = "0.5.1")
77
bazel_dep(name = "bazel_skylib", version = "1.2.1")
88
bazel_dep(name = "rules_robolectric", version = "4.10.3", repo_name = "robolectric")
99
bazel_dep(name = "rules_java", version = "6.4.0")

examples/android/WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ maven_install(
6666

6767
http_archive(
6868
name = "rules_android",
69-
sha256 = versions.ANDROID.SHA,
69+
sha256 = versions.ANDROID.sha256,
7070
strip_prefix = "rules_android-%s" % versions.ANDROID.VERSION,
71-
urls = ["https://github.com/bazelbuild/rules_android/archive/v%s.zip" % versions.ANDROID.VERSION],
71+
urls = [url.format(version = versions.ANDROIDANDROID.version) for url in versions.ANDROID.url_templates],
7272
)
7373

7474
load(

examples/anvil/WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1919

2020
http_archive(
2121
name = "rules_android",
22-
sha256 = versions.ANDROID.SHA,
22+
sha256 = versions.ANDROID.sha256,
2323
strip_prefix = "rules_android-%s" % versions.ANDROID.VERSION,
24-
urls = ["https://github.com/bazelbuild/rules_android/archive/v%s.zip" % versions.ANDROID.VERSION],
24+
urls = [url.format(version = versions.ANDROIDANDROID.version) for url in versions.ANDROID.url_templates],
2525
)
2626

2727
load("@rules_android//android:rules.bzl", "android_sdk_repository")

examples/associates/WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2121

2222
http_archive(
2323
name = "rules_android",
24-
sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806",
25-
strip_prefix = "rules_android-0.1.1",
26-
urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"],
24+
sha256 = versions.ANDROID.sha256,
25+
strip_prefix = "rules_android-%s" % versions.ANDROID.VERSION,
26+
urls = [url.format(version = versions.ANDROIDANDROID.version) for url in versions.ANDROID.url_templates],
2727
)
2828

2929
http_archive(

examples/deps/WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ maven_install(
6161

6262
http_archive(
6363
name = "rules_android",
64-
sha256 = versions.ANDROID.SHA,
64+
sha256 = versions.ANDROID.sha256,
6565
strip_prefix = "rules_android-%s" % versions.ANDROID.VERSION,
66-
urls = ["https://github.com/bazelbuild/rules_android/archive/v%s.zip" % versions.ANDROID.VERSION],
66+
urls = [url.format(version = versions.ANDROIDANDROID.version) for url in versions.ANDROID.url_templates],
6767
)
6868

6969
load(

examples/jetpack_compose/WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ http_archive(
7777

7878
http_archive(
7979
name = "rules_android",
80-
sha256 = versions.ANDROID.SHA,
80+
sha256 = versions.ANDROID.sha256,
8181
strip_prefix = "rules_android-%s" % versions.ANDROID.VERSION,
82-
urls = ["https://github.com/bazelbuild/rules_android/archive/v%s.zip" % versions.ANDROID.VERSION],
82+
urls = [url.format(version = versions.ANDROIDANDROID.version) for url in versions.ANDROID.url_templates],
8383
)
8484

8585
load("@rules_android//android:rules.bzl", "android_sdk_repository")

kotlin/internal/jvm/android.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ load(
2121
_kt_jvm_library = "kt_jvm_library",
2222
)
2323

24-
_ANDROID_SDK_JAR = "%s" % Label("//third_party:android_sdk")
24+
_ANDROID_SDK_JAR = "%s" % Label("@rules_android//third_party:android_sdk")
2525

2626
def _kt_android_artifact(
2727
name,

0 commit comments

Comments
 (0)