Skip to content

Latest commit

History

History
28 lines (19 loc) 路 1.38 KB

File metadata and controls

28 lines (19 loc) 路 1.38 KB

AndroidToKMP

This is a sample project to demonstrate how to convert an existing Android project to a Kotlin Multiplatform project.

Android iOS
Branch main kmp_ios
DI 馃煝 Koin 馃煝 Koin
Presentation layer 馃煝 ViewModel 馃煝 ViewModel
Domain layer 馃煝 Coroutines 馃煝 Coroutines
Data layer 馃煝 DataStore
馃煛 Gson
馃煛 OkHttp
馃煛 Retrofit
馃煝 DataStore
馃煛 KotlinxSerialization
馃煛 Ktor
馃煛 Ktorfit

馃煝 - Migration was KMP friendly, without significant changes.
馃煛 - Migration to another library was needed.

UI is not shared and implemented natively, XML is for Android, and SwiftUI is for iOS.

This project showcases the scenario for migration when an Android app may have a lot of XML UI and full migration to Compose may not be an option.

In such a scenario, migration to KMP can still be beneficial as it allows for the sharing of a significant part of logic at a low cost.

Android iOS

To see the step by step migration flow to KMP go throug commits history:

Commits