KmpGithubMVVM icon indicating copy to clipboard operation
KmpGithubMVVM copied to clipboard

Kotlin Multiplatform MVVM sample app for Android and iOS

Kotlin Multiplatform Sample

Android CI

  • Implements Android and iOS targets
  • Uses MVVM Design pattern (Lifecycle Arch component and LiveData on Android, SwiftUI and Combine on iOS)
  • Shares Models and Repository layer
  • Uses Ktor Http client library for making remote calls
  • Uses SqlDelight library for local data persistence for both Android and iOS
  • Uses Cocoapods plugin for building iOS targets. For cocoapods setup instructions, see this readme

Screenshots

Android iOS
android ios

Installation

Run gradlew build from the root of the project. After a successful build, you should be able to install the app on both Android and iOS.

If you are unable to run the project in Xcode, you may need to add -lsqlite3 to Other Linker Flags as mentioned here

Next Steps

Check out KaMPKit for more examples as well as unit tests.