Skip to content

Commit

Permalink
[gradle] Don't create Kotlin binary's linkTask eagerly (#4707)
Browse files Browse the repository at this point in the history
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 #4632
  • Loading branch information
daugeldauge authored Apr 26, 2024
1 parent 0c886be commit 717f4f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ internal fun Project.configureSyncIosComposeResources(
})
into(testExec.outputDirectory.resolve(IOS_COMPOSE_RESOURCES_ROOT_DIR))
}
testExec.linkTask.dependsOn(copyTestResourcesTask)
testExec.linkTaskProvider.dependsOn(copyTestResourcesTask)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@ plugins {
}

kotlin {
iosX64()
iosArm64()
iosSimulatorArm64()

cocoapods {
version = "1.0"
summary = "Some description for a Kotlin/Native module"
homepage = "Link to a Kotlin/Native module homepage"
pod("Base64", "1.1.2")
framework {
baseName = "shared"
isStatic = true
}
}

iosX64()
iosArm64()
iosSimulatorArm64()

sourceSets {
commonMain {
dependencies {
Expand Down

0 comments on commit 717f4f0

Please sign in to comment.