Introducing Kotlin Multiplatform in an existing mobile app - Workshop Edition

14 March 2024  ·  Appdevcon


After discovering a new interesting technology or framework, you will probably start asking yourself how to integrate it into an existing project. That's because, the possibility of starting with a blank canvas is rare (not impossible, but rare).

This is also the case for Kotlin Multiplatform, which is getting more and more hype every day. And now, that the technology has become stable, it's the perfect time to start using it! In this hands-on session, we will start with an existing Android and iOS application that "lives" in separate repositories, we will extract the business logic from the Android app and share it between the two apps with a Kotlin Multiplatform library. We will also cover how to distribute the library to the existing applications. By the end of this workshop, you'll have a better understanding of what is needed to start using Kotlin Multiplatform in your existing projects.


Workshop material

The GitHub project contains a start folder with an initial workspace for the workshop:

and an end folder with two final workspaces: one that “manually” deploys the KMP library on GitHub and one that it deploys it with KMMBridge.