-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix(Cordova) enhanced node path detection, debug symbols now run in foreground. #694
base: master
Are you sure you want to change the base?
Conversation
lib/Steps/Integrations/Cordova.ts
Outdated
@@ -190,31 +190,68 @@ export class Cordova extends BaseIntegration { | |||
shellPath: '/bin/sh', | |||
shellScript: | |||
// eslint-disable-next-line prefer-template |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this to a shell file that will ship with wizard and then copy the content to create the build phase?
For example lib/Steps/Integrations/Cordova/SentryUploadDebugFiles.sh
?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #694 +/- ##
==========================================
- Coverage 51.15% 50.92% -0.23%
==========================================
Files 53 53
Lines 3517 3517
Branches 825 826 +1
==========================================
- Hits 1799 1791 -8
- Misses 1591 1599 +8
Partials 127 127
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
const script = fs | ||
.readFileSync(xcodeSymbolScriptPath, 'utf8') | ||
.replace(/\\/g, '\\\\') | ||
.replace(/\n/g, '\\n'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I my comment, I thought we would add the file to the wizard, and then copy it to the build phase.
Since we are adding the file in the Cordova SDK. https://github.com/getsentry/sentry-cordova/pull/372/files
Can we simplify the code to just executing the file
sentry-wizard/src/react-native/xcode.ts
Line 189 in fe849fe
shellScript: `/bin/sh ../node_modules/@sentry/react-native/scripts/sentry-xcode-debug-files.sh`, |
const xcodeSourceScriptPath = path.join( | ||
process.cwd(), | ||
'plugins/sentry-cordova/scripts', | ||
'xcode-upload-debug-files.sh', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file was added in getsentry/sentry-cordova#372
This is a refactor on how the Cordova Integration runs, the main changes on the PR are: