Organize Packages Inside the Module
Folder and package structure that scales.
Packages Are Folders With Names
A package groups related Kotlin files under a dotted name. Good packages make a growing shared module easy to navigate. 📁
Declare the Package
Every file starts with a package line. It should mirror the folder path so the structure stays predictable for everyone.
package com.acme.shared.domainAll lessons in this course
- Design a Small Public API
- internal vs public Visibility
- Organize Packages Inside the Module
- Document the API for Both Teams