Skip to content

Commit

Permalink
Update dependencies and README for Robolectric 4.8 (#28)
Browse files Browse the repository at this point in the history
* Update README for 4.8

Signed-off-by: utzcoz <utzcoz@outlook.com>

* Upgrade dependencies to 12.1 and v4

Signed-off-by: utzcoz <utzcoz@outlook.com>
  • Loading branch information
utzcoz authored May 4, 2022
1 parent 297905c commit 3729877
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 63 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Add the `robolectric` and `rules_jvm_external` repositories in your WORKSPACE fi
```python
http_archive(
name = "robolectric",
urls = ["https://github.com/robolectric/robolectric-bazel/archive/4.7.3.tar.gz"],
strip_prefix = "robolectric-bazel-4.7.3",
urls = ["https://github.com/robolectric/robolectric-bazel/archive/4.8.tar.gz"],
strip_prefix = "robolectric-bazel-4.8",
)
load("@robolectric//bazel:robolectric.bzl", "robolectric_repositories")
robolectric_repositories()
Expand All @@ -25,7 +25,7 @@ http_archive(
load("@rules_jvm_external//:defs.bzl", "maven_install")
maven_install(
artifacts = [
"org.robolectric:robolectric:4.7.3",
"org.robolectric:robolectric:4.8",
],
repositories = [
"https://maven.google.com",
Expand Down
31 changes: 16 additions & 15 deletions bazel/BUILD
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
ANDROID_ALL_JARS = [
"@org_robolectric_android_all_instrumented_12_robolectric_7732740_i3//jar",
"@org_robolectric_android_all_instrumented_11_robolectric_6757853_i3//jar",
"@org_robolectric_android_all_instrumented_10_robolectric_5803371_i3//jar",
"@org_robolectric_android_all_instrumented_9_robolectric_4913185_2_i3//jar",
"@org_robolectric_android_all_instrumented_8_1_0_robolectric_4611349_i3//jar",
"@org_robolectric_android_all_instrumented_8_0_0_r4_robolectric_r1_i3//jar",
"@org_robolectric_android_all_instrumented_7_1_0_r7_robolectric_r1_i3//jar",
"@org_robolectric_android_all_instrumented_7_0_0_r1_robolectric_r1_i3//jar",
"@org_robolectric_android_all_instrumented_6_0_1_r3_robolectric_r1_i3//jar",
"@org_robolectric_android_all_instrumented_5_1_1_r9_robolectric_r2_i3//jar",
"@org_robolectric_android_all_instrumented_5_0_2_r3_robolectric_r0_i3//jar",
"@org_robolectric_android_all_instrumented_4_4_r1_robolectric_r2_i3//jar",
"@org_robolectric_android_all_instrumented_4_3_r2_robolectric_r1_i3//jar",
"@org_robolectric_android_all_instrumented_4_2_2_r1_2_robolectric_r1_i3//jar",
"@org_robolectric_android_all_instrumented_4_1_2_r1_robolectric_r1_i3//jar",
"@org_robolectric_android_all_instrumented_12.1_robolectric_8229987_i4//jar",
"@org_robolectric_android_all_instrumented_12_robolectric_7732740_i4//jar",
"@org_robolectric_android_all_instrumented_11_robolectric_6757853_i4//jar",
"@org_robolectric_android_all_instrumented_10_robolectric_5803371_i4//jar",
"@org_robolectric_android_all_instrumented_9_robolectric_4913185_2_i4//jar",
"@org_robolectric_android_all_instrumented_8_1_0_robolectric_4611349_i4//jar",
"@org_robolectric_android_all_instrumented_8_0_0_r4_robolectric_r1_i4//jar",
"@org_robolectric_android_all_instrumented_7_1_0_r7_robolectric_r1_i4//jar",
"@org_robolectric_android_all_instrumented_7_0_0_r1_robolectric_r1_i4//jar",
"@org_robolectric_android_all_instrumented_6_0_1_r3_robolectric_r1_i4//jar",
"@org_robolectric_android_all_instrumented_5_1_1_r9_robolectric_r2_i4//jar",
"@org_robolectric_android_all_instrumented_5_0_2_r3_robolectric_r0_i4//jar",
"@org_robolectric_android_all_instrumented_4_4_r1_robolectric_r2_i4//jar",
"@org_robolectric_android_all_instrumented_4_3_r2_robolectric_r1_i4//jar",
"@org_robolectric_android_all_instrumented_4_2_2_r1_2_robolectric_r1_i4//jar",
"@org_robolectric_android_all_instrumented_4_1_2_r1_robolectric_r1_i4//jar",
]

java_library(
Expand Down
98 changes: 53 additions & 45 deletions bazel/robolectric.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,123 +2,131 @@ load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external")

def robolectric_repositories():
jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_12_robolectric_7732740_i3",
artifact = "org.robolectric:android-all-instrumented:12-robolectric-7732740-i3",
name = "org_robolectric_android_all_instrumented_12.1_robolectric_8229987_i4",
artifact = "org.robolectric:android-all-instrumented:12.1-robolectric-8229987-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "966eb54954297f4c182383ab2cc80a338082f3fe4e0a0508f0fa9f46ba81f2b9",
artifact_sha256 = "7cd7074babf0d08c3474714917b71fdfb67b9f98102589faabd92a4893673aa5",
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_11_robolectric_6757853_i3",
artifact = "org.robolectric:android-all-instrumented:11-robolectric-6757853-i3",
name = "org_robolectric_android_all_instrumented_12_robolectric_7732740_i4",
artifact = "org.robolectric:android-all-instrumented:12-robolectric-7732740-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "0fe41631d86237dd23170468278401ace1a8d98ad4d71ae870d68912d6e4496d",
artifact_sha256 = "87daecd20ec5638e5c45bb899edc108d40dd0a7a8a7fe8f1707d8eecc50e67e8",
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_10_robolectric_5803371_i3",
artifact = "org.robolectric:android-all-instrumented:10-robolectric-5803371-i3",
artifact_sha256 = "f9d96ce2753aed6f2187fe8f917b735578c01fd3799165e16127d79cb738f66d",
name = "org_robolectric_android_all_instrumented_11_robolectric_6757853_i4",
artifact = "org.robolectric:android-all-instrumented:11-robolectric-6757853-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "a91d99f47c8d84f95d20b4540e111a56140441fe310f0110849a1ccb2604a680",
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_9_robolectric_4913185_2_i3",
artifact = "org.robolectric:android-all-instrumented:9-robolectric-4913185-2-i3",
artifact_sha256 = "8b55e68cf516788e00c8d69052961f7ef9c6301bdd48936ab083626eefa546c5",
name = "org_robolectric_android_all_instrumented_10_robolectric_5803371_i4",
artifact = "org.robolectric:android-all-instrumented:10-robolectric-5803371-i4",
artifact_sha256 = "e8c9bb8f83ee66234add2beae31f9a56065ac94e33bf4212f670701fb41d1679",
server_urls = ["https://repo1.maven.org/maven2"],
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_8_1_0_robolectric_4611349_i3",
artifact = "org.robolectric:android-all-instrumented:8.1.0-robolectric-4611349-i3",
name = "org_robolectric_android_all_instrumented_9_robolectric_4913185_2_i4",
artifact = "org.robolectric:android-all-instrumented:9-robolectric-4913185-2-i4",
artifact_sha256 = "50c0a262b8208c282a58053cdd14a77e8aa0aa87eddab2ee4f84673865daf9e3",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "b9bd2d2bb93c1f148b96046fa61b17eb4cfd757b73e32936bd4aa11da6cceb5d",
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_8_0_0_r4_robolectric_r1_i3",
artifact = "org.robolectric:android-all-instrumented:8.0.0_r4-robolectric-r1-i3",
name = "org_robolectric_android_all_instrumented_8_1_0_robolectric_4611349_i4",
artifact = "org.robolectric:android-all-instrumented:8.1.0-robolectric-4611349-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "0c0d6dc554e24e1031c1e983780f813f542110caa6ee3b315af6d5e4c0289371",
artifact_sha256 = "7f0ca7fa335f68be40035391b6bb74383ba375f22efa0724a07d43e74c95b580",
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_7_1_0_r7_robolectric_r1_i3",
artifact = "org.robolectric:android-all-instrumented:7.1.0_r7-robolectric-r1-i3",
name = "org_robolectric_android_all_instrumented_8_0_0_r4_robolectric_r1_i4",
artifact = "org.robolectric:android-all-instrumented:8.0.0_r4-robolectric-r1-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "f21a852a0f5422860c1df1f863d9b6acfe1495192cf05714f06943d5b183e2da",
artifact_sha256 = "4e5b695b1cf438a1921e2a3fe55aa31814fbf8eae20ca06f82dd31644474f70b",
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_7_0_0_r1_robolectric_r1_i3",
artifact = "org.robolectric:android-all-instrumented:7.0.0_r1-robolectric-r1-i3",
name = "org_robolectric_android_all_instrumented_7_1_0_r7_robolectric_r1_i4",
artifact = "org.robolectric:android-all-instrumented:7.1.0_r7-robolectric-r1-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "8ab52831d572bcc1b134e15e0d9fb5c00089ea298b4461ab589768f52fec5309",
artifact_sha256 = "34f39d7e5db1d352e2fcf05e076420d4372e351f225593425ff13805945d91b7",
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_7_0_0_r1_robolectric_r1_i4",
artifact = "org.robolectric:android-all-instrumented:7.0.0_r1-robolectric-r1-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "298ac4f4e76d6cc7bb7a51bda3ddf85b77bd3efc1ff4ff3f72b12a47e41632f8",
licenses = ["notice"],
)


jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_6_0_1_r3_robolectric_r1_i3",
artifact = "org.robolectric:android-all-instrumented:6.0.1_r3-robolectric-r1-i3",
name = "org_robolectric_android_all_instrumented_6_0_1_r3_robolectric_r1_i4",
artifact = "org.robolectric:android-all-instrumented:6.0.1_r3-robolectric-r1-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "f5398708cc84f3aed1d27382028c69e5a983e434194d186e0737aacb3dc94e51",
artifact_sha256 = "48a990e986408eafd5eb7c297962345c4039c64da41233a7bf09a66c0d3fea6f",
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_5_1_1_r9_robolectric_r2_i3",
artifact = "org.robolectric:android-all-instrumented:5.1.1_r9-robolectric-r2-i3",
name = "org_robolectric_android_all_instrumented_5_1_1_r9_robolectric_r2_i4",
artifact = "org.robolectric:android-all-instrumented:5.1.1_r9-robolectric-r2-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "b5a8cef7d9ea5b183d04d7d574fb1d8074c318957de74aae6cd751866f1ca682",
artifact_sha256 = "165a408aaafd7a36a5fb6509decb63083583d7d20448afafca702980fa529bff",
licenses = ["notice"],
)


jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_5_0_2_r3_robolectric_r0_i3",
artifact = "org.robolectric:android-all-instrumented:5.0.2_r3-robolectric-r0-i3",
name = "org_robolectric_android_all_instrumented_5_0_2_r3_robolectric_r0_i4",
artifact = "org.robolectric:android-all-instrumented:5.0.2_r3-robolectric-r0-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "bb97d66cf64970bc7fd6bccd74e379f6cdba84c35fe98cee82c0b538f686a6ab",
artifact_sha256 = "e58f3acaad6b9ca7bb969a6b5b77b45781681309c6a3eb151671b95eb02307f7",
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_4_4_r1_robolectric_r2_i3",
artifact = "org.robolectric:android-all-instrumented:4.4_r1-robolectric-r2-i3",
name = "org_robolectric_android_all_instrumented_4_4_r1_robolectric_r2_i4",
artifact = "org.robolectric:android-all-instrumented:4.4_r1-robolectric-r2-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "91857c835d5f1891f0432d6e874664603fd07ee20445372168ff2055996279b8",
artifact_sha256 = "59091549fc8b52f3135b50a5f59ba4c195721da2a1913f8e46440acf46765d5c",
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_4_3_r2_robolectric_r1_i3",
artifact = "org.robolectric:android-all-instrumented:4.3_r2-robolectric-r1-i3",
name = "org_robolectric_android_all_instrumented_4_3_r2_robolectric_r1_i4",
artifact = "org.robolectric:android-all-instrumented:4.3_r2-robolectric-r1-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "1dadb1b115c3b3b3228a08ade1b7b7230451ea4d49014886eaf702cc0412fe19",
artifact_sha256 = "6e2e2c3121b2ae12d8b0f0151a83a4fe19861c57512ff026204070bc78d525b2",
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_4_2_2_r1_2_robolectric_r1_i3",
artifact = "org.robolectric:android-all-instrumented:4.2.2_r1.2-robolectric-r1-i3",
name = "org_robolectric_android_all_instrumented_4_2_2_r1_2_robolectric_r1_i4",
artifact = "org.robolectric:android-all-instrumented:4.2.2_r1.2-robolectric-r1-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "5ee56bb40cabd25d8cc9b8c233e3f5ced5d4df611a93d148278bdc4f768a42d5",
artifact_sha256 = "f210432d8102142945dd56ed2a93b89bc409e247af76ef0d02eda1c37835519e",
licenses = ["notice"],
)

jvm_maven_import_external(
name = "org_robolectric_android_all_instrumented_4_1_2_r1_robolectric_r1_i3",
artifact = "org.robolectric:android-all-instrumented:4.1.2_r1-robolectric-r1-i3",
name = "org_robolectric_android_all_instrumented_4_1_2_r1_robolectric_r1_i4",
artifact = "org.robolectric:android-all-instrumented:4.1.2_r1-robolectric-r1-i4",
server_urls = ["https://repo1.maven.org/maven2"],
artifact_sha256 = "6c75f2b9423aa9c35761d2c5aefcd352ca8569b6a81b3bbae5ccb471f39f255d",
artifact_sha256 = "1373bee24da940c2dbfd4fa3f35842b6960c79e0da03f649b156221d2a3dfbeb",
licenses = ["notice"],
)

0 comments on commit 3729877

Please sign in to comment.