Arkadii Ivanov
07/25/2020, 6:30 PMStateKeeper API
• Added InstanceKeeper API
• Fixed file choosers not showing in IDEA time travel plugin (#102, #103, #105, #107)
Breaking changes
The StateKeeper API is refactored, here are some most important changes:
• removed the StateKeeperContainer interface and all its implementations;
• StateKeeper.state: T property is replaced with StateKeeper.getState(): T method;
• StateKeeper.register(...) method is replaced with StateKeeper.setSupplier(...) method;
• StateKeeperProvider.get(...): StateKeeper method got additional argument `clazz: KClass`;
• removed StateKeeperProvider.retainInstance(...) and StateKeeperProvider.retainStore(...) extension methods.
A new InstanceKeeper API is introduced for objects retention.
Both StateKeeper and InstanceKeeper APIs are annotated as experimental.
The androidx-lifecycle-interop module is renamed to mvikotlin-extensions-androidx and now contains all extensions for AndroidX. Its package is changed to com.arkivanov.mvikotlin.extensions.androidx.*.
Please refer to the updated documentation for more information.
Apologies for the breaking changes, they were very necessary before the upcoming stable release.