commonMain
abstract val NamedDomainObjectContainer<KotlinSourceSet>.commonMain: NamedDomainObjectProvider<KotlinSourceSet>
Static accessor for shared kotlin Source Set between all declared targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.
Sample:
kotlin {
jvm()
iosX64()
sourceSets {
commonMain.dependencies {
// Add commonMain dependencies here
}
}
}
Content copied to clipboard
Since
1.9.20