Skip to content

Commit bbe4f2f

Browse files
authored
RN: Adds v7 to v8 migration guide (#16203)
<!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. --> ## DESCRIBE YOUR PR *Tell us what you're changing and why. If your PR **resolves an issue**, please link it so it closes automatically.* ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [ ] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE <!-- Sentry employees and contractors can delete or ignore this section. --> Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
1 parent 8cdc606 commit bbe4f2f

1 file changed

Lines changed: 67 additions & 0 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: Migrate from 7.x to 8.x
3+
sidebar_order: 98
4+
description: "Learn how to migrate from version 7 to version 8 of the Sentry React Native SDK"
5+
---
6+
7+
<Alert level="warning">
8+
9+
**Version 8 is currently in alpha.** This migration guide is provided for early adopters. The API and features may change before the stable release.
10+
11+
</Alert>
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+
## Important Changes in Dependencies
16+
17+
Version 8 includes major upgrades to the underlying native SDKs:
18+
19+
- **Cocoa SDK**: Upgraded from v8.58.0 to v9.1.0 ([#5356](https://github.com/getsentry/sentry-react-native/pull/5356)). See the [Cocoa SDK 8.x to 9.x migration guide](/platforms/apple/migration/#migrating-from-8x-to-9x) for details on breaking changes.
20+
- **Sentry CLI**: Upgraded from v2.58.4 to v3.1.0 ([#5523](https://github.com/getsentry/sentry-react-native/pull/5523))
21+
- **Android Gradle Plugin**: Upgraded to v6.0.0 ([#5578](https://github.com/getsentry/sentry-react-native/pull/5578)). If you're using the Android SDK directly, see the [Android SDK migration guide](/platforms/android/migration/) for details.
22+
23+
These upgrades introduce breaking changes in minimum version requirements and build tooling.
24+
25+
## Breaking Changes
26+
27+
### Minimum Version Requirements
28+
29+
#### iOS/macOS/tvOS
30+
31+
The minimum supported versions have been updated:
32+
33+
- **iOS**: **15.0+** (previously 11.0+)
34+
- **macOS**: **10.14+** (previously 10.13+)
35+
- **tvOS**: **15.0+** (previously 11.0+)
36+
37+
If your app targets older versions, you'll need to update your deployment targets before upgrading to version 8. For more details on the Cocoa SDK v9 changes, see the [Cocoa SDK 8.x to 9.x migration guide](/platforms/apple/migration/#migrating-from-8x-to-9x).
38+
39+
#### Android
40+
41+
The Android build tooling requirements have been updated:
42+
43+
- **Sentry Android Gradle Plugin**: **6.0.0** (previously 5.x)
44+
- Drops support for Android Gradle Plugin 7.3.X and below
45+
- **Android Gradle Plugin**: **7.4.0+** (previously 7.3.0+)
46+
- **Kotlin**: **1.8+** (previously no minimum specified)
47+
48+
Update your `android/build.gradle` file to ensure compatibility. If you're using the Android SDK directly, see the [Android SDK migration guide](/platforms/android/migration/) for details:
49+
50+
```gradle
51+
buildscript {
52+
ext {
53+
kotlinVersion = "1.8.0" // or higher
54+
androidGradlePluginVersion = "7.4.0" // or higher
55+
}
56+
dependencies {
57+
classpath("com.android.tools.build:gradle:$androidGradlePluginVersion")
58+
classpath("io.sentry:sentry-android-gradle-plugin:6.0.0")
59+
}
60+
}
61+
```
62+
63+
#### Sentry Self-Hosted
64+
65+
Sentry CLI v3 requires self-hosted Sentry instances version **25.11.1+** (previously 25.2.0).
66+
67+
If you're using a self-hosted Sentry instance, ensure it's running version 25.11.1 or higher before upgrading to React Native SDK v8.

0 commit comments

Comments
 (0)