Closed arkivanov closed 3 weeks ago
The updates involve renaming the withSavedState
functions to saveable
across different file sets (Android, JVM, and KLIB), adjusting their parameters and return types, and introducing new functions for creating mutable and immutable delegated properties to handle state saving and restoration. New tests have been added to ensure these changes work as intended, focusing on automatic state management using StateKeeper
.
File(s) | Change Summary |
---|---|
state-keeper/api/android/state-keeper.api , state-keeper/api/jvm/state-keeper.api , state-keeper/api/state-keeper.klib.api |
Renamed withSavedState functions to saveable with updated parameters and return types |
state-keeper/src/commonMain/kotlin/.../StateKeeperExt.kt |
Renamed functions, added new saveable functions for mutable delegated properties |
state-keeper/src/commonTest/kotlin/.../StateKeeperExtTest.kt |
Added tests for new saveable property functionality |
In the realms of code so bright, Where state and data take their flight, With
saveable
functions, fresh and new, Your app's state will glide right through. 🌟 A tale of Kotlin's golden dawn, Where bugs and glitches are withdrawn. 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
saveable
functions to replacewithSavedState
, providing more flexible state-saving capabilities forStateKeeper
andStateKeeperOwner
.Tests
saveable
functions correctly save and restore state.