Skip to content

ajailani4/kmp-multi-module-template

Repository files navigation

Modularization in a Kotlin Multiplatform Project

Design

This template groups all modules to be four groups: core, api, presentation-android, and presentation-ios. Each module group consists of multiple modules—or frameworks for iOS apps. For example, core group includes network module and entity module.

  • api depends on core
  • shared depends on core and api modules.
  • composeApp depends on presentation-android and shared modules.
  • iosApp depends on presentation-ios frameworks and shared module.

Note: api module wraps data and domain layers. You can also separate them into distinct modules for data and domain layers. It depends on your requirements.

image

Demo

Android

android_kmp_multimodule.mp4

iOS

ios_kmp_multimodule.mp4

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

About

Kotlin Multiplatform Multi-Module Template

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published