Skip to content

test: shared sdk wrapper other platforms #5085

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

Draft
wants to merge 9 commits into
base: armcknight/test/share-sdk-wrapper
Choose a base branch
from

Conversation

armcknight
Copy link
Member

@armcknight armcknight commented Apr 12, 2025

Following on #5076 and #5077, switch the remaining sample apps implemented in Swift on other platforms to use the shared SDK wrapper.

#skip-changelog

@armcknight armcknight force-pushed the armcknight/test/share-sdk-wrapper branch from 78e25e9 to 3112778 Compare April 12, 2025 01:37
Copy link
Member Author

@armcknight armcknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple things I noticed as I went through this that I think are beneficial right off the bat


options.enableAutoSessionTracking = !SentrySDKOverrides.Performance.disableSessionTracking.boolValue
if let sessionTrackingIntervalMillis = env["--io.sentry.sessionTrackingIntervalMillis"] {
options.sessionTrackingIntervalMillis = UInt((sessionTrackingIntervalMillis as NSString).integerValue)
} else {
options.sessionTrackingIntervalMillis = 5_000
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't set for many of the sample apps as the default

#endif // os(iOS) || os(tvOS) || targetEnvironment(macCatalyst) || os(visionOS)

#if os(macOS)
options.enableUncaughtNSExceptionReporting = true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was only set for macOS-SwiftUI but not macOS-Swift

return scope
}

options.experimental.enableFileManagerSwizzling = !args.contains("--disable-filemanager-swizzling")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This launch arg introduced in #4634 wasn't actually configured in any of our shared schemas, I shared it in the upstream PR at https://github.com/getsentry/sentry-cocoa/pull/5076/files#diff-384a7a6c421086af40fa69500d57db0f5122e16c6c2753bf6bbf60447e2a3c06R105 so now all sample apps can use it

@armcknight armcknight force-pushed the armcknight/test/share-sdk-wrapper branch from 3112778 to 783f991 Compare April 12, 2025 01:52
@armcknight armcknight force-pushed the armcknight/test/shared-sdk-wrapper-other-platforms branch from 22f774b to 4933865 Compare April 12, 2025 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant