-
-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Add native SDK information in the replay option event #4663
base: main
Are you sure you want to change the base?
Changes from 10 commits
90c07d2
ec45856
9f3b6e0
ce93846
626045d
bab9c2a
da5b308
5fb20ad
d945d34
68b2624
589b0b5
c87f10b
1744321
f10c3bb
4a4126a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,20 @@ | |
|
||
@implementation SentryMeta | ||
|
||
const NSString *const sentryVersionString = @"8.43.0-beta.1"; | ||
const NSString *const sentrySdkName = @"sentry.cocoa"; | ||
|
||
// Don't remove the static keyword. If you do the compiler adds the constant name to the global | ||
// symbol table and it might clash with other constants. When keeping the static keyword the | ||
// compiler replaces all occurrences with the value. | ||
static NSString *versionString = @"8.43.0-beta.1"; | ||
static NSString *sdkName = @"sentry.cocoa"; | ||
static NSString *versionString; | ||
static NSString *sdkName; | ||
|
||
+ (void)initialize | ||
{ | ||
versionString = sentryVersionString.copy; | ||
sdkName = sentrySdkName.copy; | ||
Comment on lines
+16
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
} | ||
|
||
+ (NSString *)versionString | ||
{ | ||
|
@@ -28,4 +37,14 @@ + (void)setSdkName:(NSString *)value | |
sdkName = value; | ||
} | ||
|
||
+ (NSString *)nativeSdkName | ||
{ | ||
return sentrySdkName.copy; | ||
} | ||
|
||
+ (NSString *)nativeVersionString | ||
{ | ||
return sentryVersionString.copy; | ||
} | ||
|
||
@end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@_implementationOnly import _SentryPrivate | ||
import Foundation | ||
|
||
@objcMembers | ||
|
@@ -146,6 +147,10 @@ public class SentryReplayOptions: NSObject, SentryRedactOptions { | |
*/ | ||
let maximumDuration = TimeInterval(3_600) | ||
|
||
/** | ||
* Used by hybrid SDKs to be able to configure SDK info for Session Replay | ||
*/ | ||
var sdkInfo: [String: Any]? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
/** | ||
* Inittialize session replay options disabled | ||
*/ | ||
|
@@ -183,5 +188,6 @@ public class SentryReplayOptions: NSObject, SentryRedactOptions { | |
if let quality = SentryReplayQuality(rawValue: dictionary["quality"] as? Int ?? -1) { | ||
self.quality = quality | ||
} | ||
sdkInfo = dictionary["sdkInfo"] as? [String: Any] | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 8.43.0
.Consider moving the entry to the
## Unreleased
section, please.