Upgrade Roboeletric and bump minSdk to 34
This commit is contained in:
parent
9cc72bfa38
commit
6143ec04ed
6 changed files with 3 additions and 7 deletions
|
@ -176,7 +176,7 @@ dependencies {
|
||||||
// anything less than 'implementation' fails tests run with gradlew
|
// anything less than 'implementation' fails tests run with gradlew
|
||||||
testImplementation(aospLibs)
|
testImplementation(aospLibs)
|
||||||
testImplementation("androidx.test.ext:junit:1.1.5")
|
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.hamcrest:hamcrest:2.2")
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter-api:${libs.versions.junit5.get()}")
|
testImplementation("org.junit.jupiter:junit-jupiter-api:${libs.versions.junit5.get()}")
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter-params:${libs.versions.junit5.get()}")
|
testImplementation("org.junit.jupiter:junit-jupiter-params:${libs.versions.junit5.get()}")
|
||||||
|
|
|
@ -57,7 +57,6 @@ import kotlin.random.Random
|
||||||
@Suppress("DEPRECATION")
|
@Suppress("DEPRECATION")
|
||||||
@RunWith(AndroidJUnit4::class)
|
@RunWith(AndroidJUnit4::class)
|
||||||
@Config(
|
@Config(
|
||||||
sdk = [33], // robolectric does not support 34, yet
|
|
||||||
application = TestApp::class
|
application = TestApp::class
|
||||||
)
|
)
|
||||||
class MetadataManagerTest {
|
class MetadataManagerTest {
|
||||||
|
|
|
@ -24,7 +24,6 @@ import org.robolectric.annotation.Config
|
||||||
|
|
||||||
@RunWith(AndroidJUnit4::class)
|
@RunWith(AndroidJUnit4::class)
|
||||||
@Config(
|
@Config(
|
||||||
sdk = [33], // robolectric does not support 34, yet
|
|
||||||
application = TestApp::class
|
application = TestApp::class
|
||||||
)
|
)
|
||||||
internal class DocumentFileTest {
|
internal class DocumentFileTest {
|
||||||
|
|
|
@ -28,7 +28,6 @@ import kotlin.random.Random
|
||||||
|
|
||||||
@RunWith(AndroidJUnit4::class)
|
@RunWith(AndroidJUnit4::class)
|
||||||
@Config(
|
@Config(
|
||||||
sdk = [33], // robolectric does not support 34, yet
|
|
||||||
application = TestApp::class
|
application = TestApp::class
|
||||||
)
|
)
|
||||||
internal class WebDavStoragePluginTest : TransportTest() {
|
internal class WebDavStoragePluginTest : TransportTest() {
|
||||||
|
|
|
@ -27,7 +27,6 @@ import kotlin.random.Random
|
||||||
|
|
||||||
@RunWith(AndroidJUnit4::class)
|
@RunWith(AndroidJUnit4::class)
|
||||||
@Config(
|
@Config(
|
||||||
sdk = [33], // robolectric does not support 34, yet
|
|
||||||
application = TestApp::class
|
application = TestApp::class
|
||||||
)
|
)
|
||||||
internal class DeviceInfoTest {
|
internal class DeviceInfoTest {
|
||||||
|
|
|
@ -11,12 +11,12 @@ ktlint = "11.5.0"
|
||||||
|
|
||||||
# Android SDK versions
|
# Android SDK versions
|
||||||
compileSdk = "34"
|
compileSdk = "34"
|
||||||
minSdk = "33"
|
minSdk = "34"
|
||||||
targetSdk = "34"
|
targetSdk = "34"
|
||||||
|
|
||||||
# Test versions
|
# Test versions
|
||||||
junit4 = "4.13.2"
|
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
|
mockk = "1.13.4" # newer versions require kotlin > 1.8.10
|
||||||
espresso = "3.4.0"
|
espresso = "3.4.0"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue