Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/e2e-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
strategy:
fail-fast: false # keeps matrix running if one fails
matrix:
rn-version: ["0.71.19", "0.88.1"]
rn-version: ["0.71.19", "0.89.0-rc.5"]
rn-architecture: ["legacy", "new"]
platform: ["android", "ios"]
build-type: ["production"]
Expand All @@ -67,7 +67,7 @@ jobs:
runs-on: macos-15-xlarge
# Use Xcode 26 (macos-26) for newer RN versions
- platform: ios
rn-version: "0.88.1"
rn-version: "0.89.0-rc.5"
runs-on: macos-26-xlarge
- platform: android
runs-on: ubuntu-24.04
Expand All @@ -91,7 +91,7 @@ jobs:
- rn-architecture: "new"
ios-use-frameworks: "dynamic"
# RN >= 0.82 is New Architecture only on Android, so "legacy" would duplicate "new"
- rn-version: "0.88.1"
- rn-version: "0.89.0-rc.5"
rn-architecture: "legacy"
platform: "android"

Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:
strategy:
fail-fast: false # keeps matrix running if one fails
matrix:
rn-version: ["0.88.1"]
rn-version: ["0.89.0-rc.5"]
rn-architecture: ["legacy", "new"]
platform: ["android", "ios"]
build-type: ["production"]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spm-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
matrix:
# 0.87 is the first React Native version with the SwiftPM integration.
# Bump it together with the `Package.swift` platform requirement.
rn-version: ["0.87.1", "0.88.1", "0.89.0-rc.3"]
rn-version: ["0.87.1", "0.88.1", "0.89.0-rc.5"]
build-type: ["dev", "production"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/android/build.gradle b/android/build.gradle
index cecc20dc722556e93a840ac277886ff92111e4a3..b058dedcf732cd20f324752efc0ebd060eab0cf3 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -8,7 +8,7 @@ if (isNewArchitectureEnabled()) {
}

android {
- compileSdkVersion 35
+ compileSdkVersion safeExtGet('compileSdkVersion', 35)
Comment thread
antonis marked this conversation as resolved.
Resolved

def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
"router@npm:2.2.0/path-to-regexp": "^8.4.0",
"yaml": "^2.8.3",
"react-native-build-config@^0.3.2": "patch:react-native-build-config@npm%3A0.3.2#./.yarn/patches/react-native-build-config-npm-0.3.2-0e671629bd.patch",
"react-native-image-picker@^8.2.1": "patch:react-native-image-picker@npm%3A8.2.1#./.yarn/patches/react-native-image-picker-npm-8.2.1-78fb3eb248.patch",
"react-native-reanimated@4.7.1": "patch:react-native-reanimated@npm%3A4.7.1#./.yarn/patches/react-native-reanimated-npm-4.7.1-dbfb143762.patch",
"minimatch@npm:5.1.9/brace-expansion": "^2.1.4",
"minimatch@npm:8.0.7/brace-expansion": "^2.1.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package io.sentry.reactnative.sample
import android.os.Bundle
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
import com.facebook.react.defaults.DefaultReactActivityDelegate

class MainActivity : ReactActivity() {
Expand All @@ -14,10 +13,9 @@ class MainActivity : ReactActivity() {
override fun getMainComponentName(): String = "sentry-react-native-sample"

/**
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
* Returns the instance of the [ReactActivityDelegate].
*/
override fun createReactActivityDelegate(): ReactActivityDelegate = DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
override fun createReactActivityDelegate(): ReactActivityDelegate = DefaultReactActivityDelegate(this, mainComponentName)

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(null)
Expand Down
6 changes: 3 additions & 3 deletions samples/react-native/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ buildscript {
buildToolsVersion = "37.0.0"
minSdkVersion = 24
compileSdkVersion = 37
targetSdkVersion = 36
ndkVersion = "27.1.12297006"
kotlinVersion = "2.2.0"
targetSdkVersion = 37
ndkVersion = "28.2.13676358"
kotlinVersion = "2.3.21"
}
repositories {
google()
Expand Down
21 changes: 11 additions & 10 deletions samples/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"dependencies": {
"@react-native-vector-icons/ionicons": "^12.3.0",
"@react-native/assets-registry": "0.88.1",
"@react-native/new-app-screen": "0.88.1",
"@react-native/new-app-screen": "0.89.0-rc.5",
"@react-navigation/bottom-tabs": "^7.4.5",
"@react-navigation/native": "^7.1.17",
"@react-navigation/native-stack": "^7.3.24",
Expand All @@ -54,15 +54,15 @@
"@shopify/flash-list": "^2.0.2",
"delay": "^6.0.0",
"react": "19.3.0",
"react-native": "0.88.1",
"react-native": "0.89.0-rc.5",
"react-native-build-config": "^0.3.2",
"react-native-gesture-handler": "^3.0.1",
"react-native-image-picker": "^8.2.1",
"react-native-launch-arguments": "^4.1.1",
"react-native-reanimated": "4.7.1",
"react-native-safe-area-context": "^5.9.1",
"react-native-screens": "^4.27.0",
"react-native-svg": "^15.15.4",
"react-native-svg": "^15.16.1",
"react-native-webview": "^13.15.0",
"react-native-worklets": "0.13.0",
"react-redux": "^9.2.0",
Expand All @@ -72,13 +72,14 @@
"@babel/core": "^7.26.7",
"@babel/preset-env": "^7.26.7",
"@babel/runtime": "^7.26.7",
"@react-native-community/cli": "20.2.0",
"@react-native-community/cli-platform-android": "20.2.0",
"@react-native-community/cli-platform-ios": "20.2.0",
"@react-native/babel-preset": "0.88.1",
"@react-native/jest-preset": "0.88.1",
"@react-native/metro-config": "0.88.1",
"@react-native/typescript-config": "0.88.1",
"@react-native-community/cli": "21.1.1",
"@react-native-community/cli-platform-android": "21.1.1",
"@react-native-community/cli-platform-ios": "21.1.1",
"@react-native/babel-preset": "0.89.0-rc.5",
"@react-native/community-cli-plugin": "0.89.0-rc.5",
"@react-native/jest-preset": "0.89.0-rc.5",
"@react-native/metro-config": "0.89.0-rc.5",
"@react-native/typescript-config": "0.89.0-rc.5",
Comment on lines 57 to +82

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package.json pins RN 0.89.0-rc.5 but yarn.lock still resolves 0.89.0-rc.3

samples/react-native/package.json pins react-native and related packages to 0.89.0-rc.5 (CLI 21.1.1), but yarn.lock still locks 0.89.0-rc.3 / 21.0.0, so CI yarn install fails under Yarn immutable installs.

Evidence
  • Changed pins in samples/react-native/package.json set exact versions react-native@0.89.0-rc.5, @react-native/*@0.89.0-rc.5, and @react-native-community/cli*@21.1.1.
  • yarn.lock workspace entry sentry-react-native-sample@workspace:samples/react-native still lists react-native: npm:0.89.0-rc.3, matching @react-native/*@0.89.0-rc.3, and CLI packages at 21.0.0; no 0.89.0-rc.5 or 21.1.1 resolutions exist.
  • CI workflows run bare yarn install with CI=true, where Yarn defaults to immutable lockfiles and rejects installs that would rewrite the lockfile.

Identified by Warden · code-review · V24-RYW

"@sentry/bundler-plugins": "10.78.0",
"@testing-library/react-native": "^13.2.2",
"@types/jest": "^29.5.14",
Expand Down
Loading
Loading