Improved
1.7.0-alpha02
Breaking change!
Starting from this version, PreCompose no longer uses built-in ViewModel and Lifecycle. Instead, it now uses JetPack's ViewModel and Lifecycle. This change will introduce breaking changes. You can refer to the following migration guide to upgrade your code:
- The package
moe.tlaster:precompose-viewmodelis no longer used. You can useorg.jetbrains.androidx.lifecycle:lifecycle-viewmodel-composeinstead. - The package
moe.tlaster:precompose-koinis no longer used. You can useio.insert-koin:koin-compose-viewmodelinstead. - The package
moe.tlaster:precompose-moleculeno longer depends onmoe.tlaster:precomposeand can be used as a standalone library. moe.tlaster.precompose.stateholder.SavedStateHolderis temporarily unavailable in this version.moe.tlaster.precompose.ProvidePreComposeCompositionLocalsis no longer needed. You can directly usemoe.tlaster.precompose.PreComposeAppin commonMain.- Migrate the following class names:
moe.tlaster.precompose.koin.koinViewModel->org.koin.compose.viewmodel.koinViewModelmoe.tlaster.precompose.viewmodel.ViewModel->androidx.lifecycle.ViewModelmoe.tlaster.precompose.lifecycle.Lifecycle->androidx.lifecycle.Lifecyclemoe.tlaster.precompose.lifecycle.LifecycleOwner->androidx.lifecycle.LifecycleOwner
Full Changelog: https://github.com/Tlaster/PreCompose/compare/1.7.0-alpha01...1.7.0-alpha02