From f5d9819c3fc16d97f24302be8b4bd814d026f33f Mon Sep 17 00:00:00 2001 From: Anton Lakotka Date: Thu, 20 Oct 2022 10:27:25 +0200 Subject: [PATCH] [Gradle] Update watchosDeviceArm64 target preset ^KT-54583 Verification Pending --- .../dsl/KotlinTargetContainerWithPresetFunctions.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 fd863ef2b01..f28030adcf8 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 @@ -244,18 +244,18 @@ interface KotlinTargetContainerWithPresetFunctions : KotlinTargetsContainerWithP fun watchosDeviceArm64( name: String = "watchosDeviceArm64", - configure: KotlinNativeTargetWithSimulatorTests.() -> Unit = { } - ): KotlinNativeTargetWithSimulatorTests = + configure: KotlinNativeTarget.() -> Unit = { } + ): KotlinNativeTarget = configureOrCreate( name, - presets.getByName("watchosDeviceArm64") as KotlinNativeTargetWithSimulatorTestsPreset, + presets.getByName("watchosDeviceArm64") as KotlinNativeTargetPreset, 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 watchosDeviceArm64(name: String, configure: Action) = watchosDeviceArm64(name) { configure.execute(this) } + fun watchosDeviceArm64(configure: Action) = watchosDeviceArm64 { configure.execute(this) } fun tvosArm64( name: String = "tvosArm64",