From 6f92ea78b4c20f02f44c6bc16051ca61d8d99b79 Mon Sep 17 00:00:00 2001 From: kari-ts Date: Tue, 22 Sep 2026 08:47:57 -0700 Subject: [PATCH] android: declare fragment dependency explicitly The release docker build fails lintVitalRelease with InvalidFragmentVersionForActivityResult even though gradle resolves androidx.fragment:fragment to 1.5.4. this declares fragment directly so that lint can see the resolved version. Signed-off-by: kari-ts --- android/build.gradle.kts | 1 + android/gradle/libs.versions.toml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/android/build.gradle.kts b/android/build.gradle.kts index 63a27e20c5..f166454979 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -69,6 +69,7 @@ android { dependencies { // Android dependencies. + implementation(libs.androidx.fragment) implementation(libs.androidx.core) implementation(libs.androidx.coreKtx) implementation(libs.androidx.browser) diff --git a/android/gradle/libs.versions.toml b/android/gradle/libs.versions.toml index 266571c845..4ab69e02a4 100644 --- a/android/gradle/libs.versions.toml +++ b/android/gradle/libs.versions.toml @@ -15,6 +15,7 @@ compose = "1.7.3" material3 = "1.3.0" lifecycle = "2.8.6" activity = "1.9.2" +fragment = "1.5.4" splashscreen = "1.1.0-rc01" animation = "1.7.4" coil = "2.6.0" @@ -40,6 +41,7 @@ androidx-browser = { module = "androidx.browser:browser", version.ref = "browser androidx-security-crypto = { module = "androidx.security:security-crypto", version.ref = "security-crypto" } androidx-work-runtime = { module = "androidx.work:work-runtime", version.ref = "work" } androidx-work-runtimeKtx = { module = "androidx.work:work-runtime-ktx", version.ref = "work" } +androidx-fragment = { module = "androidx.fragment:fragment", version.ref = "fragment" } # Kotlin dependencies kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "serialization" }