3.0.0-alpha05
Pre-release- Added
StackNavigator#pushToFront
extension function (#593) - Added
discardSavedState
andisStateSavingAllowed
arguments toretainedComponent {}
function (#594) - Use
Cancellation
inNavigationSource
(#613) - Moved
PredictiveBackGestureOverlay
andPredictiveBackGestureIcon
insidepredictiveback
package (#614) - Fixed possible NPE crash in Generic Navigation (also affects Child Pages) (#615, see #612)
Full Changelog: 3.0.0-alpha04...3.0.0-alpha05
The new StackNavigator#pushToFront
function
This release adds the new StackNavigator#pushToFront
navigation function. See the updated docs for details.
Breaking changes
Please make sure you also update Essenty to 2.0.0-alpha03
if applicable.
New arguments in retainedComponent
function
The retainedComponent {}
function got two new arguments with default values: discardSavedState
and isStateSavingAllowed
. The default behaviour is unchanged, though this change breaks binary compatibility.
Using Cancellation
in NavigationSource
The NavigationSource#subscribe
method now returns Cancellation
, the NavigationSource#unsubscribe
method is removed. This is both source and binary incompatible change. Though, the source compatibility is only affected if there is a manual implementation of the NavigationSource
interface.
Moved PredictiveBackGestureOverlay
and PredictiveBackGestureIcon
PredictiveBackGestureOverlay
and PredictiveBackGestureIcon
are moved from com.arkivanov.decompose.extensions.compose
package to com.arkivanov.decompose.extensions.compose.stack.animation.predictiveback
.
- import com.arkivanov.decompose.extensions.compose.PredictiveBackGestureOverlay
- import com.arkivanov.decompose.extensions.compose.PredictiveBackGestureIcon
+ import com.arkivanov.decompose.extensions.compose.stack.animation.predictiveback.PredictiveBackGestureOverlay
+ import com.arkivanov.decompose.extensions.compose.stack.animation.predictiveback.PredictiveBackGestureIcon
Versions and dependencies
Kotlin: 1.9.21
Essenty: 2.0.0-alpha02
kotlinx-serialization: 1.6.2
JetBrains Compose: 1.6.0-alpha01