You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(core): Support SENTRY_ENVIRONMENT in bare React Native builds (#5823)
* feat(core): Support SENTRY_ENVIRONMENT in bare React Native builds
Read SENTRY_ENVIRONMENT env variable during the sentry.options.json
copy step in both Gradle and Xcode build scripts, overriding the
environment value in the destination copy without modifying the source.
Closes#5779
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs: Add changelog for SENTRY_ENVIRONMENT bare RN support
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(core): Add error handling for SENTRY_ENVIRONMENT override in build scripts
Wrap JSON parsing in try-catch (Gradle) and if-guard (Xcode) so invalid
sentry.options.json falls back to a plain copy instead of failing the build.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ios): Pass file paths via process.argv instead of shell interpolation
Avoids breaking inline JS when paths contain special characters like
single quotes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor(core): Unify copy logic in build scripts
Always copy the file first, then override environment in-place if
SENTRY_ENVIRONMENT is set. This removes duplicate copy blocks.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments