Drop cocoapods
This commit is contained in:
@@ -24,8 +24,26 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
iosArm64()
|
||||
iosSimulatorArm64()
|
||||
// Framework declaration moved here from composeApp/build.gradle.kts when the
|
||||
// CocoaPods plugin was dropped (2026-04-28). The Xcode run script invokes
|
||||
// :composeApp:embedAndSignAppleFrameworkForXcode, which needs `baseName` to
|
||||
// resolve `import ComposeApp` from Swift. `isStatic = true` keeps the link
|
||||
// shape unchanged from the previous CocoaPods setup. The `:shared` module is
|
||||
// re-exported so the Swift `AuthBridge` can read `Constants` (single source
|
||||
// of truth for OIDC issuer / client id / redirect URI).
|
||||
listOf(iosArm64(), iosSimulatorArm64()).forEach { target ->
|
||||
target.binaries.framework {
|
||||
baseName = "ComposeApp"
|
||||
isStatic = true
|
||||
// `composeApp` only applies the multiplatform plugin; project deps
|
||||
// live in its own build file. Skip the export when this convention
|
||||
// plugin is applied to a module that doesn't depend on `:shared`
|
||||
// (e.g., shared itself).
|
||||
project.findProject(":shared")?.let { sharedProject ->
|
||||
if (project != sharedProject) export(sharedProject)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
jvm {
|
||||
compilerOptions {
|
||||
|
||||
Reference in New Issue
Block a user