https://github.com/razaghimahdi/kmmexample01
My First sample Kmm App
https://github.com/razaghimahdi/kmmexample01
android compose coroutines ktor mvi mvi-android mvi-architecture mvi-clean-architecture mvi-coroutines-flow mvi-coroutines-flow-kotlin sqldelight
Last synced: 3 months ago
JSON representation
My First sample Kmm App
- Host: GitHub
- URL: https://github.com/razaghimahdi/kmmexample01
- Owner: razaghimahdi
- License: gpl-3.0
- Created: 2021-08-18T07:38:05.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-25T16:10:40.000Z (over 3 years ago)
- Last Synced: 2025-01-01T20:24:48.381Z (5 months ago)
- Topics: android, compose, coroutines, ktor, mvi, mvi-android, mvi-architecture, mvi-clean-architecture, mvi-coroutines-flow, mvi-coroutines-flow-kotlin, sqldelight
- Language: Kotlin
- Homepage:
- Size: 321 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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