Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jarroyoesp/kotlinmultiplatform_mvvm

Android & iOS App using MVVM pattern and LiveData on the presentation layer + Clean Arch on the common shared code.
https://github.com/jarroyoesp/kotlinmultiplatform_mvvm

android clean-architecture coroutines kotlin kotlin-multiplatform mvvm-architecture mvvm-pattern serialization

Last synced: 11 days ago
JSON representation

Android & iOS App using MVVM pattern and LiveData on the presentation layer + Clean Arch on the common shared code.

Awesome Lists containing this project

README

        

# Kotlin-Multiplatform MVVM (Android & iOS)
![kotlin-version](https://img.shields.io/badge/kotlin-1.5.30-orange)

Example of application using Kotlin Multiplatform and MVVM pattern for both platforms (Android & iOS). To achieve it the libraries used are:

- [moko-mvvm](https://github.com/icerockdev/moko-mvvm): This is a Kotlin Multiplatform library that provides architecture components of Model-View-ViewModel for UI applications. Components are lifecycle-aware on Android.
- [KTOR](https://github.com/ktorio/ktor): to make HTTP requests
- [Serialization](https://github.com/Kotlin/kotlinx.serialization): to De/Serializing JSON
- [Kodein-DI](https://github.com/Kodein-Framework/Kodein-DI): Dependency injector
- [kotlinx.coroutines](https://github.com/Kotlin/kotlinx.coroutines): Library support for Kotlin coroutines with multiplatform support
- [SQLDelight](https://github.com/cashapp/sqldelight): SQLDelight generates typesafe kotlin APIs from your SQL statements.

More detail in this post on ProAndroidDev: [here](https://proandroiddev.com/kotlin-multiplatform-mvvm-clean-architecture-f20b99f90b95)

### Unit Testing SharedCode

- Added unitTest for GitHubRepository