Skip to content

Demo application implementing a simple counter using Kotlin Compose Multiplatform, it targets mobile (Android), desktop (Linux) and Web (using Compose Web).

License

Notifications You must be signed in to change notification settings

fcuringa/Compose-Multiplatform-Demo

Repository files navigation

Compose Multiplatform Demo Application - Android, Desktop, Web

Android Desktop Web
home home home

This is a demo application implementing a simple counter using Kotlin Compose Multiplatform, it targets mobile (Android), desktop (Linux) and Web (using Compose Web).

Architecture

The architecture of the project follows Clean Architecture and MVVM. Dependency injection is made using kodein-di.

The structure of the project is as follows:

  • common: contains the domain, data, use cases and the common presentation layer (in this case, view models). Also includes the DI module to provide the View Models.
  • android: depends on common, implements the Android framework-dependent elements (in this case, the Main Activity) and Android UI.
  • desktop: depends on common, implements the Linux Desktop UI.
  • web: depends on common, implements the web UI using Compose web.

Each platform (Android, Linux, Web) implements its own UI presentation, the view model is shared. All UIs are implemented using Compose, on all platforms.

Sources that were used for this project:

About

Demo application implementing a simple counter using Kotlin Compose Multiplatform, it targets mobile (Android), desktop (Linux) and Web (using Compose Web).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published