-
Notifications
You must be signed in to change notification settings - Fork 0
Report uncaught exceptions with sentry.io #740
Conversation
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
shellPath = /bin/sh; | ||
shellScript = "if which sentry-cli >/dev/null; then\nexport SENTRY_ORG=subconscious\nexport SENTRY_PROJECT=apple-ios\nexport SENTRY_AUTH_TOKEN=cfb08a61febc418bb55ec80ae6f99e2ce34b93d5b179454e9a8b8c240a3bb4d6\nERROR=$(sentry-cli debug-files upload \"$DWARF_DSYM_FOLDER_PATH\" 2>&1 >/dev/null)\nif [ ! $? -eq 0 ]; then\necho \"warning: sentry-cli - $ERROR\"\nfi\nelse\necho \"warning: sentry-cli not installed. download from https://github.com/getsentry/sentry-cli/releases\"\nfi\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.
Is it okay for this auth token to be publicly checked in? Bearing in mind this repo is fully open-source.
This issue seems to suggest we shouldn't check it in: getsentry/sentry-react-native#1096
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 want to be sure that we're handling the auth token appropriately before merging.
That token has been revoked. Good catch. I'll work w/ you in DM to figure out how to pass in relevant secrets. |
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.
LGTM! Thanks for tackling the .env, that was well overdue.
Extends #740 Use `OSLogEnumerator` to pin the app logs to the reported error. This probably isn't super efficient but given the nature of reporting a crash, that's probably ok.
We still need to upload debug symbols for release builds.