Skip to content

Commit 01823f4

Browse files
committed
Add react-native extra tag
1 parent 14b235a commit 01823f4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ios/RNSentry.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,12 @@ - (void)setReleaseVersionDist:(SentryEvent *)event {
188188
[NSException raise:@"SentryReactNative" format:@"%@", error.localizedDescription];
189189
}
190190
SentryClient.sharedClient.beforeSerializeEvent = ^(SentryEvent * _Nonnull event) {
191+
if (nil == event.extra) {
192+
event.extra = [NSMutableDictionary new];
193+
}
191194
[self injectReactNativeFrames:event];
192195
[self setReleaseVersionDist:event];
196+
event.extra[@"react-native"] = @(YES);
193197
};
194198
}
195199

ios/RNSentry.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@
146146
58B511D21A9E6C8500147676 = {
147147
isa = PBXGroup;
148148
children = (
149-
6378C6F91EAF630500A1F1EE /* RNSentryEventEmitter.h */,
150-
6378C6FA1EAF630500A1F1EE /* RNSentryEventEmitter.m */,
151149
632232581E76C45800F58A1F /* Libraries */,
152150
63329BC41E47AB790099D77A /* Vendor */,
153151
B3E7B5881CC2AC0600A0062D /* RNSentry.h */,
154152
B3E7B5891CC2AC0600A0062D /* RNSentry.m */,
153+
6378C6F91EAF630500A1F1EE /* RNSentryEventEmitter.h */,
154+
6378C6FA1EAF630500A1F1EE /* RNSentryEventEmitter.m */,
155155
134814211AA4EA7D00B7C361 /* Products */,
156156
6387B7961ED84BA70045A84C /* Frameworks */,
157157
);

0 commit comments

Comments
 (0)