Skip to content

Commit 8292382

Browse files
committed
ref(android): [Nav3 Lifecycle 1] Add navigation lease coordinator
Introduce the lifecycle-aware lease state machine that selects which navigation root may publish shared scope state and bind navigation transactions. Refs JAVA-274
1 parent c2667a5 commit 8292382

4 files changed

Lines changed: 1220 additions & 0 deletions

File tree

‎gradle/libs.versions.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ androidx-core-ktx = { module = "androidx.core:core-ktx", version = "1.7.0" }
107107
androidx-fragment-ktx = { module = "androidx.fragment:fragment-ktx", version = "1.3.5" }
108108
androidx-lifecycle-common-java8 = { module = "androidx.lifecycle:lifecycle-common-java8", version.ref = "androidxLifecycle" }
109109
androidx-lifecycle-process = { module = "androidx.lifecycle:lifecycle-process", version.ref = "androidxLifecycle" }
110+
androidx-lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version = "2.8.3" }
110111
androidx-navigation-runtime = { module = "androidx.navigation:navigation-runtime", version.ref = "androidxNavigation" }
111112
androidx-navigation-compose = { module = "androidx.navigation:navigation-compose", version.ref = "androidxNavigation" }
112113
androidx-navigation-fragment = { module = "androidx.navigation:navigation-fragment-ktx", version.ref = "androidxNavigation" }

‎sentry-android-navigation3/build.gradle.kts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ dependencies {
6262
implementation(projects.sentry)
6363

6464
compileOnly(libs.androidx.compose.runtime)
65+
// Provides lifecycle types used to coordinate overlapping navigation roots. Hosts get it at
66+
// runtime through Compose UI 1.7+ and navigation3-ui, both of which depend on it.
67+
compileOnly(libs.androidx.lifecycle.runtime.compose)
6568

6669
testImplementation(libs.androidx.compose.ui.test.junit4)
6770
testImplementation(libs.androidx.test.core)

0 commit comments

Comments
 (0)