Gradle, native: Add a DSL shortcut for iOS, watchsOS and tvOS

This patch adds a group of shortcut DSL methods allowing a user to
create simulator and device targets for Apple platforms along with
corresponding common source set(s) in one command. iOS, tvOS and
watchOS targets are supported.

Issue #KT-33856 fixed
This commit is contained in:
Ilya Matveev
2019-10-04 20:02:37 +07:00
parent 912690517f
commit 9ab2b928bc
39 changed files with 506 additions and 4 deletions
@@ -6,6 +6,7 @@
package org.jetbrains.kotlin.gradle.plugin
import org.gradle.api.NamedDomainObjectCollection
import org.gradle.api.NamedDomainObjectContainer
interface KotlinTargetsContainer {
val targets: NamedDomainObjectCollection<KotlinTarget>
@@ -13,4 +14,8 @@ interface KotlinTargetsContainer {
interface KotlinTargetsContainerWithPresets : KotlinTargetsContainer {
val presets: NamedDomainObjectCollection<KotlinTargetPreset<*>>
}
interface KotlinSourceSetContainer {
val sourceSets: NamedDomainObjectContainer<KotlinSourceSet>
}