- Fixed: Proper lifecycle handling/creation on destination change.
- Fixed: Lifecycle state changes with activity state changes.
- Improved: Checking multiple dialog instance will now account for
equals()
.
- Added:
currentRoute
&parentRoute
properties onController<T>
.
- Fixed: Proper lifecycle events on
Route
.
- Updated: Jetpack Compose to version v1.1.1 (requires Kotlin v1.6.10).
- Fixed: Scoped
ViewModel
ssavedStateBundle
does not save across multiple screens.
- Added: Support for scoped
ViewModel
s (#20). - Updated: Jetpack Compose to version v1.0.4 (requires Kotlin v1.5.31).
- Breaking Change: The signature of
ComposeNavigator.Setup(...)
is changed as some parameters are reordered.
- Breaking Change: Removed
suppressBackPress
as there is no real use-case for it. - Fixed:
goBackUntil
doesn't correct remove keys fromsaveableStateHolder
upon pop.
- Breaking Change: Renamed
findController
tofindNavController
. - Breaking Change: Navigation Route is not tied to the class. Instead defined key using
Route.Key
.
- Breaking Change:
popUpTo
doesn't require destination instance, instead they now acceptRoute
keys. - Behavioral Change
popUpTo
's inclusive parameter is nowfalse
by default. - Added:
goBackUntil(dest)
similar to popUntil forController<T>
as well as navigator. - Added:
goBackToRoot()
i.e jump to root destination functionality forController<T>
as well as navigator. - Added: Exposed
navigator.goBack()
for managing backstack or manual handling ofonBackPressed()
.
- Breaking Change: Implementing a custom transition now requires to explicitly specify
TransitionKey
. - Updated: Jetpack Compose to version v1.0.3 (requires Kotlin v1.5.30).
- Fixed: Transitions not working when R8 in full mode is enabled.
- Breaking Change:
rememberController
renamed torememberNavController
. - Breaking Change: You must provide
Controller<T>
usingrememberNavController<T>()
duringSetup
. This removes the need ofcontroller
parameter scope in the content.
- Breaking Change: Dismiss() in
DialogScope
does not respects thedialogNavigator
's backstack, usegoBack()
. - Added:
canGoBack()
to determine if backward navigation is possible or not. - Updated: Jetpack Compose to version
v1.0.2
. - Fixed: CompositionLocalScope will not be properly removed when composition disposes.
- Fixed:
getAllHistory()
on empty backstack causes Collection empty exception.
- Added:
getCurrentRouteAsFlow
method to observe changes to current destination.
- Added:
handleOnDismissRequest
API inCreateDialog
for intercepting dismiss request. - Fixed: Incorrect popping of dialogs during onBackPressed().
- Breaking Change: Renamed
setDefaultBackPressEnabled(boolean)
todisableDefaultBackPressLogic()
. - Breaking Change: Creating dialogs through controller will now provide
DialogScope
(read here). - Added: Support for navigation inside Dialogs (read here).
- Updated: Java Docs for animations.
- Updated: Updated Compose to v1.0.1
- Added: Support for
Dialog
destination (read here).
- Updated: Compose version to 1.0.0 stable release.