Skip to content

Kotlin Multi-Platform (KMP) Compose Example Projects. Focused on all platforms (Android/iOS/Desktop/Web/Server)

License

Notifications You must be signed in to change notification settings

TouhidApps/KMP-Compose-Examples

Repository files navigation

KMP Compose Examples

Kotlin Multi-Platform (KMP) Compose Example Projects. Focused on all platforms (Android/iOS/Desktop/Web/Server)

* Environment setup check (Mac terminal)

Install kdoctor : brew install kdoctor Run kdoctor : kdoctor

[If everything okay it will show check mark for each necessary items, if not okay install/fix it first]

* Run command (Android studio terminal):

Android: Run from android studio run button.

iOS: Run from android studio run button and if error shows, set execution target simulator device from run/debug configuration.

Desktop (Use terminal): ./gradlew :composeApp:run

Web (Use terminal): ./gradlew wasmJsBrowserRun

Server: Project -> server -> src -> pkg name -> Application.kt -> run main function.

Basic KMP project with all platforms -> Documented to run in all platforms

WebView KMP project for Android & iOS.

Features: Load from web, Load from local/offline html, Progress bar, Back/forward, Interceptor (To track url request)

MOKO MVVM Library project for Android & iOS.

Features: MVVM implementation. BMI calculation.

Covered topics:

  1. Shared Image
  2. Shared String
  3. Localisation

Covered topic:

  1. Koin for Dependency Injection (DI)

Covered topic:

  1. ViewModel with Koin DI

Covered topic:

  1. Navigation Drawer Menu
  2. Alert dialog
  3. Pager & Tab
  4. Compose Navigation
  5. Bottom Bar
  6. Bottom Sheet

Navigation Navigation Video

About

Kotlin Multi-Platform (KMP) Compose Example Projects. Focused on all platforms (Android/iOS/Desktop/Web/Server)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published