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.6k stars 43 forks source link

KSP2 support #562

Open Foso opened 5 months ago

Foso commented 5 months ago

https://android-developers.googleblog.com/2023/12/ksp2-preview-kotlin-k2-standalone.html

Currently Ktorfit can not be used with KSP2 because of bugs in KSP2:

[KSP2] NullPointerException when calling hasBackingField on properties of Enum declarations [KSP2] NPE when getting annotation arguments on non-Jvm targets

Foso commented 1 month ago

The two open KSP issues are resolved, i tried it KSP2 and it worked

Foso commented 1 month ago

It's only working in Android only projects [KSP2] NullPointerException when calling hasBackingField on properties of Enum declarations is still an issue