Commit 7d6fd3a
fix(ios): honor _experiments.enableUnhandledCPPExceptionsV2 on v8 (#6014)
* fix(profiling): iOS UI profiling on v8
`RNSentryStart.createOptionsWithDictionary` (the live iOS init path
since v8.0.0) did not read `_experiments.profilingOptions`, silently
dropping `profileSessionSampleRate`, `lifecycle`, and `startOnAppStart`.
The handling existed in `SentrySDKWrapper`, but that surface hasn't
been called from `initNativeSdk` since #5582 — #5611 added the block
to the wrong file.
Port the handling to `RNSentryStart` and add XCTest coverage for the
`startWithOptions` entry point that `initNativeSdk` uses, so this
regression can't slip through again.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* review: house-style CHANGELOG and verify profiling fields land on probe
- Rewrite CHANGELOG entry to match the descriptive + PR-link format.
- Strengthen the two positive profiling tests to invoke the installed
callback on a fresh SentryProfileOptions probe and assert that
sessionSampleRate, lifecycle, and profileAppStarts land correctly,
so a future regression that installs an incomplete callback is caught.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(ios): honor _experiments.enableUnhandledCPPExceptionsV2 on v8
Same dead-code issue as the profiling fix — `SentrySDKWrapper` parses
`_experiments.enableUnhandledCPPExceptionsV2`, but `RNSentryStart` (the
live init path since v8.0.0) does not. Port the handling into the
`_experiments` block just introduced for `profilingOptions`, and add
enabled/disabled/default XCTest coverage on `RNSentryStart`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* changelog: simplify profiling fix wording
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 01e214f commit 7d6fd3a
3 files changed
Lines changed: 62 additions & 1 deletion
File tree
- packages/core
- RNSentryCocoaTester/RNSentryCocoaTesterTests
- ios
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
Lines changed: 54 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1471 | 1471 | | |
1472 | 1472 | | |
1473 | 1473 | | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
1474 | 1528 | | |
1475 | 1529 | | |
1476 | 1530 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
0 commit comments