Browse Source

[gradle] Don't create Kotlin binary's linkTask eagerly (#4707)

It's better for the build performance, and it avoids uncovering the
hidden CocoaPods plugin bug
([KT-67666](https://youtrack.jetbrains.com/issue/KT-67666))

Fixes https://github.com/JetBrains/compose-multiplatform/issues/4632
pull/4730/head v1.6.10-dev1608
Artem Daugel-Dauge 7 months ago committed by GitHub
parent
commit
717f4f0e13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/IosResources.kt
  2. 9
      gradle-plugins/compose/src/test/test-projects/misc/iosResources/build.gradle.kts

2
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/IosResources.kt

@ -73,7 +73,7 @@ internal fun Project.configureSyncIosComposeResources(
}) })
into(testExec.outputDirectory.resolve(IOS_COMPOSE_RESOURCES_ROOT_DIR)) into(testExec.outputDirectory.resolve(IOS_COMPOSE_RESOURCES_ROOT_DIR))
} }
testExec.linkTask.dependsOn(copyTestResourcesTask) testExec.linkTaskProvider.dependsOn(copyTestResourcesTask)
} }
} }
} }

9
gradle-plugins/compose/src/test/test-projects/misc/iosResources/build.gradle.kts

@ -5,20 +5,21 @@ plugins {
} }
kotlin { kotlin {
iosX64()
iosArm64()
iosSimulatorArm64()
cocoapods { cocoapods {
version = "1.0" version = "1.0"
summary = "Some description for a Kotlin/Native module" summary = "Some description for a Kotlin/Native module"
homepage = "Link to a Kotlin/Native module homepage" homepage = "Link to a Kotlin/Native module homepage"
pod("Base64", "1.1.2")
framework { framework {
baseName = "shared" baseName = "shared"
isStatic = true isStatic = true
} }
} }
iosX64()
iosArm64()
iosSimulatorArm64()
sourceSets { sourceSets {
commonMain { commonMain {
dependencies { dependencies {

Loading…
Cancel
Save