

The shared business logic code for Android gets converted to Java bytecode that can be executed in JVM and Android has the virtual machine, so it can easily run it. Kotlin for iOS, Android, and other popular operating systems allows you to store the reusable pieces of code for two or more app versions. The Kotlin Multiplatform allows you to include other platforms like Linux, Windows, and the web ( JavaScript), while its subset Kotlin multiplatform mobile allows the developers to write business logic code for iOS and Android from a single codebase. It reduces time spent on writing and maintaining the same code for different platforms. Kotlin multiplatform programming enables developers to solve the problem of platform-specific dependencies. It is based on the idea of the ‘Write Once Run Anywhere’ approach, but it takes the concept of Write Once Run Anywhere to a much higher level, in which you can write the code once and target multiple platforms. This feature allows you to write the same code on multiple platforms directly, it focuses on cross-platform app development. Kotlin multiplatform is a feature released in 2017 with Kotlin 1.2.
