Skip to content

razaghimahdi/KMMExample01

Repository files navigation

KMMExample01

Developed By Mahdi Razzaghi Ghaleh

Thanks to codingwithmitch

First sample of Kmm App

What is KMM?

Allows you to write code once and use on multiple platforms such as Android and iOS. It reduces testing effort. Has a less maintenance headache, as modification comes easy and fast. It’s using Kotlin and that is statically typed language and gives benefit of native programming language. For Android engineers nothing really changes and for iOS project we just import a framework just like any Swift based framework. If you plan appropriately development time can be reduced to 30–40% for iOS where they only have to write UI layer for it.

How KMM works?

Shared code, iOS native code and Android native code

Shared Code: Shared code will have common implementation of the business logic around network calls and other core utility type of functions(Ktor, SQL-Delight,...). So after building up Shared Code then we need to make UI for different platform

Thing we used in this project:

  • Jectpack Compose
  • Ktor
  • SqlDelight
  • Coil
  • Dagger Hilt

some Ideas:

https://proandroiddev.com/kmm-quickstart-guide-7598527a2ab9 https://medium.com/globant/kotlin-multiplatform-mobile-kmm-code-sharing-between-android-and-ios-9a9af66e2655