rickclephas / KMP-NativeCoroutines

Library to use Kotlin Coroutines from Swift code in KMP apps
MIT License
1.07k stars 32 forks source link

Support Wasm target #146

Closed rickclephas closed 9 months ago

rickclephas commented 1 year ago

Waiting for kotlinx.coroutines support. Will add support for the Wasm target such that projects with a wasm target will compile.

tylerwilson commented 11 months ago

This would be an awesome holiday present. I have some free time and would love to do some wasm experiments. :-)

rickclephas commented 11 months ago

FYI v1.0.0-ALPHA-23-kotlin-2.0.0-Beta2 adds support for projects with a wasmJs target.

tylerwilson commented 11 months ago

Very nice! Just curious, would this be usable with Kotlin 1.9.21 as well? Just curious because it seems like most of the other libraries like Compose only support 1.9.21 and wasmJs is working there too.

rickclephas commented 11 months ago

@tylerwilson yeah it will eventually work with Kotlin 1.9.21 as well. Though since this requires kotlinx.coroutines 1.8.0-RC it's only available in the pre-release version. Once we get 1.8.0 I'll merge this to the stable version.

Note: Compose also has pre-release builds with support for EAP Kotlin versions.

GuilhE commented 9 months ago

@tylerwilson yeah it will eventually work with Kotlin 1.9.21 as well. Though since this requires kotlinx.coroutines 1.8.0-RC it's only available in the pre-release version. Once we get 1.8.0 I'll merge this to the stable version.

Note: Compose also has pre-release builds with support for EAP Kotlin versions.

https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.8.0 🥳