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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Kotlin Multiplatform: Android/iOS/JS #323

Open
mkpazon opened this issue Jan 3, 2024 · 4 comments
Open

Support for Kotlin Multiplatform: Android/iOS/JS #323

mkpazon opened this issue Jan 3, 2024 · 4 comments

Comments

@mkpazon
Copy link

mkpazon commented Jan 3, 2024

No description provided.

@mkpazon mkpazon changed the title Any plans to support Kotlin Multiplatform? Android/iOS/JS Support for Kotlin Multiplatform: Android/iOS/JS Jan 3, 2024
@creativedrewy
Copy link

Curious, has anyone assessed the effort involved in this?

@DanielMartinus
Copy link
Owner

Multiplatform support should be possible. I already started an effort to support Desktop compose by moving out any Android references from the core module #321

I've successfully built a desktop compose app using the new core module and implementing a wrapper for KonfettiView and DrawShapes using that core module.

If you want to play with it, all you need to do is import the new core module that I made available as a beta: implementation("nl.dionsegijn:konfetti-core:2.1.0-beta01")

It's basically a copy of what's inside the xml or compose module here but then using the api's of that platform.

@bmilovanovic
Copy link

Any timeline on the support for Compose Multiplatform? Is there a way we could help?

@nilsjr
Copy link

nilsjr commented Jun 16, 2024

Hey @DanielMartinus,
I like your library a lot. Great idea! We used it already 3-4 years ago in some production apps. As now compose multiplatform is official supported by google, I started yesterday to migrate Konfetti to kmp. As you already wrote desktop was a fast one and I think ios & wasm should now be also possible.

Here is my fork:
https://github.com/nilsjr/Konfetti/tree/feature/kmp

Maybe we can find some synergies with your approach.

Current state: Work in progress but tests & all samples are running :D

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

No branches or pull requests

5 participants