Skip to content

Commit

Permalink
gradle: Downgrade mockito to 4.4.0
Browse files Browse the repository at this point in the history
Starting from version 4.5.0 Mockito uses the Java stream APIs, which are
not available on Android API levels < 24. This has been causing the
Android integration tests for API levels 21, 22 and 23 to fail.
  • Loading branch information
temawi committed Oct 9, 2023
1 parent 8c05455 commit e488b67
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ junit = "junit:junit:4.13.2"
# Update notes / 2023-07-19 sergiitk:
# Couldn't update to 5.4.0, updated to the last in 4.x line. Version 5.x breaks some tests.
# Error log: https://github.com/grpc/grpc-java/pull/10359#issuecomment-1632834435
mockito-android = "org.mockito:mockito-android:4.11.0"
mockito-core = "org.mockito:mockito-core:4.11.0"
# Update notes / 2023-10-09 temawi:
# 4.11.0 Has been breaking the android integration tests as mockito now uses streams
# (not available in API levels < 24). https://github.com/grpc/grpc-java/issues/10457
mockito-android = "org.mockito:mockito-android:4.4.0"
mockito-core = "org.mockito:mockito-core:4.4.0"
netty-codec-http2 = { module = "io.netty:netty-codec-http2", version.ref = "netty" }
netty-handler-proxy = { module = "io.netty:netty-handler-proxy", version.ref = "netty" }
netty-tcnative = { module = "io.netty:netty-tcnative-boringssl-static", version.ref = "nettytcnative" }
Expand Down

0 comments on commit e488b67

Please sign in to comment.