Update dependency com.freeletics.khonshu:state-machine to v0.26.0 #348
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.25.1
->0.26.0
Release Notes
freeletics/khonshu (com.freeletics.khonshu:state-machine)
v0.26.0
Compare Source
Navigation
HostNavigator
. This was previously an internal type used withinNavHost
to execute navigation events. It's now possible to create aHostNavigator
withrememberHostNavigator(...)
, pass that instance toNavHost
and use it to navigate directly without the use of navigation events. It is safe
to reference
HostNavigator
outside the UI layer.DestinationNavigator
is a replacement forNavEventNavigator
that delegatesto
HostNavigator
, which means it also works without navigation events. Theadvantage of using this over using
HostNavigator
directly is thatDestinationNavigator
supports activity results, whichHostNavigator
doesn't.navigate {}
function that allows grouping multiple navigation eventsis now more efficient. The
NavHost
will only be updated once at the end andnot between the actions of such a group.
NavEventNavigator
will be removed in one of the next releases.Codegen
HostNavigator
is automatically created in theNavHostActivity
component.NavRoot
is provided into the scope of aNavHostActivity
.NavDestination
now requires anActivityResultNavigator
to be provided intothe scope (previously
NavEventNavigator
was required).馃敃 Ignore: Close this PR and you won't be reminded about these updates again.