Foso / Ktorfit

HTTP client generator / KSP plugin for Kotlin Multiplatform (Android, iOS, Js, Jvm, Native, WasmJs)) using KSP and Ktor clients inspired by Retrofit https://foso.github.io/Ktorfit
https://foso.github.io/Ktorfit
Apache License 2.0
1.62k stars 43 forks source link

WasmJs Support #588

Closed eygraber closed 3 months ago

eygraber commented 6 months ago

Is your feature request related to a problem? Please describe.

It would be nice to have wasmJs support in Ktorfit

Describe the solution you'd like

It looks like ktor will support wasmJs starting from 3.0.0-beta2.

Describe alternatives you've considered

No response

Additional context

No response

Foso commented 6 months ago

Hi @eygraber , wasmJs support is planned, the problem is that i want to ship the library with latest stable of Ktor. And i can only add the wasmjs target when it would use 3.0.0-beta2.

eygraber commented 6 months ago

Have you considered making beta releases of Ktorfit? It would also probably make it easier to update to Ktor 3.0.0 once it is stable.

Foso commented 5 months ago

yes, i think i will do it that way

eygraber commented 3 months ago

Any update on this? Ktor 3.0.0-beta2 has been released.

Foso commented 3 months ago

Yes, with Ktorfit 2.0.1 you can use these dependencies for Ktor 3 https://github.com/Foso/Ktorfit?tab=readme-ov-file#ktorfit-ktor-3-packages

eygraber commented 3 months ago

Doesn't ktorfit itself have to add the wasmJs target?

Foso commented 3 months ago

It has, but only when it's published from the "ktor3" branch

eygraber commented 3 months ago

Oh I'm sorry, I read your previous message incorrectly. Thanks!