@sentry/react-native 3.2.14-beta.2 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.3.0
4
+
5
+ - feat: Support enableNativeCrashHandling for iOS #2101
6
+ - Bump: Sentry Cocoa 7.10.0 #2100
7
+
3
8
  ## 3.2.14-beta.2
4
9
 
5
10
  - feat: Touch events now track components with `sentry-label` prop, falls back to `accessibilityLabel` and then finally `displayName`. #2068
package/RNSentry.podspec CHANGED
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.preserve_paths = '*.js'
18
18
 
19
19
  s.dependency 'React-Core'
20
- s.dependency 'Sentry', '7.9.0'
20
+ s.dependency 'Sentry', '7.10.0'
21
21
 
22
22
  s.source_files = 'ios/RNSentry.{h,m}'
23
23
  s.public_header_files = 'ios/RNSentry.h'
@@ -1,3 +1,3 @@
1
1
  export declare const SDK_NAME = "sentry.javascript.react-native";
2
- export declare const SDK_VERSION = "3.2.14-beta.2";
2
+ export declare const SDK_VERSION = "3.3.0";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,mCAAmC,CAAC;AACzD,eAAO,MAAM,WAAW,kBAAkB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,mCAAmC,CAAC;AACzD,eAAO,MAAM,WAAW,UAAU,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export const SDK_NAME = "sentry.javascript.react-native";
2
- export const SDK_VERSION = "3.2.14-beta.2";
2
+ export const SDK_VERSION = "3.3.0";
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC","sourcesContent":["export const SDK_NAME = \"sentry.javascript.react-native\";\nexport const SDK_VERSION = \"3.2.14-beta.2\";\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC","sourcesContent":["export const SDK_NAME = \"sentry.javascript.react-native\";\nexport const SDK_VERSION = \"3.3.0\";\n"]}
package/ios/RNSentry.m CHANGED
@@ -68,8 +68,7 @@ RCT_EXPORT_METHOD(initNativeSdk:(NSDictionary *_Nonnull)options
68
68
  // remove performance traces sample rate and traces sampler since we don't want to synchronize these configurations
69
69
  // to the Native SDKs.
70
70
  // The user could tho initialize the SDK manually and set themselves.
71
- // Remove comment below once https://github.com/getsentry/sentry-cocoa/issues/1657 gets fixed.
72
- // [mutableOptions removeObjectForKey:@"tracesSampleRate"];
71
+ [mutableOptions removeObjectForKey:@"tracesSampleRate"];
73
72
  [mutableOptions removeObjectForKey:@"tracesSampler"];
74
73
 
75
74
  sentryOptions = [[SentryOptions alloc] initWithDict:mutableOptions didFailWithError:&error];
@@ -77,6 +76,17 @@ RCT_EXPORT_METHOD(initNativeSdk:(NSDictionary *_Nonnull)options
77
76
  reject(@"SentryReactNative", error.localizedDescription, error);
78
77
  return;
79
78
  }
79
+
80
+ if ([mutableOptions valueForKey:@"enableNativeCrashHandling"] != nil) {
81
+ BOOL enableNativeCrashHandling = (BOOL)[mutableOptions valueForKey:@"enableNativeCrashHandling"];
82
+
83
+ if (!enableNativeCrashHandling) {
84
+ NSMutableArray *integrations = sentryOptions.integrations.mutableCopy;
85
+ [integrations removeObject:@"SentryCrashIntegration"];
86
+ sentryOptions.integrations = integrations;
87
+ }
88
+ }
89
+
80
90
  [SentrySDK startWithOptionsObject:sentryOptions];
81
91
 
82
92
  // If the app is active/in foreground, and we have not sent the SentryHybridSdkDidBecomeActive notification, send it.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sentry/react-native",
3
3
  "homepage": "https://github.com/getsentry/sentry-react-native",
4
4
  "repository": "https://github.com/getsentry/sentry-react-native",
5
- "version": "3.2.14-beta.2",
5
+ "version": "3.3.0",
6
6
  "description": "Official Sentry SDK for react-native",
7
7
  "typings": "dist/js/index.d.ts",
8
8
  "types": "dist/js/index.d.ts",