24 Introduction to Kotlin Multiplatform
Throughout this book, your Kotlin code has executed in the JVM. The Android runtime is built on top of the JVM, so your code could also execute on Android phones and tablets.
Many developers use Kotlin/JVM, but that is not the only way to use the language. We have mentioned several times that Kotlin is a multiplatform language. In addition to supporting the JVM, Kotlin can also target native platforms like macOS (without running inside the JVM), iOS, and the web (via JavaScript).
If you are an experienced developer, when you think of cross-platform frameworks you may think of tools like React Native, Flutter, and Xamarin. They all have one thing in common: A single codebase is supposed ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access