Repository navigation
refactor(ios): Use internal Cocoa serialization #6917
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -95,6 +95,16 @@ | |
| // stub on macOS/watchOS. | ||
| #endif | ||
|
|
||
| // MARK: - Serialization | ||
|
|
||
| @_spi(Private) @objc public static func serializeScope(_ scope: Scope) -> [String: Any] { | ||
| SentrySDK.internal.serializer.serialize(scope: scope) | ||
|
Check failure on line 101 in packages/core/ios/Swift/RNSentryInternal.swift
|
||
|
Collaborator
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. Could you check the failure errors that are showing here ? https://github.com/getsentry/sentry-react-native/pull/6917/changes |
||
| } | ||
|
|
||
| @_spi(Private) @objc public static func serializeDebugMeta(_ debugMeta: DebugMeta) -> [String: Any] { | ||
| SentrySDK.internal.serializer.serialize(debugMeta: debugMeta) | ||
|
Check failure on line 105 in packages/core/ios/Swift/RNSentryInternal.swift
|
||
| } | ||
|
Check failure on line 106 in packages/core/ios/Swift/RNSentryInternal.swift
|
||
|
|
||
| // MARK: - Envelope | ||
|
|
||
| // Accepts `Data?` (nil-safe) rather than `Data` so the ObjC bridge boundary | ||
|
|
||
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.
Pinned Cocoa version lacks the new internal serializer APIs
Update the bundled sentry-cocoa version before building this change. The Swift bridge calls internal scope and debug-meta serializer APIs that are not available in the pinned 9.30.2 dependency, so native builds will fail until the dependency provides them.
Evidence
RNSentry.mmcallsRNSentryInternalWrapper.serializeScope; the wrapper forwards toRNSentryInternal.serializeScope, which callsSentrySDK.internal.serializer.serialize(scope:).RNSentry+fetchNativeStack.malso calls the new debug-meta serializer throughRNSentryInternal.serializeDebugMeta.RNSentry.podspecandPackage.swiftboth pin sentry-cocoa to9.30.2.Also found at 1 additional location
packages/core/ios/Swift/RNSentryInternal.swift:100-106Identified by Warden 路 code-review 路 ESP-4NA