Skip to content

Commit 24bf369

Browse files
authored
Merge branch 'main' into antonis/dsym-fix
2 parents ea5902b + d590428 commit 24bf369

20 files changed

Lines changed: 141 additions & 42 deletions

File tree

CHANGELOG.md

Lines changed: 104 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,110 @@
66
> make sure you follow our [migration guide](https://docs.sentry.io/platforms/react-native/migration/) first.
77
<!-- prettier-ignore-end -->
88
9-
## Unreleased
9+
## 8.0.0
10+
11+
### Upgrading from 7.x to 8.0
12+
13+
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.
14+
15+
See our [migration docs](https://docs.sentry.io/platforms/react-native/migration/v7-to-v8/) for more information.
16+
17+
### Breaking Changes
18+
19+
#### Minimum Version Requirements
20+
21+
- **iOS/macOS/tvOS**: ([#5356](https://github.com/getsentry/sentry-react-native/pull/5356))
22+
- iOS **15.0+** (previously 11.0+)
23+
- macOS **10.14+** (previously 10.13+)
24+
- tvOS **15.0+** (previously 11.0+)
25+
26+
- **Android**: ([#5578](https://github.com/getsentry/sentry-react-native/pull/5578))
27+
- Sentry Android Gradle Plugin **6.0.0** (previously 5.x)
28+
- Android Gradle Plugin **7.4.0+** (previously 7.3.0+)
29+
- Kotlin **1.8+**
30+
31+
- **Sentry Self-Hosted**: ([#5523](https://github.com/getsentry/sentry-react-native/pull/5523))
32+
- Sentry CLI v3 requires self-hosted **25.11.1+** (previously 25.2.0)
33+
34+
### Features
35+
36+
- Capture App Start errors and crashes by initializing Sentry from `sentry.options.json` ([#4472](https://github.com/getsentry/sentry-react-native/pull/4472))
37+
38+
Create `sentry.options.json` in the React Native project root and set options the same as you currently have in `Sentry.init` in JS.
39+
40+
```json
41+
{
42+
"dsn": "https://key@example.io/value",
43+
}
44+
```
45+
46+
Initialize Sentry on the native layers by newly provided native methods.
47+
48+
```kotlin
49+
import io.sentry.react.RNSentrySDK
50+
51+
class MainApplication : Application(), ReactApplication {
52+
override fun onCreate() {
53+
super.onCreate()
54+
RNSentrySDK.init(this)
55+
}
56+
}
57+
```
58+
59+
```obj-c
60+
#import <RNSentry/RNSentry.h>
61+
62+
@implementation AppDelegate
63+
- (BOOL)application:(UIApplication *)application
64+
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
65+
{
66+
[RNSentrySDK start];
67+
return [super application:application didFinishLaunchingWithOptions:launchOptions];
68+
}
69+
@end
70+
```
71+
72+
- Add RNSentrySDK APIs support to @sentry/react-native/expo plugin ([#4633](https://github.com/getsentry/sentry-react-native/pull/4633))
73+
- Adds `useNativeInit` option to automatically initialize Sentry natively before JavaScript loads, enabling capture of app start errors
74+
```json
75+
{
76+
"expo": {
77+
"plugins": [
78+
[
79+
"@sentry/react-native/expo",
80+
{
81+
"useNativeInit": true
82+
}
83+
]
84+
]
85+
}
86+
}
87+
```
88+
89+
### Changes
90+
91+
- Load `optionsFile` into the JS bundle during Metro bundle process ([#4476](https://github.com/getsentry/sentry-react-native/pull/4476))
92+
- Add experimental version of `startWithConfigureOptions` for Apple platforms ([#4444](https://github.com/getsentry/sentry-react-native/pull/4444))
93+
- Add experimental version of `init` with optional `OptionsConfiguration<SentryAndroidOptions>` for Android ([#4451](https://github.com/getsentry/sentry-react-native/pull/4451))
94+
- Add initialization using `sentry.options.json` for Apple platforms ([#4447](https://github.com/getsentry/sentry-react-native/pull/4447))
95+
- Add initialization using `sentry.options.json` for Android ([#4451](https://github.com/getsentry/sentry-react-native/pull/4451))
96+
- Merge options from file with `Sentry.init` options in JS ([#4510](https://github.com/getsentry/sentry-react-native/pull/4510))
97+
98+
### Internal
99+
100+
- Extract iOS native initialization to standalone structures ([#4442](https://github.com/getsentry/sentry-react-native/pull/4442))
101+
- Extract Android native initialization to standalone structures ([#4445](https://github.com/getsentry/sentry-react-native/pull/4445))
102+
103+
### Dependencies
104+
105+
- Bump Cocoa SDK from v8.58.0 to v9.4.1 ([#5356](https://github.com/getsentry/sentry-react-native/pull/5356), [#5515](https://github.com/getsentry/sentry-react-native/pull/5515), [#5619](https://github.com/getsentry/sentry-react-native/pull/5619), [#5656](https://github.com/getsentry/sentry-react-native/pull/5656))
106+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#941)
107+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.58.0...9.4.1)
108+
- Bump CLI from v2.58.4 to v3.2.0 ([#5523](https://github.com/getsentry/sentry-react-native/pull/5523), [#5471](https://github.com/getsentry/sentry-react-native/pull/5471), [#5514](https://github.com/getsentry/sentry-react-native/pull/5514), [#5502](https://github.com/getsentry/sentry-react-native/pull/5502), [#5528](https://github.com/getsentry/sentry-react-native/pull/5528))
109+
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#320)
110+
- [diff](https://github.com/getsentry/sentry-cli/compare/2.58.4...3.2.0)
111+
112+
## 7.13.0
10113

11114
### Features
12115

@@ -26,12 +129,6 @@
26129
- Bump Android SDK Stubs from v8.31.0 to v8.32.0 ([#5634](https://github.com/getsentry/sentry-react-native/pull/5634))
27130
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8320)
28131
- [diff](https://github.com/getsentry/sentry-java/compare/8.31.0...8.32.0)
29-
- Bump CLI from v3.1.0 to v3.2.0 ([#5528](https://github.com/getsentry/sentry-react-native/pull/5528))
30-
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#320)
31-
- [diff](https://github.com/getsentry/sentry-cli/compare/3.1.0...3.2.0)
32-
- Bump Cocoa SDK from v9.3.0 to v9.4.0 ([#5619](https://github.com/getsentry/sentry-react-native/pull/5619))
33-
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#940)
34-
- [diff](https://github.com/getsentry/sentry-cocoa/compare/9.3.0...9.4.0)
35132
- Bump Bundler Plugins from v4.9.0 to v4.9.1 ([#5649](https://github.com/getsentry/sentry-react-native/pull/5649))
36133
- [changelog](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/main/CHANGELOG.md#491)
37134
- [diff](https://github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.9.0...4.9.1)

dev-packages/e2e-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sentry-react-native-e2e-tests",
3-
"version": "8.0.0-beta.0",
3+
"version": "8.0.0",
44
"private": true,
55
"description": "Sentry React Native End to End Tests Library",
66
"main": "dist/index.js",
@@ -14,7 +14,7 @@
1414
"@babel/preset-env": "^7.25.3",
1515
"@babel/preset-typescript": "^7.18.6",
1616
"@sentry/core": "10.38.0",
17-
"@sentry/react-native": "8.0.0-beta.0",
17+
"@sentry/react-native": "8.0.0",
1818
"@types/node": "^20.9.3",
1919
"@types/react": "^18.2.64",
2020
"appium": "2.4.1",

dev-packages/type-check/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sentry-react-native-type-check",
33
"private": true,
4-
"version": "8.0.0-beta.0",
4+
"version": "8.0.0",
55
"scripts": {
66
"type-check": "./run-type-check.sh"
77
}

dev-packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sentry-react-native-samples-utils",
3-
"version": "8.0.0-beta.0",
3+
"version": "8.0.0",
44
"description": "Internal Samples Utils",
55
"main": "index.js",
66
"license": "MIT",

lerna.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "8.0.0-beta.0",
3+
"version": "8.0.0",
44
"packages": [
55
"packages/*",
66
"dev-packages/*",
77
"samples/*",
88
"performance-tests/*"
99
],
1010
"npmClient": "yarn"
11-
}
11+
}

packages/core/RNSentry.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Pod::Spec.new do |s|
5151
'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_ROOT}/Sentry/Sources/Sentry" "${PODS_ROOT}/Sentry/Sources/Sentry/include"'
5252
}
5353

54-
s.dependency 'Sentry', '9.4.0'
54+
s.dependency 'Sentry', '9.4.1'
5555

5656
if defined? install_modules_dependencies
5757
# Default React Native dependencies for 0.71 and above (new and legacy architecture)

packages/core/android/src/main/java/io/sentry/react/RNSentryVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class RNSentryVersion {
44
static final String REACT_NATIVE_SDK_PACKAGE_NAME = "npm:@sentry/react-native";
5-
static final String REACT_NATIVE_SDK_PACKAGE_VERSION = "8.0.0-beta.0";
5+
static final String REACT_NATIVE_SDK_PACKAGE_VERSION = "8.0.0";
66
static final String NATIVE_SDK_NAME = "sentry.native.android.react-native";
77
static final String ANDROID_SDK_NAME = "sentry.java.android.react-native";
88
static final String REACT_NATIVE_SDK_NAME = "sentry.javascript.react-native";

packages/core/ios/RNSentryVersion.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
NSString *const NATIVE_SDK_NAME = @"sentry.cocoa.react-native";
44
NSString *const REACT_NATIVE_SDK_NAME = @"sentry.javascript.react-native";
55
NSString *const REACT_NATIVE_SDK_PACKAGE_NAME = @"npm:@sentry/react-native";
6-
NSString *const REACT_NATIVE_SDK_PACKAGE_VERSION = @"8.0.0-beta.0";
6+
NSString *const REACT_NATIVE_SDK_PACKAGE_VERSION = @"8.0.0";

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@sentry/react-native",
33
"homepage": "https://github.com/getsentry/sentry-react-native",
44
"repository": "https://github.com/getsentry/sentry-react-native",
5-
"version": "8.0.0-beta.0",
5+
"version": "8.0.0",
66
"description": "Official Sentry SDK for react-native",
77
"typings": "dist/js/index.d.ts",
88
"types": "dist/js/index.d.ts",

packages/core/src/js/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const SDK_PACKAGE_NAME = 'npm:@sentry/react-native';
22
export const SDK_NAME = 'sentry.javascript.react-native';
3-
export const SDK_VERSION = '8.0.0-beta.0';
3+
export const SDK_VERSION = '8.0.0';

0 commit comments

Comments
 (0)