Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use KMP androidx lifecycle #157

Open
b95505017 opened this issue Feb 23, 2024 · 9 comments
Open

Use KMP androidx lifecycle #157

b95505017 opened this issue Feb 23, 2024 · 9 comments
Labels
backlog The task is postponed enhancement New feature or request

Comments

@b95505017
Copy link

It looks like androidx lifecycle supports KMP now.
https://developer.android.com/jetpack/androidx/releases/lifecycle#2.8.0-alpha02

The core Lifecycle APIs in Lifecycle, LifecycleOwner, LifecycleObserver, Lifecycle.State, Lifecycle.Event, and LifecycleRegistry are now shipped in artifacts compatible with Kotlin Multiplatform.

@arkivanov
Copy link
Owner

arkivanov commented Feb 23, 2024

We need to wait until all targets are supported. Also I need check some details like how it will work with Decompose. And what are the actual benefits compared to the current solution. Might not get to the 2.0 release.

@arkivanov arkivanov added the enhancement New feature or request label Feb 23, 2024
@b95505017
Copy link
Author

Sure. Maybe related to this discussion: JetBrains/compose-multiplatform-core#1043

@arkivanov
Copy link
Owner

We'll also need to wait for an official announcement, and appearance in the Multiplatform Jetpack libraries list.

@arkivanov arkivanov added the backlog The task is postponed label Mar 23, 2024
@b95505017
Copy link
Author

It seems that the page you mentioned lacks of maintenance. KMP libraries such as Paging, Lifecycle, ViewModel aren't listed.

@arkivanov
Copy link
Owner

I've checked with folks already, the page is up to date. I think those libraries are intentionally not listed yet.

@PMARZV
Copy link

PMARZV commented Mar 23, 2024

any guesses why??

@arkivanov
Copy link
Owner

Nope. I think we just need to wait.

@arkivanov
Copy link
Owner

arkivanov commented Apr 17, 2024

The KMP version of AndroidX Lifecycle with additional targets is now published by JetBrains. However, some targets required by Essenty are still not supported. Currently missing targets are: watchos and tvos.

Filed: JetBrains/compose-multiplatform#4645.

@arkivanov
Copy link
Owner

arkivanov commented Apr 19, 2024

All required targets are now supported in the KMP version of AndroidX Lifecycle. Will try soon-ish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog The task is postponed enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants