Skip to content

1.7.0-alpha02

Pre-release
Pre-release
Compare
Choose a tag to compare
@Tlaster Tlaster released this 02 Oct 05:32
· 12 commits to compose-1.7 since this release
1.7.0-alpha02
52fa48e

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-viewmodel is no longer used. You can use org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-compose instead.
  • The package moe.tlaster:precompose-koin is no longer used. You can use io.insert-koin:koin-compose-viewmodel instead.
  • The package moe.tlaster:precompose-molecule no longer depends on moe.tlaster:precompose and can be used as a standalone library.
  • moe.tlaster.precompose.stateholder.SavedStateHolder is temporarily unavailable in this version.
  • moe.tlaster.precompose.ProvidePreComposeCompositionLocals is no longer needed. You can directly use moe.tlaster.precompose.PreComposeApp in commonMain.
  • Migrate the following class names:
    • moe.tlaster.precompose.koin.koinViewModel -> org.koin.compose.viewmodel.koinViewModel
    • moe.tlaster.precompose.viewmodel.ViewModel -> androidx.lifecycle.ViewModel
    • moe.tlaster.precompose.lifecycle.Lifecycle -> androidx.lifecycle.Lifecycle
    • moe.tlaster.precompose.lifecycle.LifecycleOwner -> androidx.lifecycle.LifecycleOwner

Full Changelog: 1.7.0-alpha01...1.7.0-alpha02