From 983c9acaa79012affab6c113a6874768800f9732 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Sat, 12 Sep 2026 14:43:17 +0200 Subject: [PATCH] build: the saved-state view-model dependency for the editor's tests Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01Wmy1BpCKi8KeSjaWhYuCPV --- app/build.gradle.kts | 1 + gradle/libs.versions.toml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 7ef8633..c6de827 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -200,6 +200,7 @@ dependencies { testImplementation(libs.truth) testImplementation(libs.turbine) testImplementation(libs.kotlinx.coroutines.test) + testImplementation(libs.androidx.lifecycle.viewmodel.savedstate) androidTestImplementation(libs.androidx.room.testing) androidTestImplementation(libs.androidx.junit) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index d7ddbde..3526bbd 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -91,6 +91,9 @@ androidx-hilt-navigation-compose = { group = "androidx.hilt", name = "hilt-navig # Navigation-compose (the NavHost / back stack) androidx-navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version.ref = "navigationCompose" } +# Lifecycle SavedStateHandle — constructed directly in M5's editor ViewModel test +androidx-lifecycle-viewmodel-savedstate = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-savedstate", version.ref = "lifecycleRuntime" } + # Lifecycle compose (for collectAsStateWithLifecycle) androidx-lifecycle-runtime-compose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "lifecycleCompose" }