Kotlin#
Application_Development#
Android#
iOS#
APIs#
KMM#
Swift#
Objective-C#
Java#
React_Native#
Flutter#
SDK#
C++#
Explore the new Kotlin Multiplatform to build native apps for Android and iOS while sharing business logic between apps
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.
This book is for native Android and iOS developers who want to build high-quality apps using an efficient development process. Knowledge of the framework and the languages used is necessary, that is, Android with Java or Kotlin and iOS with Objective-C or Swift. For Swift developers, the book assumes no knowledge of Kotlin as this will be covered in the context of Swift.
Table of Contents
1. The Battle Between Native, Cross-Platform, and Multiplatform
2. Exploring the Three Compilers of Katlin Multiplatform
3. Introducing Katlin for Swift Developers
4. Introducing the KMM Learning Project
5. Writing Shared Code
6. Writing the Android Consumer App
7. Writing an iOS Consumer App
8. Exploring Tips and Best Practices
9. Integrating KMM into Existing Android and iOS Apps
10. Summary and Your Next Steps