diff options
| author | David Göransson <david.goransson@mullvad.net> | 2025-07-31 15:38:13 +0200 |
|---|---|---|
| committer | David Göransson <david.goransson@mullvad.net> | 2025-08-01 09:48:08 +0200 |
| commit | 754677a648ad6580f5546f0b83ea5765cfd97b3d (patch) | |
| tree | f7c1c32538f06a262c5d3086f4e4512af288eb4a /android/app | |
| parent | 212c9c1aabe17763f0ed807b2d3fca15f2305c8b (diff) | |
| download | mullvadvpn-754677a648ad6580f5546f0b83ea5765cfd97b3d.tar.xz mullvadvpn-754677a648ad6580f5546f0b83ea5765cfd97b3d.zip | |
Fix ktor parsing error
App module had transitive dependencies using a older version at runtime
of serializationx. However, when compiling the test:e2e module a later
version than 1.8.0 was used through ktor. This caused deserialization
in runtime to go looking for a method that didn't exist. By putting an
explicit version in the app module we make sure to use a version that
is compatible with ktor.
Diffstat (limited to 'android/app')
| -rw-r--r-- | android/app/build.gradle.kts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index f679193ba6..ba2e371fd5 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -434,8 +434,6 @@ dependencies { // Leak canary leakCanaryImplementation(libs.leakCanary) - // Needed for createComposeExtension() and createAndroidComposeExtension() - debugImplementation(libs.compose.ui.test.manifest) testImplementation(projects.lib.commonTest) testImplementation(libs.kotlin.test) testImplementation(libs.kotlinx.coroutines.test) @@ -445,7 +443,15 @@ dependencies { testRuntimeOnly(libs.junit.jupiter.engine) testImplementation(libs.junit.jupiter.params) + // HACK: + // Not used by app module, but otherwise an older version pre 1.8.0 will be used at runtime for + // the e2e tests. This causes the deserialization to fail because of a missing function that was + // introduced in 1.8.0. + implementation(libs.kotlinx.serialization.json) + // UI test dependencies + + // Needed for createComposeExtension() and createAndroidComposeExtension() debugImplementation(libs.compose.ui.test.manifest) androidTestImplementation(libs.koin.test) androidTestImplementation(libs.kotlin.test) |
