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" }