Upgrade Roboeletric and bump minSdk to 34

This commit is contained in:
Torsten Grote 2024-05-28 10:23:43 -03:00
parent 9cc72bfa38
commit 6143ec04ed
No known key found for this signature in database
GPG key ID: 3E5F77D92CF891FF
6 changed files with 3 additions and 7 deletions

View file

@ -176,7 +176,7 @@ dependencies {
// anything less than 'implementation' fails tests run with gradlew
testImplementation(aospLibs)
testImplementation("androidx.test.ext:junit:1.1.5")
testImplementation("org.robolectric:robolectric:4.10.3")
testImplementation("org.robolectric:robolectric:4.12.2")
testImplementation("org.hamcrest:hamcrest:2.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:${libs.versions.junit5.get()}")
testImplementation("org.junit.jupiter:junit-jupiter-params:${libs.versions.junit5.get()}")

View file

@ -57,7 +57,6 @@ import kotlin.random.Random
@Suppress("DEPRECATION")
@RunWith(AndroidJUnit4::class)
@Config(
sdk = [33], // robolectric does not support 34, yet
application = TestApp::class
)
class MetadataManagerTest {

View file

@ -24,7 +24,6 @@ import org.robolectric.annotation.Config
@RunWith(AndroidJUnit4::class)
@Config(
sdk = [33], // robolectric does not support 34, yet
application = TestApp::class
)
internal class DocumentFileTest {

View file

@ -28,7 +28,6 @@ import kotlin.random.Random
@RunWith(AndroidJUnit4::class)
@Config(
sdk = [33], // robolectric does not support 34, yet
application = TestApp::class
)
internal class WebDavStoragePluginTest : TransportTest() {

View file

@ -27,7 +27,6 @@ import kotlin.random.Random
@RunWith(AndroidJUnit4::class)
@Config(
sdk = [33], // robolectric does not support 34, yet
application = TestApp::class
)
internal class DeviceInfoTest {

View file

@ -11,12 +11,12 @@ ktlint = "11.5.0"
# Android SDK versions
compileSdk = "34"
minSdk = "33"
minSdk = "34"
targetSdk = "34"
# Test versions
junit4 = "4.13.2"
junit5 = "5.10.0" # careful, upgrading this can change a Cipher's IV size in tests!?
junit5 = "5.10.2" # careful, upgrading this can change a Cipher's IV size in tests!?
mockk = "1.13.4" # newer versions require kotlin > 1.8.10
espresso = "3.4.0"