You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sentry-kotlin-multiplatform-gradle-plugin/src/main/java/io/sentry/kotlin/multiplatform/gradle/SentryPlugin.kt
+66-30Lines changed: 66 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -137,47 +137,58 @@ internal fun Project.configureLinkingOptions(linkerExtension: LinkerExtension) {
137
137
}
138
138
139
139
kmpExtension.appleTargets().all { target ->
140
-
val frameworkArchitecture = target.toSentryFrameworkArchitecture() ?:run {
140
+
// Contains a set of names where one should match the arch name in the framework
141
+
// This is needed for backwards compatibility as the arch names have changed throughout different versions of the Cocoa SDK
142
+
val frameworkArchitectures = target.toSentryFrameworkArchitecture()
val tempDir =Files.createTempDirectory("sentry-cocoa-test").toFile()
77
+
tempDir.deleteOnExit()
78
+
79
+
val targetFile = tempDir.resolve("Sentry.xcframework.zip")
80
+
val downloadLink =
81
+
if (cocoaVersion =="latest") "https://github.com/getsentry/sentry-cocoa/releases/latest/download/Sentry.xcframework.zip"else"https://github.com/getsentry/sentry-cocoa/releases/download/$cocoaVersion/Sentry.xcframework.zip"
0 commit comments