Closed arkivanov closed 3 months ago
The recent update enhances the InstanceKeeper
and StateKeeper
modules by adding inline functions for retaining instances and handling saved states more efficiently. These changes provide simplified APIs for better management and restoration of instances and states, improving usability and functionality in the framework.
File Path | Summary |
---|---|
instance-keeper/api/instance-keeper.klib.api | Added inline functions to InstanceKeeperOwner for retaining instances. |
instance-keeper/src/commonMain/kotlin/.../InstanceKeeperExt.kt | Introduced convenience functions in InstanceKeeperOwner for handling instances. |
state-keeper/api/android/state-keeper.api | Added withSavedState functions in StateKeeperExtKt class. |
state-keeper/api/jvm/state-keeper.api | Similar to android changes, added withSavedState functions in StateKeeperExtKt class. |
state-keeper/api/state-keeper.klib.api | Added inline withSavedState functions for StateKeeper and StateKeeperOwner . |
state-keeper/src/commonMain/kotlin/.../StateKeeperExt.kt | Introduced helper functions for creating and handling objects with saved state. |
state-keeper/src/commonTest/kotlin/.../StateKeeperExtTest.kt | Added tests for StateKeeperExt ensuring the correct functionality of saving and restoring states. |
In realms of code where instances keep, And states are saved so deep, Inline functions spring to life, Reducing complexity and strife. Keepers hold, states return, With each change, our skills do burn.
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
InstanceKeeperOwner
interface for retaining instances, enhancing theInstanceKeeper
module.withSavedState
functions to theStateKeeper
andStateKeeperOwner
interfaces for handling saved states with specific parameters and return types.withSavedState
functionality in theStateKeeper
module.