Skip to content

Commit

Permalink
Update navigation-compose to v2.7.0
Browse files Browse the repository at this point in the history
* Update dependency androidx.navigation:navigation-compose to v2.7.0

* Update dependency androidx.navigation:navigation-compose to v2.7.0

* Use libs

* Fix navigation

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
  • Loading branch information
renovate[bot] and Goooler authored Aug 10, 2023
1 parent 2a57574 commit 9c66849
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ dependencies {
implementation libs.compose.material
implementation libs.compose.materialIconsExtended
implementation libs.compose.activity
implementation "androidx.navigation:navigation-compose:2.7.0-alpha01"
implementation libs.compose.navigation
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kotlin = "1.8.22"

# Compose
activity = "1.7.2"
navigation = "2.6.0"
navigation = "2.7.0"
compose = "1.5.0"
composeCompiler = "1.4.8"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ public fun NavGraphBuilder.navigation(
popExitTransition: (AnimatedContentTransitionScope<NavBackStackEntry>.() -> ExitTransition?)? = exitTransition,
builder: NavGraphBuilder.() -> Unit,
) {
navigation(startDestination, route, arguments, deepLinks, builder).apply {
navigation(
startDestination = startDestination,
route = route,
arguments = arguments,
deepLinks = deepLinks,
builder = builder,
).apply {
enterTransition.let { enterTransitions[route] = enterTransition }
exitTransition.let { exitTransitions[route] = exitTransition }
popEnterTransition.let { popEnterTransitions[route] = popEnterTransition }
Expand Down

0 comments on commit 9c66849

Please sign in to comment.