Android and iOS application having shared code for API, data, and, business logic using Kotlin Multiplatform Mobile. API used for data is provided by COVID19-India API.
CovidStatsIn has platform specific ViewModel and UI, everything remains is shared. An ideal target can be sharing everything except UI.
Shared Code (MultiplatformLibrary)
- API client (Ktor)
- Database (SQLDelight)
- Repository and Usecases
- ViewModel
- UI (Jetpack Compose and SwiftUI)
Platform | Screen 1 | Screen 2 | Screen 3 | Screen 4 |
---|---|---|---|---|
Android | ![]() |
![]() |
![]() |
![]() |
iOS | ![]() |
![]() |
![]() |
![]() |
- Sharing ViewModel. One way to share ViewModel is using D-KMP
- Shared Error Handling Mechanism.
- Unit Test Cases for shared module.
All the contributions are welcomed.