Commit ad68d6c
chore(core): Bump sample app to React Native 0.84.1 (#5941)
* chore(core): Bump sample app to React Native 0.84.1
React Native 0.84.1 ships Hermes V1 as the default JS engine.
Changes:
- react-native 0.80.2 -> 0.84.1, react 19.1.0 -> 19.2.3
- Android SDK 35 -> 36, Gradle 8.14.1 -> 9.0.0
- Simplified MainApplication.kt to use new getDefaultReactHost(context, packageList) pattern
replacing the legacy DefaultReactNativeHost/ReactNativeHost boilerplate
- Updated @react-native/* and @react-native-community/cli devDependencies
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(core): Patch react-native-build-config for Gradle 9 compatibility
Gradle 9 removed jcenter() and deprecated lintOptions.
Apply yarn patch to remove the obsolete buildscript block and
replace lintOptions with lint.
Also includes Xcode project changes from RN 0.84 (RCT_REMOVE_LEGACY_ARCH flag).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(core): Patch react-native-launch-arguments for Gradle 9 compatibility
Gradle 9 removed the `destinationDir` property from JavaCompile tasks.
Use `destinationDirectory` instead.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore(core): Bump react-native-reanimated to 4.3.0 for RN 0.84 support
Reanimated 3.x uses legacy arch APIs (LayoutAnimationController,
UIManagerModuleListener) that were removed in RN 0.84.
Reanimated 4.x supports RN 0.81-0.85.
Also adds react-native-worklets 0.8.1 as required peer dependency.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(core): Replace deprecated rncore.h with FBReactNativeSpec.h
rncore.h is deprecated in RN 0.84 and triggers -Werror.
Replace with FBReactNativeSpec.h and FBReactNativeSpec_ModuleProvider.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Lint issue
* fix(ci): Bump Node to 22 in sample app CI workflows
RN 0.84 requires Node >= 22.11. Metro from RN 0.84 uses
Array.toReversed() which is not available in Node 18.
Bump Node version for the Bundle job in buildandtest.yml and
all jobs in sample-application.yml that run Metro bundling.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(ios): Fix podspec compiler flags being overridden by install_modules_dependencies
`s.compiler_flags` was silently overridden by `install_modules_dependencies()`,
so `-DSENTRY_PROFILING_SUPPORTED`, `-DNEW_HERMES_RUNTIME`, and
`-DRCT_NEW_ARCH_ENABLED` were never applied. Add flags to
`pod_target_xcconfig['OTHER_CFLAGS']` which takes effect correctly.
Also set `REACT_NATIVE_NODE_MODULES_DIR` in the sample app's Podfile
and pod-install script so the podspec detects the app's RN version
instead of the SDK's devDependency version in the monorepo.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* revert: Remove redundant OTHER_CFLAGS from pod_target_xcconfig
The compiler flags (SENTRY_PROFILING_SUPPORTED, NEW_HERMES_RUNTIME, etc.)
are already applied per-file via s.compiler_flags, which
install_modules_dependencies preserves. Adding them to pod_target_xcconfig
was redundant.
The actual fix for the iOS build was the REACT_NATIVE_NODE_MODULES_DIR
env var in the Podfile, which ensures the podspec detects the app's
RN version instead of the SDK's devDependency version in the monorepo.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor(core): Remove yarn patches in favor of version bumps and dep removal
- Remove react-native-build-config dependency entirely. It was
unmaintained (uses jcenter, Gradle 1.3) and only used to read
one Android BuildConfig field. Use react-native-launch-arguments
for both platforms instead.
- Bump react-native-launch-arguments to 4.1.1 which has the
Gradle 9 fix (destinationDirectory) built-in.
- Remove both yarn patch files and resolutions.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(ci): Remove legacy arch from sample app CI matrix
RN 0.84 and Reanimated 4 require the New Architecture.
Legacy arch builds fail with: "Reanimated requires the New Architecture
to be enabled".
Also remove dynamic-frameworks variant since it was previously excluded
for new arch.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(core): Fix tsconfig resolution and Detox R8 error for RN 0.84
- Use bare specifier in tsconfig extends (`@react-native/typescript-config`
instead of `@react-native/typescript-config/tsconfig.json`). Node 22
strictly enforces the package's `exports` field, and ts-jest couldn't
resolve the direct file path.
- Add proguard `-dontwarn` for `NotThreadSafeBridgeIdleDebugListener`
which Detox references but was removed in RN 0.84.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(core): Restore react-native-build-config and update Node constraints
- Re-add react-native-build-config with yarn patch for Gradle 9 compat.
The Android BuildConfig.SENTRY_DISABLE_NATIVE_START is a build-time
flag that can't be replaced by runtime launch arguments.
- Restore original platform-specific shouldUseAutoStart() logic.
- Update engines.node to >=22.11.0 and volta node to 22.22.2
to match RN 0.84 requirements.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 553198a commit ad68d6c
File tree
16 files changed
+809
-391
lines changed- .github/workflows
- .yarn/patches
- samples/react-native
- android
- app
- src/main
- java/io/sentry/reactnative/sample
- jni
- gradle/wrapper
- ios
- sentryreactnativesample.xcodeproj
- scripts
16 files changed
+809
-391
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 63 | | |
67 | 64 | | |
68 | 65 | | |
| |||
72 | 69 | | |
73 | 70 | | |
74 | 71 | | |
75 | | - | |
| 72 | + | |
76 | 73 | | |
77 | 74 | | |
78 | 75 | | |
| |||
152 | 149 | | |
153 | 150 | | |
154 | 151 | | |
155 | | - | |
| 152 | + | |
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
| |||
163 | 160 | | |
164 | 161 | | |
165 | 162 | | |
166 | | - | |
| 163 | + | |
167 | 164 | | |
168 | 165 | | |
169 | 166 | | |
| |||
238 | 235 | | |
239 | 236 | | |
240 | 237 | | |
241 | | - | |
| 238 | + | |
242 | 239 | | |
243 | 240 | | |
244 | 241 | | |
| |||
325 | 322 | | |
326 | 323 | | |
327 | 324 | | |
328 | | - | |
| 325 | + | |
329 | 326 | | |
330 | 327 | | |
331 | 328 | | |
| |||
407 | 404 | | |
408 | 405 | | |
409 | 406 | | |
410 | | - | |
| 407 | + | |
411 | 408 | | |
412 | 409 | | |
413 | 410 | | |
| |||
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 9 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
10 | 8 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 9 | | |
15 | 10 | | |
16 | 11 | | |
17 | 12 | | |
18 | 13 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
22 | 18 | | |
23 | 19 | | |
24 | 20 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
37 | 24 | | |
38 | 25 | | |
39 | 26 | | |
| |||
46 | 33 | | |
47 | 34 | | |
48 | 35 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 36 | + | |
54 | 37 | | |
55 | 38 | | |
56 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments