0PricingLogin
Kotlin Multiplatform Academy · Lesson

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.domain

All lessons in this course

  1. Design a Small Public API
  2. internal vs public Visibility
  3. Organize Packages Inside the Module
  4. Document the API for Both Teams
← Back to Kotlin Multiplatform Academy