Reading the shared build.gradle.kts
Decode the kotlin{} block and target declarations.
The Module's Recipe
The shared build.gradle.kts is the recipe for your module: which targets to build and which libraries to pull in.
Plugins Come First
At the top, the plugins block turns on multiplatform support. Without it, Kotlin has no idea about targets.
plugins {
kotlin("multiplatform")
id("com.android.library")
}All lessons in this course
- The shared Module vs the App Modules
- commonMain, androidMain & iosMain
- Reading the shared build.gradle.kts
- Where Tests Live: commonTest & Friends