I am a beginner in KMP. Can I have a KMP module with multiple sub-modules within a non-completely modular KMP app ? Please share some github samples or resources where I can check the code structure and implementations. Thanks!
Also would it be a good idea ? I am not sure of the hurdles I can face while development as of now, like accessing material theme from the main app etc..
g
Gabriel Bronzatti Moro
02/18/2025, 10:51 AM
Can I have a KMP module with multiple sub-modules within a non-completely modular KMP app ?
Yep, it is possible. As far as I know, you only need to load the jetbrains compose multiplatform plugin
org.jetbrains.kotlin.multiplatform
. If you take a look at this sample, we have a conventional plugin called
kmp-library-plugin.gradle.kts
. This plugin when applied makes the module multiplatform.