Requested by: @antonis
Merge target: v8
Quick links:
Assign the accepted label to this issue to approve the release.
To retract the release, the person requesting it must leave a comment containing #retract on a line by itself under this issue.
Targets
Checked targets will be skipped (either already published or user-requested skip). Uncheck to retry a target.
📋 Changelog
Upgrading from 7.x to 8.0
Version 8 of the Sentry React Native SDK updates the underlying native SDKs (Cocoa v9, CLI v3, Android Gradle Plugin v6) which introduce breaking changes in minimum version requirements and build tooling.
See our migration docs for more information.
Breaking Changes
Minimum Version Requirements
Features
-
Capture App Start errors and crashes by initializing Sentry from sentry.options.json (#4472)
Create sentry.options.json in the React Native project root and set options the same as you currently have in Sentry.init in JS.
{
"dsn": "https://key@example.io/value",
}
Initialize Sentry on the native layers by newly provided native methods.
import io.sentry.react.RNSentrySDK
class MainApplication : Application(), ReactApplication {
override fun onCreate() {
super.onCreate()
RNSentrySDK.init(this)
}
}
#import <RNSentry/RNSentry.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[RNSentrySDK start];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
@end
-
Add RNSentrySDK APIs support to @sentry/react-native/expo plugin (#4633)
- Adds
useNativeInit option to automatically initialize Sentry natively before JavaScript loads, enabling capture of app start errors
{
"expo": {
"plugins": [
[
"@sentry/react-native/expo",
{
"useNativeInit": true
}
]
]
}
}
Changes
- Load
optionsFile into the JS bundle during Metro bundle process (#4476)
- Add experimental version of
startWithConfigureOptions for Apple platforms (#4444)
- Add experimental version of
init with optional OptionsConfiguration<SentryAndroidOptions> for Android (#4451)
- Add initialization using
sentry.options.json for Apple platforms (#4447)
- Add initialization using
sentry.options.json for Android (#4451)
- Merge options from file with
Sentry.init options in JS (#4510)
Internal
- Extract iOS native initialization to standalone structures (#4442)
- Extract Android native initialization to standalone structures (#4445)
Dependencies
Requested by: @antonis
Merge target: v8
Quick links:
Assign the accepted label to this issue to approve the release.
To retract the release, the person requesting it must leave a comment containing
#retracton a line by itself under this issue.Targets
Checked targets will be skipped (either already published or user-requested skip). Uncheck to retry a target.
📋 Changelog
Upgrading from 7.x to 8.0
Version 8 of the Sentry React Native SDK updates the underlying native SDKs (Cocoa v9, CLI v3, Android Gradle Plugin v6) which introduce breaking changes in minimum version requirements and build tooling.
See our migration docs for more information.
Breaking Changes
Minimum Version Requirements
iOS/macOS/tvOS: (#5356)
Android: (#5578)
Sentry Self-Hosted: (#5523)
Features
Capture App Start errors and crashes by initializing Sentry from
sentry.options.json(#4472)Create
sentry.options.jsonin the React Native project root and set options the same as you currently have inSentry.initin JS.{ "dsn": "https://key@example.io/value", }Initialize Sentry on the native layers by newly provided native methods.
Add RNSentrySDK APIs support to @sentry/react-native/expo plugin (#4633)
useNativeInitoption to automatically initialize Sentry natively before JavaScript loads, enabling capture of app start errors{ "expo": { "plugins": [ [ "@sentry/react-native/expo", { "useNativeInit": true } ] ] } }Changes
optionsFileinto the JS bundle during Metro bundle process (#4476)startWithConfigureOptionsfor Apple platforms (#4444)initwith optionalOptionsConfiguration<SentryAndroidOptions>for Android (#4451)sentry.options.jsonfor Apple platforms (#4447)sentry.options.jsonfor Android (#4451)Sentry.initoptions in JS (#4510)Internal
Dependencies