Does anyone know of a KSP project that works simil...
# multiplatform
c
Does anyone know of a KSP project that works similar to Retrofit? I’m thinking of something that uses similar annotations and generates the corresponding Ktor API calls for Android and iOS
1
k
Copy code
@Query -> parameter
etc
and here isn't overtime for code generation
c
I’m working on a POC to convert my Android app to iOS. Most of the codebase is ready to be used in iOS directly, except for the Retrofit APIs. I was hoping there was something to convert those automatically, rather than rewriting them all by hand into the Ktor DSL
Alternatively, an IntelliJ feature to automatically convert Retrofit to Ktor DSL would be a great feature of the Ktor plugin
👀 1
2
k
ok, got it. I was doing it manually in the gitfox project. it had huge retrofit interface but multicursor helped me 🙂
it's good idea for plugin though 👍
💯 2
c
Is the GitHub repo’s Issues or YouTrack the place to make such a suggestion?
r
You could use Structural Search / Replacement to migrate your retrofit definitions https://www.jetbrains.com/help/idea/structural-search-and-replace.html#to_search_structurally
1
😲 1