egyptgre.blogg.se

Kotlin ios development
Kotlin ios development













So, while we were starting a new project – it was a separate feature, it was new, it didn’t have any dependencies – so it was the ideal environment to try it out.Īnd we decided it would be good fun and, if it worked out, something that could really benefit us in future projects.

kotlin ios development kotlin ios development

What was the motivation for adopting Kotlin Multiplatform?Īs a developer, I think I am really keen to try new things, new technologies. Seweryn Plazuk, a senior iOS developer here at smartpatient, talked us through the thinking behind adopting Kotlin Multiplatform and his thoughts on how successful it has proven to be. The idea of being able to share common code, while allowing iOS and Android developers to continue using the native tools they are familiar with, was an exciting proposition for our teams, particularly given the nature of our MyTherapy app and our partner offerings. In contrast, you can share code between Server and Client, iOS, Android, Javascript, Desktop (macOS, windows, linux), webassembly etc.With the rapid development of Kotlin Multiplatform in the last couple of years, our developers were keen to use it for cross-platform projects. And despite the fact that I am focusing more on sharing code between iOS and Android, it doesn’t mean that you are limited to this. Write this business logic once and share in with multiple targets. Generally, it’s the so-called business logic.Īnd that is the problem that KMP is there to solve. Usually, it’s related to network requests, the transformation of the data fetched so that they can populate views and/or something else. Quite often while developing an app, we end up in scenarios where we have to write a lot of duplicate or similar code between the iOS and Android app.

kotlin ios development

Thanks to Kotlin native(or K/N), we are able to compile Kotlin code to native binaries, including but not restricted to iOS, meaning that we can write some code in Kotlin which can be used on both the iOS and Android app. Kotlin Multiplatform Project(or KMP from now on) is an experimental feature that allows us to write code in Kotlin and compile/transpile this codebase to multiple platforms including JVM, Android, iOS, Javascript, Desktop apps, etc. Thus, I will try to document my steps and learning in a series of posts, starting from this one. I have recently started playing around with Kotlin Multiplatform Project, and it seems quite an interesting project to me. Hi, time has come to write something about Kotlin Multiplatform Project and more specifically how to setup a project with an iOS app, an Android app and a shared library.















Kotlin ios development