0Pricing
Kotlin Multiplatform Academy · Lesson

Tour of the Generated Folders

What each module and directory in the template is for.

Tour of the Generated Folders is a free Kotlin Multiplatform Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Kotlin Multiplatform Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Know Where Things Live

The template looks busy at first. Once you learn what each folder is for, you will always know where your code belongs. 🗺️

The shared Module

The shared module is the heart of KMP. The Kotlin you write here is reused by both the Android and iOS apps.

commonMain

Inside shared, commonMain holds platform-independent Kotlin. Code here must compile for every target you chose.

androidMain

androidMain is for shared code that needs Android-only APIs. It is your place for platform-specific actual implementations.

iosMain

iosMain mirrors androidMain for the Apple side. It holds Kotlin that touches iOS-only frameworks and platform details.

The Android App Module

The androidApp module is a normal Android project. It depends on the shared module and contains the Android UI and entry point.

The iOS App Folder

The iosApp folder is an Xcode project. You open it in Xcode, and it links the framework built from your shared module.

Gradle Files

The build.gradle.kts files configure each module. The shared one declares your targets and dependencies, so you will edit it often.

settings.gradle.kts

settings.gradle.kts lists which modules belong to the build. It is how Gradle knows shared and androidApp are part of one project.

gradle.properties

gradle.properties holds project-wide flags, like JVM memory and KMP options. Small tweaks here affect the whole build.

A Mental Map

Shared code goes in the shared module, platform UI lives in the app modules, and Gradle files glue it all together. That map carries you far.

Quick Check

Where should you put Kotlin code that must work on every target?

Recap

You toured the layout: the shared module with commonMain, androidMain and iosMain, the two app modules, and the Gradle files that bind them. ✅

Frequently asked questions

Is the “Tour of the Generated Folders” lesson free?

Yes — the full text of “Tour of the Generated Folders” is free to read here on the web, and the Kotlin Multiplatform Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Kotlin Multiplatform Academy course, upgrade to CoddyKit PRO.

What will I learn in “Tour of the Generated Folders”?

What each module and directory in the template is for. You practise Kotlin Multiplatform Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Kotlin Multiplatform Academy?

No prior experience is required. Kotlin Multiplatform Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Tour of the Generated Folders” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Kotlin Multiplatform Academy lesson?

Yes. Every Kotlin Multiplatform Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. JDK, Android Studio & the KMP Plugin
  2. Xcode & CocoaPods for the iOS Side
  3. Generate a Project with the KMP Wizard
  4. Tour of the Generated Folders
← Back to Kotlin Multiplatform Academy