Skip to content

Commit e28ffa4

Browse files
authored
Merge pull request #461 from android/jdk/adaptive-codelab-end/missing-dep
[AdaptiveUiCodelab] add missing dependency for collectAsStateWithLifecycle
2 parents 2d914fa + f1a68a4 commit e28ffa4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

AdaptiveUiCodelab/app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ dependencies {
8383
debugImplementation(libs.androidx.ui.test.manifest)
8484

8585
implementation(libs.androidx.lifecycle.viewmodel.compose)
86+
implementation(libs.androidx.lifecycle.runtime.compose)
8687
implementation(libs.androidx.lifecycle.runtime.ktx)
8788
implementation(libs.androidx.activity.compose)
8889
implementation(libs.androidx.core.ktx)

AdaptiveUiCodelab/gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ junit = "4.13.2"
88
junitVersion = "1.1.5"
99
kotlin = "1.9.23"
1010
kotlinxCoroutinesAndroid = "1.8.0"
11-
lifecycleViewmodelCompose = "2.7.0"
12-
lifecycleRuntimeKtx = "2.7.0"
11+
lifecycle = "2.7.0"
1312
material3Adaptive = "1.0.0-beta01"
1413
material3AdaptiveNavSuite = "1.3.0-beta01"
1514
window = "1.2.0"
@@ -20,8 +19,9 @@ androidx-compose-bom = { module = "androidx.compose:compose-bom", version.ref =
2019
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" }
2120
androidx-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espressoCore" }
2221
androidx-junit = { module = "androidx.test.ext:junit", version.ref = "junitVersion" }
23-
androidx-lifecycle-runtime-ktx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
24-
androidx-lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycleViewmodelCompose" }
22+
androidx-lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "lifecycle" }
23+
androidx-lifecycle-runtime-ktx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "lifecycle" }
24+
androidx-lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycle" }
2525
androidx-material-icons-extended = { module = "androidx.compose.material:material-icons-extended" }
2626
androidx-material3 = { module = "androidx.compose.material3:material3" }
2727
androidx-material3-adaptive = { module = "androidx.compose.material3.adaptive:adaptive", version.ref = "material3Adaptive" }

0 commit comments

Comments
 (0)