From d55962dd5eaa3fc6a441bcc49c604fc132b86dfa Mon Sep 17 00:00:00 2001 From: Nikita Lipsky Date: Thu, 20 Jul 2023 15:16:34 +0300 Subject: [PATCH] Add commonTest source set (#3378) - for GameControllerTest to be able to run + add linker options for ability to run it on iOS simulator --- examples/minesweeper/shared/build.gradle.kts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/examples/minesweeper/shared/build.gradle.kts b/examples/minesweeper/shared/build.gradle.kts index 8e6466ca57..1c97c2dd07 100644 --- a/examples/minesweeper/shared/build.gradle.kts +++ b/examples/minesweeper/shared/build.gradle.kts @@ -15,7 +15,16 @@ kotlin { jvm("desktop") ios() - iosSimulatorArm64() + iosSimulatorArm64() { + // TODO: remove after 1.5 release + binaries.forEach { + it.freeCompilerArgs += listOf( + "-linker-option", "-framework", "-linker-option", "Metal", + "-linker-option", "-framework", "-linker-option", "CoreText", + "-linker-option", "-framework", "-linker-option", "CoreGraphics", + ) + } + } js(IR) { browser() @@ -59,6 +68,12 @@ kotlin { implementation(compose.components.resources) } } + val commonTest by getting { + dependencies { + implementation(kotlin("test")) + implementation(kotlin("test-annotations-common")) + } + } val androidMain by getting { dependencies { api("androidx.activity:activity-compose:1.6.1")