mbbad.blogg.se

Kotlin ios app
Kotlin ios app









kotlin ios app

Moving existing logic to Kotlin Multiplatform The first KMP integration was done o Android, and then I got it working on iOS.Īfter these steps, I had a working bare-bones Kotlin Multiplatform app which shares some code with both platforms.The next step was copying over the playground KMP module and the iOS project into the Timi codebase.In the Timi codebase, I did some gradle related clean up to make Kotlin Multiplatform integration easier (replaced Groovy with Kotlin DSL and added refreshVersions for dependency version management).I used this class on both Android and iOS to see if everything works. I removed everything I didn't need and added a simple class resembling one feature of Timi (A stopwatch). My first step was creating a new playground project based on the KaMPKit starter.Adding Kotlin Multiplatform and iOS to the codebase

kotlin ios app

The modularization used for this project is explained more in-depth in my Modularizing a Kotlin Multiplatform Mobile Project. If you're interested in the commits of this process, they're available in the GitHub repository (starting from the 2022 commits). In this article, I'll share my experience making a Kotlin Multiplatform app from an Android only codebase. Working on a smaller project also allows for more experiments, in this project I'll try to share as much code as possible, and see how that integrates on both mobile platforms. This time my focus is on learning the iOS side of Kotlin Multiplatform, I'm hoping that this experience will help me better understand my colleagues on the other platform. Recently I reactivated my old project Timi which I used to learn Compose.











Kotlin ios app