-
-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Platform
Apple
Installed
Swift Package Manager
Version
8.42.0
Steps to Reproduce
- Do not set
releaseproperty inSentryOptionsin the shared code on Kotlin Multiplatform side - Set properly
CFBundleIdentifier,CFBundleShortVersionString, andCFBundleVersionininfo.plistin the xcode project used with kotlin multi-platform - Send any kind of event to Sentry (including a crash)
- When checking event / issue it has no associated release
Expected Result
According to the kotlin multiplatform SDK documentation:
release
Sets the release. Some SDKs will try to automatically configure a release out of the box
Then according to the iOS SDK documentation:
Setting a Release
If no release name is set, the SDK creates a default combined from CFBundleIdentifier, CFBundleShortVersionString, and CFBundleVersion, for example [email protected]+1234.
Which implies that when no release is set up on the Kotlin Multiplatform side that value will default to whatever platform's SDK behaviour.
In case of iOS that should be a value based on CFBundleIdentifier, CFBundleShortVersionString, and CFBundleVersion values.
Actual Result
Right now the release value transmitted to the sentry backend is null by default.
This is most likely caused by overriding the platform's default value here:
Line 13 in f22d5c9
| releaseName = kmpEvent.release |
without checking if there is any value in kmpEvent as it is done for some other fields:
Line 8 in f22d5c9
| kmpEvent.level?.let { level = it.toCocoaSentryLevel() } |
Metadata
Metadata
Assignees
Labels
Projects
Status