Possible integration : <https://github.com/vincegl...
# confetti
m
🎉 3
🎊 4
z
@Vincent This is very cool, I was just looking at the original Android library and wishing it was multiplatform a couple days ago! Did you try contributing / upstreaming the adaptation to multiplatform?
v
Hey! Thanks a lot! I wanted to add some confetti to an app I’m working on, so this weekend I decided to adapt Konfetti library to CMP kodee lost By working on it, I realized that I needed to drop some features to quickly be able to build the library on CMP. Here are some of the breaking changes with the original library: • I dropped the XML View support to focus only on the Compose part • I removed the support for custom shapes (Shape.DrawableShape) • I changed the signature of Emitter to declare the duration with kotlinx-datetime Duration (because java.util.concurrent.TimeUnit is not available on all the platforms) My first intention was just to make it work. Now, I’ll see if it’s possible to merge this work into the original one without breaking too many things 😅
👍 2