Skip to content

Releases: Tlaster/PreCompose

1.4.0

17 Apr 09:54
d235d75
Compare
Choose a tag to compare

PreCompose version is now aligned with Compose Multiplatform with major and mirror versions.

What's changed

  • Internal rework for NavHost, Navigator, RouteStackManager.
  • LiveData has been removed
  • ViewModel now in a separate library: moe.tlaster.precompose-viewmodel.
  • moe.tlaster.precompose.ui.viewModel now moved to moe.tlaster.precompose.viewmodel.viewModel.
  • moe.tlaster.precompose.ui.LocalLifecycleOwner now moved to moe.tlaster.precompose.lifecycle.LocalLifecycleOwner.
  • ViewModelStoreOwner removed, replaced with StateHolder.
  • Disposable removed, use Kotlin's AutoCloseable instead.
  • New producePresenter in molecule integration.
  • BackHandler now accepts enabled as a parameter.
  • BackStackEntry.route is now Route instead of ComposeRoute.
  • Navigator.canGoBack is now Flow<Boolean> instead of Boolean.
  • Route.pathKeys has been removed.
  • BackDispatcher.onBackPress no longer returns Boolean.
  • New BackDispatcher.canHandleBackPress.

Dependencies

  • Compose Multiplatform 1.4.0
  • Kotlin 1.8.20
  • Molecule 0.9.0
  • AndroidX Activity 1.7.0