Skip to content

Commit dd71f91

Browse files
committed
Update robolectric in the Bazel build
1 parent cf39253 commit dd71f91

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

WORKSPACE

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ http_archive(
106106
url = "https://github.com/google/dagger/archive/dagger-%s.zip" % DAGGER_TAG,
107107
)
108108

109-
ROBOLECTRIC_TAG = "4.4"
109+
ROBOLECTRIC_TAG = "4.7.3"
110110

111111
http_archive(
112112
name = "robolectric",
113-
sha256 = "d4f2eb078a51f4e534ebf5e18b6cd4646d05eae9b362ac40b93831bdf46112c7",
113+
sha256 = "97f169d39f19412bdd07fd6c274dcda0a7c8f623f7f00aa5a3b94994fc6f0ec4",
114114
strip_prefix = "robolectric-bazel-%s" % ROBOLECTRIC_TAG,
115115
url = "https://github.com/robolectric/robolectric-bazel/archive/%s.tar.gz" % ROBOLECTRIC_TAG,
116116
)
@@ -183,7 +183,7 @@ maven_install(
183183
"org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2",
184184
"org.jetbrains:annotations:13.0",
185185
"org.slf4j:slf4j-api:1.7.25",
186-
"org.robolectric:robolectric:4.4",
186+
"org.robolectric:robolectric:4.7.3",
187187
"org.scala-lang:scala-library:2.11.12",
188188
"androidx.lifecycle:lifecycle-extensions:2.2.0",
189189
"androidx.lifecycle:lifecycle-livedata-ktx:2.2.0",

core/BUILD.bazel

+2-4
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,13 @@ kt_android_library(
4747
deps = DAO_TEST_LIB_DEPS,
4848
)
4949

50-
# TODO(robinlinden): targetSdk 30 once robolectric supports it.
5150
android_local_test(
5251
name = "contact_dao_test",
5352
size = "small",
5453
custom_package = "ltd.evilcorp.core.db",
5554
manifest_values = {
5655
"minSdkVersion": "19",
57-
"targetSdkVersion": "29",
56+
"targetSdkVersion": "31",
5857
},
5958
test_class = "ltd.evilcorp.core.db.ContactDaoTest",
6059
deps = [":contact_dao_test_lib"] + DAO_TEST_DEPS,
@@ -68,14 +67,13 @@ kt_android_library(
6867
deps = DAO_TEST_LIB_DEPS,
6968
)
7069

71-
# TODO(robinlinden): targetSdk 30 once robolectric supports it.
7270
android_local_test(
7371
name = "user_dao_test",
7472
size = "small",
7573
custom_package = "ltd.evilcorp.core.db",
7674
manifest_values = {
7775
"minSdkVersion": "19",
78-
"targetSdkVersion": "29",
76+
"targetSdkVersion": "31",
7977
},
8078
test_class = "ltd.evilcorp.core.db.UserDaoTest",
8179
deps = [":user_dao_test_lib"] + DAO_TEST_DEPS,

0 commit comments

Comments
 (0)