
If you are new to Android development, check out our Android Tutorial for Beginners series first. Note: This tutorial assumes you are familiar with the basics of Android and Android Studio. Use a recent version of Kotlin - 1.4.20 or above. Open the starter project in Android Studio 4.1 or later. Ready to get started? Keep reading! Getting Startedĭownload the starter project by clicking the Download Materials button at the top or bottom of the tutorial.

These similarities are why Kotlin Multiplatform Mobile (KMM) exists. While these two platforms are different, the business logic behind your app is probably similar: download files, read from and write to a database, send messages to a remote host, and retrieve and display fancy kitten pictures. Dario Coletto wrote the original.Īre you a bit tired of writing two versions of similar code for Android and iOS? To get Kotlin compiled for iOS, a KMM project needs to be created in Android Studio 4.Update note: JB Lorenzo updated this tutorial for the alpha version of Kotlin Multiplatform.

The app quality is not affected because UI uses native components, and the business logic is compiled into a native library. Touchlab advertises itself as the subject’s expert, and has created their own Kotlin libraries for missing support. Mobile dev housesĬompanies working for clients can cut development costs without sacrificing app quality or performance. Netflix saved duplication of 50% of their codebase, because Kotlin libraries can handle both the network and database operations. Kotlin can be recommended for: Bigger projects with more resourcesįor a shared business logic that can be implemented with currently available Kotlin libraries, migrating to KMM can be a good idea. Since KMM is in the early stages, with relatively steep learning curve and bugs, lacking community and library support, Flutter or React Native might be suggested for smaller teams and simpler apps.
