Skip to content

Commit 0acb66c

Browse files
authored
Replace deprecated sdk info (#1060)
1 parent a921cc7 commit 0acb66c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flutter/ios/Classes/SentryFlutterPluginApple.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin {
171171
infos["integrations"] = integrations
172172
}
173173

174-
if let sdkInfo = self.sentryOptions?.sdkInfo {
175-
infos["package"] = ["version": sdkInfo.version, "sdk_name": "cocoapods:sentry-cocoa"]
176-
}
174+
// Not reading the name from PrivateSentrySDKOnly.getSdkName because
175+
// this is added as a package and packages should follow the sentry-release-registry format
176+
infos["package"] = ["version": PrivateSentrySDKOnly.getSdkVersionString(), "sdk_name": "cocoapods:sentry-cocoa"]
177177

178178
result(infos)
179179
}

0 commit comments

Comments
 (0)