Skip to content

Commit

Permalink
[IOS] Fixing iOS github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kamgurgul committed Jul 29, 2024
1 parent 042eb4d commit 1e6b350
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.jetbrains.compose.ExperimentalComposeLibrary
import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
alias(libs.plugins.kotlin.multiplatform)
Expand Down Expand Up @@ -191,12 +192,17 @@ dependencies {
//add("kspIosSimulatorArm64", libs.koin.kspCompiler)
}

tasks.withType<KotlinCompile>().configureEach {
if (name != "kspCommonMainKotlinMetadata") {
dependsOn("kspCommonMainKotlinMetadata")
}
}

tasks.filter {
it.name.contains("compile", true)
it.name.contains("compileKotlinIos", true)
|| it.name.contains("compileTestKotlinIos", true)
}.forEach {
if (it.name != "compileKotlinMetadata") {
it.dependsOn("kspCommonMainKotlinMetadata")
}
it.dependsOn("kspCommonMainKotlinMetadata")
}

afterEvaluate {
Expand Down

0 comments on commit 1e6b350

Please sign in to comment.