Book Image

Simplifying Application Development with Kotlin Multiplatform Mobile

By : Róbert Nagy
Book Image

Simplifying Application Development with Kotlin Multiplatform Mobile

By: Róbert Nagy

Overview of this book

Sharing code between platforms can help developers gain a competitive edge, and Kotlin Multiplatform Mobile (KMM) offers a sensible way to do it. KMM helps mobile teams share code between Android and iOS in a flexible way, leaving room for native development. The book begins by helping you to gain a clear understanding of the Kotlin Multiplatform approach, how it works, and how it is different from cross-platform technologies, such as React Native and Flutter, and code sharing options, such as C++. You'll then see how your team can use this software development kit (SDK) to build native applications more effectively by learning timeless concepts and working through practical examples. As you advance, you'll get to grips with the core concepts, understand why UI sharing fails, and get hands-on with developing a small KMM application. Finally, you'll discover expert tips and best practices, along with production- and adoption-related questions, that will help you take the next step in your project and career. By the end of this Kotlin book, you'll have gained a solid understanding of the capabilities of KMM and be able to share code between Android and iOS flexibly.
Table of Contents (15 chapters)
1
Section 1 - Getting Started with Multiplatform Mobile Development Using Kotlin
5
Section 2 - Code Sharing between Android and iOS
10
Section 3 - Supercharging Yourself for the Next Steps

What this book covers

Chapter 1, The Battle Between Native, Cross-Platform, and Multiplatform, compares the available cross-platform frameworks with native frameworks and introduces Kotlin Multiplatform.

Chapter 2, Exploring the Three Compilers of Kotlin Multiplatform, describes the architecture of Kotlin Multiplatform and how it solves code sharing between different platforms.

Chapter 3, Introducing Kotlin for Swift Developers, provides a brief introduction to Kotlin, to bring everyone up to speed before the learning project.

Chapter 4, Introducing the KMM Learning Project, describes the learning project and its prerequisites.

Chapter 5, Writing Shared Code, gives you practical advice on writing shared code with Kotlin Multiplatform.

Chapter 6, Writing the Android Consumer App, explains how the shared code written previously can be consumed on Android.

Chapter 7, Writing an iOS Consumer App, explains how the shared code written previously can be consumed on iOS.

Chapter 8, Exploring Tips and Best Practices, dives deeper into the current state of the art of writing shared code with Kotlin Multiplatform.

Chapter 9, Integrating KMM into Existing Android and iOS Apps, provides tips and answers to possible questions regarding the integration of KMM into existing production apps.

Chapter 10, Summary and Your Next Steps, points you in the next direction in terms of consolidating your KMM knowledge.