diff --git a/modules/rules_robolectric/4.14/MODULE.bazel b/modules/rules_robolectric/4.14/MODULE.bazel new file mode 100644 index 00000000000..e726f33f6f2 --- /dev/null +++ b/modules/rules_robolectric/4.14/MODULE.bazel @@ -0,0 +1,34 @@ +"Bazel dependencies" + +module( + name = "rules_robolectric", + # Note: the publish-to-BCR app will patch this line to stamp the version being published. + version = "4.14", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, +) + +robolectric_repository_extensions = use_extension("//bazel:extensions.bzl", "robolectric_repository_extensions") +use_repo( + robolectric_repository_extensions, + "org_robolectric_android_all_instrumented_10_robolectric_5803371_i7", + "org_robolectric_android_all_instrumented_11_robolectric_6757853_i7", + "org_robolectric_android_all_instrumented_12_1_robolectric_8229987_i7", + "org_robolectric_android_all_instrumented_12_robolectric_7732740_i7", + "org_robolectric_android_all_instrumented_13_robolectric_9030017_i7", + "org_robolectric_android_all_instrumented_14_robolectric_10818077_i7", + "org_robolectric_android_all_instrumented_15_robolectric_12650502_i7", + "org_robolectric_android_all_instrumented_5_0_2_r3_robolectric_r0_i7", + "org_robolectric_android_all_instrumented_5_1_1_r9_robolectric_r2_i7", + "org_robolectric_android_all_instrumented_6_0_1_r3_robolectric_r1_i7", + "org_robolectric_android_all_instrumented_7_0_0_r1_robolectric_r1_i7", + "org_robolectric_android_all_instrumented_7_1_0_r7_robolectric_r1_i7", + "org_robolectric_android_all_instrumented_8_0_0_r4_robolectric_r1_i7", + "org_robolectric_android_all_instrumented_8_1_0_robolectric_4611349_i7", + "org_robolectric_android_all_instrumented_9_robolectric_4913185_2_i7", +) + +bazel_dep(name = "rules_java", version = "7.0.6") +bazel_dep(name = "bazel_skylib", version = "1.6.1") + +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True) diff --git a/modules/rules_robolectric/4.14/patches/module_dot_bazel_version.patch b/modules/rules_robolectric/4.14/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..5627246cf28 --- /dev/null +++ b/modules/rules_robolectric/4.14/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -2,9 +2,9 @@ + + module( + name = "rules_robolectric", + # Note: the publish-to-BCR app will patch this line to stamp the version being published. +- version = "0.0.0", ++ version = "4.14", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + ) + diff --git a/modules/rules_robolectric/4.14/presubmit.yml b/modules/rules_robolectric/4.14/presubmit.yml new file mode 100644 index 00000000000..28e80311112 --- /dev/null +++ b/modules/rules_robolectric/4.14/presubmit.yml @@ -0,0 +1,11 @@ +matrix: + platform: ["macos", "ubuntu2004"] + bazel: ["6.x", "7.x"] + +tasks: + verify_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_robolectric//bazel:android-all" diff --git a/modules/rules_robolectric/4.14/source.json b/modules/rules_robolectric/4.14/source.json new file mode 100644 index 00000000000..3cdfe03a810 --- /dev/null +++ b/modules/rules_robolectric/4.14/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-o8djK5bWUd0HO6B5TaYtx6RQlxDMXe40GPzq25MHwjU=", + "strip_prefix": "robolectric-bazel-4.14", + "url": "https://github.com/robolectric/robolectric-bazel/releases/download/4.14/robolectric-bazel-4.14.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-mlaWjf43cCuNt1qQsoi+xJQvt6SNYuWY3TLsyV+k2lg=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_robolectric/metadata.json b/modules/rules_robolectric/metadata.json index bf8120f8de4..1540592b856 100644 --- a/modules/rules_robolectric/metadata.json +++ b/modules/rules_robolectric/metadata.json @@ -20,7 +20,8 @@ "4.12", "4.12.1", "4.12.2", - "4.13" + "4.13", + "4.14" ], "yanked_versions": {} }