Skip to content

Commit

Permalink
[gradle] Don't create Kotlin binary's linkTask eagerly
Browse files Browse the repository at this point in the history
It's better for the build performance, and it avoids uncovering hidden CocoaPods plugin bug (KT-67666)

Fixes #4632
  • Loading branch information
daugeldauge committed Apr 26, 2024
1 parent 0c886be commit ece6b36
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 ece6b36

Please sign in to comment.