Releases: arkivanov/Decompose
0.6.0
Changes
- Updated Compose animations API (different animations for different children, combining animators) (#53, #67)
- Added
onComplete
callback toRouter.navigate
andRouter.pop
functions (#66) - Disabled interactions while animating Compose children (#58)
- Tidied deprecated code (#64)
Versions and dependencies
Kotlin: 1.6.10
Essenty: 0.2.2
extensions-compose-jetpack
Jetpack Compose: 1.1.1
Jetpack Compose Compiler: 1.1.1
extensions-compose-jetbrains
JetBrains Compose: 1.1.0
Breaking changes
The Compose animations API is significantly changed. The main idea is to allow different animations for different children. Also it is now possible to combine animators using the +
operator. This is both source and binary incompatible change. Please refer to the updated documentation.
The Router.navigate
function got a second argument - the onComplete
callback. The old Router.navigate
function with one argument is now an extension function, for convenience. The Router.pop
extension function got the onComplete
callback as well. It doesn't throw an exception anymore in case when the back stack is empty. Instead, the onComplete
callback is called with a result. This is both source and binary incompatible change. Please refer to the updated documentation.
All deprecated code with Level.ERROR
is removed. All deprecations with Level.WARNING
are promoted to Level.ERROR
.
0.5.2
0.5.1
0.5.0
- Added
Router
builder functions withinitialStack
argument, deprecated old builders withinitialConfiguration
andinitialBackStack
arguments (#14) - Added
WebHistoryController
for controlling the browser history (#15, #16) - Updated Kotlin to
1.6.10
, Jetpack Compose to1.0.5
, Jetpack Compose compiler to1.1.0-rc02
, and JetBrains Compose to1.0.1
- Simplified Compose animation API (badoo/Decompose#261)
- Added
Modifier
argument to theChildren
function (badoo/Decompose#262) - Fixed a possible memory leak in Compose
PageAnimation
(badoo/Decompose#259)
New API
This release introduces a new experimental API for controlling the web browser history - WebHistoryController
. Please refer to the updated documentation for more information.
Breaking changes
The animation API for Compose is updated and made simpler. This change doesn't affect if you are using the provided animations like slide()
or crossfadeScale
. But if you have custom animations (e.g. using the childAnimation
function), it is recommended to familiarise yourself with the changes. Please refer to the updated documentation and the corresponding pull request (badoo/Decompose#261).
The Children
function got a new optional argument - Modifier
. It can be used to better control positioning and other parameters of child Composables.