stevdza-san / MessageBar-KMP

Compose Multiplatform UI Component used to display informative messages to the user.
https://stevdza-san.com
Apache License 2.0
54 stars 0 forks source link

Desktop Support #1

Closed JagadishaIncture closed 6 months ago

stevdza-san commented 6 months ago

Thank you for your suggestion. I'll leave this issue opened, until I add this support.

JagadishaIncture commented 6 months ago

Can't we achive Timer in Kotlin so that we can avoid platform dependency?

stevdza-san commented 6 months ago

I've just pushed a new release v1.0.1, that supports Desktop target as well. :) Yes, there's also a way to use Kotlin coroutines for that matter.

JagadishaIncture commented 6 months ago

Great Thanks

JagadishaIncture commented 6 months ago

I don't see code pushed.. it still Timer in Platform specific

stevdza-san commented 6 months ago

I didn't say I was going to use coroutines right now, I'm okay with a platform-specific implementation of Timer class. I don't see an issue with that choice. :)

JagadishaIncture commented 6 months ago

I was thinking if we remove Timer from Platform Specific impl and make write in CommanMain using Kotlin then it automaticaly support all platform including Web also.. we

stevdza-san commented 6 months ago

That's true. I'll consider that for some of the future releases.