Split Shared Code into Modules
Scale the codebase with focused Gradle modules.
One Giant Module Hurts
A single huge shared module slows builds and blurs ownership. Splitting it into focused Gradle modules keeps the codebase fast and easy to reason about.
What a Module Buys You
Each module compiles on its own and can be cached. Touch one feature and Gradle rebuilds only that module, not the entire shared codebase.
All lessons in this course
- Layered Architecture for KMP
- Use Cases & Domain Boundaries
- Split Shared Code into Modules
- Decide What Stays Native