Skip to content

Commit

Permalink
fix XCFramework publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Jun 16, 2024
1 parent a139646 commit a99a201
Showing 1 changed file with 7 additions and 35 deletions.
42 changes: 7 additions & 35 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,50 +73,22 @@ tasks.withType<AbstractPublishToMaven>() {
kotlin {

val xcf = org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFrameworkConfig(project, "KmmResult")
macosArm64 {
binaries.framework {
baseName = "KmmResult"
embedBitcode("bitcode")
xcf.add(this)
}
}
macosX64 {
binaries.framework {
baseName = "KmmResult"
embedBitcode("bitcode")
xcf.add(this)
}
}
tvosArm64 {
binaries.framework {
baseName = "KmmResult"
embedBitcode("bitcode")
xcf.add(this)
}
}
tvosX64 {
binaries.framework {
baseName = "KmmResult"
embedBitcode("bitcode")
xcf.add(this)
}
}
tvosSimulatorArm64() {
binaries.framework {
baseName = "KmmResult"
embedBitcode("bitcode")
xcf.add(this)
}
}
listOf(
macosArm64(),
macosX64(),
tvosArm64(),
tvosX64(),
tvosSimulatorArm64(),
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "KmmResult"
binaryOption("bundleId", "at.asitplus.KmmResult")
embedBitcode("bitcode")
xcf.add(this)
isStatic = true
}
}

Expand Down

0 comments on commit a99a201

Please sign in to comment.