From 058c621b60fed90998c42bb48b1f4cf770a62985 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Tue, 21 Sep 2021 14:09:39 -0400 Subject: [PATCH 1/2] bump android and cocoa sdks --- CHANGELOG.md | 10 ++++++++++ RNSentry.podspec | 2 +- android/build.gradle | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd45ed2ec1..0a649b751d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## Unreleased + +- Bump Sentry Android SDK to 5.2.0 ([#1785](https://github.com/getsentry/sentry-react-native/pull/1785)) + - [changelog](https://github.com/getsentry/sentry-java/blob/5.2.0/CHANGELOG.md) + - [diff](https://github.com/getsentry/sentry-java/compare/5.1.2...5.2.0) + +- Bump Sentry Cocoa SDK to 7.3.0 ([#1785](https://github.com/getsentry/sentry-react-native/pull/1785)) + - [changelog](https://github.com/getsentry/sentry-cocoa/blob/7.3.0/CHANGELOG.md) + - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.2.6...7.3.0) + ## 3.1.0 - Feat: Allow custom release for source map upload scripts #1548 diff --git a/RNSentry.podspec b/RNSentry.podspec index 7ec0055dfa..0deafe21be 100644 --- a/RNSentry.podspec +++ b/RNSentry.podspec @@ -17,7 +17,7 @@ Pod::Spec.new do |s| s.preserve_paths = '*.js' s.dependency 'React-Core' - s.dependency 'Sentry', '7.2.6' + s.dependency 'Sentry', '7.3.0' s.source_files = 'ios/RNSentry.{h,m}' s.public_header_files = 'ios/RNSentry.h' diff --git a/android/build.gradle b/android/build.gradle index 245a8d5753..20f2f11910 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -24,5 +24,5 @@ android { dependencies { implementation 'com.facebook.react:react-native:+' - api 'io.sentry:sentry-android:5.1.2' + api 'io.sentry:sentry-android:5.2.0' } From 7e540865069d57211addc0777bacbae825c2c95b Mon Sep 17 00:00:00 2001 From: Jenn Mueng Date: Tue, 21 Sep 2021 15:39:32 -0500 Subject: [PATCH 2/2] fix: Pass null to traceState --- ios/RNSentry.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RNSentry.m b/ios/RNSentry.m index 6f56fad276..416cb53af2 100644 --- a/ios/RNSentry.m +++ b/ios/RNSentry.m @@ -211,7 +211,7 @@ - (void)setEventEnvironmentTag:(SentryEvent *)event if ([NSJSONSerialization isValidJSONObject:envelopeDict]) { SentrySdkInfo *sdkInfo = [[SentrySdkInfo alloc] initWithDict:envelopeDict[@"header"]]; SentryId *eventId = [[SentryId alloc] initWithUUIDString:envelopeDict[@"header"][@"event_id"]]; - SentryEnvelopeHeader *envelopeHeader = [[SentryEnvelopeHeader alloc] initWithId:eventId andSdkInfo:sdkInfo]; + SentryEnvelopeHeader *envelopeHeader = [[SentryEnvelopeHeader alloc] initWithId:eventId sdkInfo:sdkInfo traceState:nil]; NSError *error; NSData *envelopeItemData = [NSJSONSerialization dataWithJSONObject:envelopeDict[@"payload"] options:0 error:&error];