Skip to content

Commit ae387da

Browse files
committed
deps: bump kotlinx-coroutines 1.10.2 and Robolectric 4.16; raise @config sdk pins
1 parent 2be4615 commit ae387da

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

app/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ dependencies {
5757

5858
implementation(fileTree("libs"))
5959

60-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1")
60+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2")
6161
implementation("androidx.core:core-ktx:1.13.1")
6262
implementation("androidx.recyclerview:recyclerview:1.3.2")
6363
implementation("androidx.activity:activity-ktx:1.10.1")
@@ -108,10 +108,10 @@ dependencies {
108108

109109
// Unit tests (pure-JVM, run via :app:testOssDebugUnitTest — no device/libcore needed).
110110
testImplementation("junit:junit:4.13.2")
111-
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.1")
111+
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.2")
112112
// Robolectric is available for tests that must touch Android framework classes;
113113
// prefer extracting pure functions over using it (see Plan 007).
114-
testImplementation("org.robolectric:robolectric:4.13")
114+
testImplementation("org.robolectric:robolectric:4.16")
115115

116116
// Instrumented tests (androidTest) — Room migration verification on a real SQLite.
117117
// Runs on a device/emulator (see .depot/workflows/android-instrumented.yml), not the JVM.

app/src/test/java/io/nekohasekai/sagernet/fmt/HysteriaFmtTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import org.robolectric.annotation.Config
1111

1212
/**
1313
* Tests for the Hysteria 2 JSON config import (Plan 022). Uses Robolectric because org.json
14-
* is an Android-framework class (stubbed on the bare JVM). Pinned to a Robolectric-supported
15-
* SDK level (the project's compileSdk 36 may not be bundled in Robolectric yet).
14+
* is an Android-framework class (stubbed on the bare JVM). Pinned to the app's targetSdk,
15+
* which Robolectric 4.16 bundles (4.16 supports SDK 36 / Baklava).
1616
*/
1717
@RunWith(RobolectricTestRunner::class)
18-
@Config(sdk = [33], application = android.app.Application::class)
18+
@Config(sdk = [35], application = android.app.Application::class)
1919
class HysteriaFmtTest {
2020

2121
@Test

app/src/test/java/io/nekohasekai/sagernet/ui/BackupFormatV2Test.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import org.robolectric.RobolectricTestRunner
1616
import org.robolectric.annotation.Config
1717

1818
@RunWith(RobolectricTestRunner::class)
19-
@Config(sdk = [33], application = android.app.Application::class)
19+
@Config(sdk = [35], application = android.app.Application::class)
2020
class BackupFormatV2Test {
2121

2222
@Test

0 commit comments

Comments
 (0)