Skip to content

Commit

Permalink
Update robolectric in the Bazel build
Browse files Browse the repository at this point in the history
  • Loading branch information
robinlinden committed Feb 22, 2022
1 parent cf39253 commit dd71f91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ http_archive(
url = "https://github.com/google/dagger/archive/dagger-%s.zip" % DAGGER_TAG,
)

ROBOLECTRIC_TAG = "4.4"
ROBOLECTRIC_TAG = "4.7.3"

http_archive(
name = "robolectric",
sha256 = "d4f2eb078a51f4e534ebf5e18b6cd4646d05eae9b362ac40b93831bdf46112c7",
sha256 = "97f169d39f19412bdd07fd6c274dcda0a7c8f623f7f00aa5a3b94994fc6f0ec4",
strip_prefix = "robolectric-bazel-%s" % ROBOLECTRIC_TAG,
url = "https://github.com/robolectric/robolectric-bazel/archive/%s.tar.gz" % ROBOLECTRIC_TAG,
)
Expand Down Expand Up @@ -183,7 +183,7 @@ maven_install(
"org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2",
"org.jetbrains:annotations:13.0",
"org.slf4j:slf4j-api:1.7.25",
"org.robolectric:robolectric:4.4",
"org.robolectric:robolectric:4.7.3",
"org.scala-lang:scala-library:2.11.12",
"androidx.lifecycle:lifecycle-extensions:2.2.0",
"androidx.lifecycle:lifecycle-livedata-ktx:2.2.0",
Expand Down
6 changes: 2 additions & 4 deletions core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ kt_android_library(
deps = DAO_TEST_LIB_DEPS,
)

# TODO(robinlinden): targetSdk 30 once robolectric supports it.
android_local_test(
name = "contact_dao_test",
size = "small",
custom_package = "ltd.evilcorp.core.db",
manifest_values = {
"minSdkVersion": "19",
"targetSdkVersion": "29",
"targetSdkVersion": "31",
},
test_class = "ltd.evilcorp.core.db.ContactDaoTest",
deps = [":contact_dao_test_lib"] + DAO_TEST_DEPS,
Expand All @@ -68,14 +67,13 @@ kt_android_library(
deps = DAO_TEST_LIB_DEPS,
)

# TODO(robinlinden): targetSdk 30 once robolectric supports it.
android_local_test(
name = "user_dao_test",
size = "small",
custom_package = "ltd.evilcorp.core.db",
manifest_values = {
"minSdkVersion": "19",
"targetSdkVersion": "29",
"targetSdkVersion": "31",
},
test_class = "ltd.evilcorp.core.db.UserDaoTest",
deps = [":user_dao_test_lib"] + DAO_TEST_DEPS,
Expand Down

0 comments on commit dd71f91

Please sign in to comment.