Re:From zero to 10M lines of Kotlin
by ohgodplsno on Wednesday October 26, 2022 @05:08AM
(#33341337)
Swagger + OpenAPI generates data classes for you, and maybe a Retrofit/Ktor/Whatever interface. It does not handle repositories, data fetching, caching and combining, it does not handle a SQLite database.
Which dependencies ? If you already have Android devs, on the iOS side it adds a single swift package, and similarly so on Android.
Re:From zero to 10M lines of Kotlin
by andrekandre on Wednesday October 26, 2022 @11:37AM
(#33345348)
> It does not handle repositories, data fetching, caching and combining, it does not handle a SQLite database.
right, but you can use that to autogenerate all those things (have done it before in very
large e-commerce app for several platforms/apps) with a few additional tools and have it all automated (especially useful when api definitions change because now you dont need to manually update everything by hand) > Which dependencies ? If you already have Android devs, on the iOS side it adds a single swift package, and similarly so on Android.
for ios, its including basically the whole kotlin runtime and additional support (kotlinx-datetime, etc) in that single package (xcframework), then add a lot of data classes and things start to add up... for us its the biggest single dependency by far
adding kotlin native adds huge depenencies relative to the tiny benefit of a datamodel that can be auto generated to native code imo