From the course: Kotlin Multiplatform Development
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Multiplatform project structure - Kotlin Tutorial
From the course: Kotlin Multiplatform Development
Multiplatform project structure
- [Instructor] Now that we've looked at a bit of Kotlin Multiplatform code, we should familiarize ourselves with the project structure that makes it all possible. Let's take a look at our template and identify each location where the different code goes for each platform and for shared code segments. The template keeps all of its Kotlin code within a single module named composeApp. All of its Kotlin code lives under composeApp/source in different folders with special names. Share code always lives under a folder named Common Main. Under this folder, there's a folder for composed resources and for Kotlin code. Resources folders are used to store images, translatable strings, plurals fonts, raw files, that sort of thing. The Kotlin folder contains the actual shared code with the keywords and code references to software libraries that provide shared code implementations in Kotlin Multiplatform. In addition to the shared code folder, common Main, we'll have another folder for each…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.