I'm currently building a project with Compose Multiplatform, and I'm wondering to make this project structured with multi-module clean architecture.
Here's my current modules:
I'm looking for adding :core
module in :composeApp
module.
But it seems no option for Compose Multiplatform regular module (yet)
How can I create module similar to :commonMain
? Besides, I don't found any include(':moduleName')
in settings.gradle
commonMain
isn't a module, it is a source set in your:composeApp
module. This is where you write your Kotlin code without access to Java standard libraries.If you want to create another KMM module, you should use the last option in your template
Kotlin Multiplatform Shared Module
. This will create a separate kmm gradle module which will also havecommonMain
inside of it.