Browse Source

Add commonTest source set (#3378)

- for GameControllerTest to be able to run
+ add linker options for ability to run it on iOS simulator
pull/3379/head
Nikita Lipsky 1 year ago committed by GitHub
parent
commit
d55962dd5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      examples/minesweeper/shared/build.gradle.kts

17
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")

Loading…
Cancel
Save