Does anyone know of a KSP project that works similar to Retrofit? Iโ€™m thinking of something that use...
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