appleMain
abstract val NamedDomainObjectContainer<KotlinSourceSet>.appleMain: NamedDomainObjectProvider<KotlinSourceSet>
Static accessor for shared kotlin Source Set between all declared Apple targets (ios, macos, watchos, tvos). 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 {
iosX64()
macosX64()
sourceSets {
appleMain.dependencies {
// Add appleMain dependencies here
}
}
}
Content copied to clipboard
Since
1.9.20