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

KMM support? #273

Open
uberchilly opened this issue Apr 13, 2023 · 2 comments
Open

KMM support? #273

uberchilly opened this issue Apr 13, 2023 · 2 comments

Comments

@uberchilly
Copy link

Hello @Zhuinden, is there a plan to add support for KMM given recent news about jetpack compose being supported by KMM now and simple-stack already supporting compose-only navigation it would be kind of interesting to have full circle simple-stack for navigation and DI via scoped services?

@Zhuinden
Copy link
Owner

Hello, technically it would have to be a separate KMP-first Kotlin port of simple-stack, while removing some limiting features (see backstack.persistViewToState() and anything that directly depends on Parcelable).

Objectively I do have interest in this (the KMP landscape basically has Decompose as a navigation framework + the attempts in https://github.com/dbaroncelli/D-KMP-sample ) as there's clearly an opening, but I have no idea when I'd find the time to work on that atm.

What I'm sure about though is that if I were to create one, it'd have to be on MavenCentral, so I guess I'll have to figure out how to set up those PGP keys and whatnot. They do have a guide for that here though https://kotlinlang.org/docs/multiplatform-publish-lib.html#structure-of-publications .

But I agree, it'd be really cool. 😁

@matejdro
Copy link

matejdro commented Apr 17, 2023

I think Parcelable can be solved fairly simply by using expect..actual methods of the KMP (where parcelation on the non-Android platform would presumably just be no-op).

I guess the biggest hurdle here is actually rewriting the library in Kotlin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants