Skip to content
Open
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
22 changes: 11 additions & 11 deletions .github/workflows/e2e-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
strategy:
fail-fast: false # keeps matrix running if one fails
matrix:
rn-version: ['0.65.3', '0.81.0']
rn-version: ['0.69.12', '0.81.0']
rn-architecture: ['legacy', 'new']
platform: ['android', 'ios']
build-type: ['production']
Expand All @@ -176,7 +176,7 @@ jobs:
xcode-version: '16.2'
runs-on: macos-14
- platform: ios
rn-version: '0.65.3'
rn-version: '0.69.12'
xcode-version: '14.2'
runs-on: macos-13
- platform: android
Expand All @@ -186,13 +186,13 @@ jobs:
- rn-version: '0.81.0'
engine: 'jsc'
# exclude all rn versions lower than 0.70.0 for new architecture
- rn-version: '0.65.3'
- rn-version: '0.69.12'
rn-architecture: 'new'
# exlude old rn version for use frameworks builds (to minimalize the matrix)
- rn-version: '0.65.3'
- rn-version: '0.69.12'
platform: 'ios'
ios-use-frameworks: 'static'
- rn-version: '0.65.3'
- rn-version: '0.69.12'
platform: 'ios'
ios-use-frameworks: 'dynamic'
# use frameworks is ios only feature
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:

- uses: actions/setup-java@v5
with:
java-version: ${{ matrix.rn-version == '0.65.3' && '11' || '17' }}
java-version: ${{ matrix.rn-version == '0.69.12' && '11' || '17' }}
distribution: 'adopt'

- name: Gradle cache
Expand All @@ -262,7 +262,7 @@ jobs:
# to avoid issues with the old node version
- run: corepack disable
- uses: actions/setup-node@v5
if: ${{ matrix.rn-version == '0.65.3' }}
if: ${{ matrix.rn-version == '0.69.12' }}
with:
package-manager-cache: false
node-version: 16
Expand Down Expand Up @@ -304,7 +304,7 @@ jobs:
strategy:
fail-fast: false # keeps matrix running if one fails
matrix:
rn-version: ['0.65.3', '0.81.0']
rn-version: ['0.69.12', '0.81.0']
rn-architecture: ['legacy', 'new']
platform: ['android', 'ios']
build-type: ['production']
Expand All @@ -315,16 +315,16 @@ jobs:
rn-version: '0.81.0'
runs-on: macos-14
- platform: ios
rn-version: '0.65.3'
rn-version: '0.69.12'
runs-on: macos-14
- platform: android
runs-on: ubuntu-latest
exclude:
# exclude all rn versions lower than 0.70.0 for new architecture
- rn-version: '0.65.3'
- rn-version: '0.69.12'
rn-architecture: 'new'
# e2e test only the default combinations
- rn-version: '0.65.3'
- rn-version: '0.69.12'
engine: 'hermes'
- rn-version: '0.81.0'
engine: 'jsc'
Expand Down
6 changes: 3 additions & 3 deletions dev-packages/e2e-tests/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const sentryAuthToken = env.SENTRY_AUTH_TOKEN;

function runCodegenIfNeeded(rnVersion, platform, appDir) {
const versionNumber = parseFloat(rnVersion.replace(/[^\d.]/g, ''));
const shouldRunCodegen = platform === 'android' && versionNumber >= 0.80;
const shouldRunCodegen = platform === 'android' && versionNumber >= 0.69;

if (shouldRunCodegen) {
console.log(`Running codegen for React Native ${rnVersion}...`);
Expand Down Expand Up @@ -105,14 +105,14 @@ if (actions.includes('create')) {

// Only apply the package.json patch for newer RN versions
const versionNumber = parseFloat(RNVersion.replace(/[^\d.]/g, ''));
if (versionNumber >= 0.80) {
if (versionNumber >= 0.69) {
execSync(`${patchScriptsDir}/rn.patch.package.json.js --path package.json`, {
stdio: 'inherit',
cwd: appDir,
env: env,
});
} else {
console.log(`Skipping rn.patch.package.json.js for RN ${RNVersion} (< 0.80)`);
console.log(`Skipping rn.patch.package.json.js for RN ${RNVersion} (< 0.69)`);
}

// Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion packages/core/RNSentry.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Pod::Spec.new do |s|
s.homepage = "https://github.com/getsentry/sentry-react-native"
s.source = { :git => 'https://github.com/getsentry/sentry-react-native.git', :tag => "#{s.version}"}

s.ios.deployment_target = "11.0"
s.ios.deployment_target = "12.0"
s.osx.deployment_target = "10.13"
s.tvos.deployment_target = "11.0"
s.visionos.deployment_target = "1.0" if s.respond_to?(:visionos)
Expand Down
16 changes: 9 additions & 7 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,19 @@
"@sentry/types": "10.17.0"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/core": "^7.26.7",
"@expo/metro-config": "~0.20.0",
"@mswjs/interceptors": "^0.25.15",
"@react-native/babel-preset": "0.77.1",
"@react-native/babel-preset": "0.80.0",
"@sentry-internal/eslint-config-sdk": "10.17.0",
"@sentry-internal/eslint-plugin-sdk": "10.17.0",
"@sentry-internal/typescript": "10.17.0",
"@sentry/wizard": "6.5.0",
"@testing-library/react-native": "^12.7.2",
"@testing-library/react-native": "^13.2.2",
"@types/jest": "^29.5.13",
"@types/node": "^20.9.3",
"@types/react": "^18.2.64",
"@types/react": "^19.1.0",
"@types/react-test-renderer": "^19.1.0",
"@types/uglify-js": "^3.17.2",
"@types/uuid": "^9.0.4",
"@types/xmlhttprequest": "^1.8.2",
Expand All @@ -102,14 +103,15 @@
"eslint-plugin-react-native": "^3.8.1",
"expo": "^53.0.0",
"expo-module-scripts": "3.1.0",
"jest": "^29.6.2",
"jest": "^29.6.3",
"jest-environment-jsdom": "^29.6.2",
"jest-extended": "^4.0.2",
"madge": "^6.1.0",
"metro": "0.83.1",
"prettier": "^2.0.5",
"react": "18.3.1",
"react-native": "0.77.1",
"react": "19.1.0",
"react-native": "0.80.1",
"react-test-renderer": "19.1.0",
"rimraf": "^4.1.1",
"ts-jest": "^29.3.1",
"typescript": "4.9.5",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { HostComponent, ViewProps } from 'react-native';
// The default export exists in the file but eslint doesn't see it
// eslint-disable-next-line import/default
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import { codegenNativeComponent } from 'react-native';

// If changed to type NativeProps = ViewProps, react native codegen will fail finding the NativeProps type
// eslint-disable-next-line @typescript-eslint/no-empty-interface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { HostComponent, ViewProps } from 'react-native';
// The default export exists in the file but eslint doesn't see it
// eslint-disable-next-line import/default
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import { codegenNativeComponent } from 'react-native';

// If changed to type NativeProps = ViewProps, react native codegen will fail finding the NativeProps type
// eslint-disable-next-line @typescript-eslint/no-empty-interface
Expand Down
Loading
Loading