Skip to content

test: shared sdk wrapper other platforms#5085

Closed
armcknight wants to merge 9 commits intoarmcknight/test/share-sdk-wrapperfrom
armcknight/test/shared-sdk-wrapper-other-platforms
Closed

test: shared sdk wrapper other platforms#5085
armcknight wants to merge 9 commits intoarmcknight/test/share-sdk-wrapperfrom
armcknight/test/shared-sdk-wrapper-other-platforms

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

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
@armcknight
Copy link
Member Author

This will significantly change after moving to xcodegen, so will redo in a new PR when the time comes.

@armcknight armcknight closed this May 2, 2025
@armcknight armcknight mentioned this pull request May 6, 2025
@armcknight armcknight deleted the armcknight/test/shared-sdk-wrapper-other-platforms branch June 12, 2025 19:57
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