Skip to content

Project using marvel card database API developed in Kotlin multiplatform for Android and iOS

License

Notifications You must be signed in to change notification settings

grojasv/Marvel_CDB_KMM

 
 

Repository files navigation

Marvel CDB KMM

Project using marvel card database API developed in Kotlin multiplatform for Android and iOS.

Target of project: test the possibilities offered by KMM.

This project is focused in the communication between KMM code in shared module and kotlin and swift code in android and iOS modules, how do the minimum code and minimum custom classes but applying the KISS principle.

API used: https://marvelcdb.com/

Libraries used:

  • 🫂shared:
    • Call services : ktor for kotlin multiplatform
    • Dependency injection: koin for kotlin multiplatform

The contact point between 🫂shared module and 🍎 iOS and 🤖 android module is the UseCase file. The UseCase class return a ResultData class, witch it is a custom Kotlin Result class to avoid the 'Any' result in Swift code, this allow simplify the process of get the result data or the error returned by the data layer

  • 🤖 Android

    • UI: Jetpack Compose ⚠️ under construction
  • 🍎 iOS

    • UI: SwiftUI ⚠️ under construction

About

Project using marvel card database API developed in Kotlin multiplatform for Android and iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 78.0%
  • Swift 22.0%