From 3fe5601a70b944f4fd6fbe4ca6aae516f67ad8d6 Mon Sep 17 00:00:00 2001 From: Anton Lakotka Date: Tue, 4 Oct 2022 17:44:44 +0200 Subject: [PATCH] [Gradle] Add watchosDeviceArm64 target preset Generate via `generateMppTargetContainerWithPresets` ^KT-53107 Verification Pending --- .../KotlinTargetContainerWithPresetFunctions.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 = { }