File tree Expand file tree Collapse file tree
src/test/java/io/nekohasekai/sagernet Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 )
1919class HysteriaFmtTest {
2020
2121 @Test
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import org.robolectric.RobolectricTestRunner
1616import 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 )
2020class BackupFormatV2Test {
2121
2222 @Test
You can’t perform that action at this time.
0 commit comments