diff --git a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinTargetContainerWithPresetFunctions.kt b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinTargetContainerWithPresetFunctions.kt index 8ce5a1952b9..fd863ef2b01 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinTargetContainerWithPresetFunctions.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinTargetContainerWithPresetFunctions.kt @@ -242,6 +242,21 @@ interface KotlinTargetContainerWithPresetFunctions : KotlinTargetsContainerWithP fun watchosSimulatorArm64(name: String, configure: Action) = watchosSimulatorArm64(name) { configure.execute(this) } fun watchosSimulatorArm64(configure: Action) = watchosSimulatorArm64 { configure.execute(this) } + fun watchosDeviceArm64( + name: String = "watchosDeviceArm64", + configure: KotlinNativeTargetWithSimulatorTests.() -> Unit = { } + ): KotlinNativeTargetWithSimulatorTests = + configureOrCreate( + name, + presets.getByName("watchosDeviceArm64") as KotlinNativeTargetWithSimulatorTestsPreset, + configure + ) + + fun watchosDeviceArm64() = watchosDeviceArm64("watchosDeviceArm64") { } + fun watchosDeviceArm64(name: String) = watchosDeviceArm64(name) { } + fun watchosDeviceArm64(name: String, configure: Action) = watchosDeviceArm64(name) { configure.execute(this) } + fun watchosDeviceArm64(configure: Action) = watchosDeviceArm64 { configure.execute(this) } + fun tvosArm64( name: String = "tvosArm64", configure: KotlinNativeTarget.() -> Unit = { }