Skip to content
Merged
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- feat(react-native): Xcode plugin debug files upload can include source using env

## 2.2.2

- feat(nextjs): Remove option to auto-wrap data fetchers and API routes (#196)
Expand Down
12 changes: 7 additions & 5 deletions lib/Steps/Integrations/ReactNative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export class ReactNative extends MobileProject {

private _addNewXcodeBuildPhaseForSymbols(buildScripts: any, proj: any): void {
for (const script of buildScripts) {
if (script.shellScript.match(/sentry-cli\s+upload-dsym/)) {
if (script.shellScript.match(/sentry-cli\s+(upload-dsym|debug-files upload)/)) {
return;
}
}
Expand All @@ -279,9 +279,11 @@ export class ReactNative extends MobileProject {
null,
{
shellPath: '/bin/sh',
shellScript:
'export SENTRY_PROPERTIES=sentry.properties\\n' +
'../node_modules/@sentry/cli/bin/sentry-cli upload-dsym',
shellScript:`
export SENTRY_PROPERTIES=sentry.properties
[[ $SENTRY_INCLUDE_NATIVE_SOURCES == "true" ]] && INCLUDE_SOURCES_FLAG="--include-sources" || INCLUDE_SOURCES_FLAG=""
../node_modules/@sentry/cli/bin/sentry-cli debug-files upload "$INCLUDE_SOURCES_FLAG"
`,
},
);
}
Expand Down Expand Up @@ -382,7 +384,7 @@ export class ReactNative extends MobileProject {

if (
script.shellScript.match(
/@sentry\/cli\/bin\/sentry-cli\s+upload-dsym\b/,
/@sentry\/cli\/bin\/sentry-cli\s+(upload-dsym|debug-files upload)\b/,
)
) {
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
Expand Down