sigmadelta
12/26/2022, 10:15 PMid("application") plugin.
When doing this however, I somehow can’t seem to get a reference to the commonMain module inside of the Multiplatform project. Is this scenario supported or should I also consider adding another separate common module to be shared between the 2?sigmadelta
12/26/2022, 10:25 PMcommon module to act as a shared repo between the separate backend module and the Kotlin Multiplatform module.
But for future reference it could be interesting to expose the commonMain module, or ideally even just allow multiple instances of a type inside the Multiplatform setup 😉 .Dima Avdeev
12/27/2022, 10:51 AMburnoo
12/27/2022, 1:05 PM./src) to the dedicated submodule (e.g. ./desktopApp/src). Having code in a root project is great for single-module apps, but for multi-modules ones it’s common to keep all code in submodules.
Examples (from compose-jb): single module (root) project, multi-module project
Creating shared module (:common or :shared) sounds like a good idea, you can use it in :backend and :desktopApp modules.sigmadelta
12/27/2022, 8:24 PM/src : Multi-platform setup consisting purely of code specific to front-end clients (viewModels, Compose, client HTTP handling & persistence, etc…)
`:common`: Domain models & core business logic
`:backend`: Services & data layer