Is there a usecase for kotlin native outside of in...
# kotlin-native
s
Is there a usecase for kotlin native outside of interaction with C etc
s
It’s great for sharing logic between platforms when used with the Multiplatform Gradle plugin. I’m currently developing an app simultaneously for Android and iOS that will share a common logic layer. The UI on iOS is still written in Swift since the tooling is better. However the swift code is mostly just a thin layer interacting with a framework that has all of the app smarts.
o
Generally Kotlin/Native is compatible with other Kotlin flavours, so it could be used as a language for multiple ecosystems programming. Also K/N got strict concurrency model, so it could used to write provable correct concurrent code
a
We've converted our educational games written in Android/Java to Kotlin, and then published on iOS using Kotlin-native. It made 80% of the code re-usable, and thus easier to maintain too. The project is detailed in a series of blog posts here: https://medium.com/@anaredmond/cross-platform-game-1-of-afbb8b16c3f7
👍 2