test(app): align mockwebserver with resolved okhttp 5.2.1

fluwx 6.0.2 传递 okhttp 5.x,冲突调解覆盖本模块 4.12 声明(debug
运行时同为 5.2.1);mockwebserver 4.12 在 okhttp 5.x 运行时缺
okhttp3.internal.Util → 单测 setUp 即 NoClassDefFoundError(本改动
前 main 上已复现)。对齐后 11/11 通过。

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-28 14:10:14 +08:00
parent 93e7046332
commit 203f62e7cb
+4 -1
View File
@@ -70,7 +70,10 @@ dependencies {
implementation("androidx.core:core-ktx:1.15.0")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
testImplementation("junit:junit:4.13.2")
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
// mockwebserver 须对齐实际解析的 okhttp:fluwx 传递 okhttp 5.x
// (冲突调解覆盖本模块 4.12 声明),4.12 的 mockwebserver 在 5.x
// 运行时缺 okhttp3.internal.Util → NoClassDefFoundError。
testImplementation("com.squareup.okhttp3:mockwebserver:5.2.1")
}
flutter {