HTTP client generator / KSP plugin for Kotlin Multiplatform (Android, iOS, Js, Jvm, Native) using KSP and Ktor clients inspired by Retrofit https://foso.github.io/Ktorfit
Ktorfit is a HTTP client/Kotlin Symbol Processor for Kotlin Multiplatform ( Android, iOS, Js, Jvm, Linux) using KSP and Ktor clients inspired by Retrofit
Please see the documentation at https://foso.github.io/Ktorfit/
See https://foso.github.io/Ktorfit/#compatibility
build.gradle.kts:
plugins {
id("de.jensklingenberg.ktorfit") version "1.12.0"
}
build.gradle
plugins {
id("de.jensklingenberg.ktorfit") version "1.12.0"
}
KSP:
de.jensklingenberg.ktorfit:ktorfit-ksp:1.12.0
Ktorfit-lib/-light:
implementation("de.jensklingenberg.ktorfit:ktorfit-lib:1.12.0")
or
implementation("de.jensklingenberg.ktorfit:ktorfit-lib-light:1.12.0")
compiler plugin - module with source for the compiler plugin
ktorfit-annotations - module with annotations for the Ktorfit
ktorfit-ksp - module with source for the KSP plugin
ktorfit-lib-core - module with source for the Ktorfit lib
ktorfit-lib - ktorfit-lib-core + dependencies on platform specific clients
sandbox - experimental test module to try various stuff
example - contains example projects that use Ktorfit
docs - contains the source for the GitHub page
Feel free to send feedback on Twitter or file an issue. Feature requests/Pull Requests are always welcome.
Some parts of this project are reusing ideas that are originally coming from Retrofit from Square. Thank you for Retrofit!
Thanks to JetBrains for Ktor and Kotlin!
Ktorfit is brought to you by these contributors.
This project is licensed under the Apache License, Version 2.0 - see the LICENSE.md file for details