Sentry integration

Changelog-Added: Added Sentry error and diagnostics reporting to aid
future quality improvements
Closes: #3731
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
Daniel D’Aquino
2026-05-11 11:30:20 -07:00
parent 9dc9738377
commit 3c98282f95
26 changed files with 2090 additions and 31 deletions
+33
View File
@@ -0,0 +1,33 @@
#!/bin/sh
set -eu
if ! command -v sentry-cli >/dev/null 2>&1; then
echo "Installing sentry-cli on Xcode Cloud builder"
SENTRY_CLI_VERSION="3.4.2"
export SENTRY_CLI_VERSION
curl -fsSL https://sentry.io/get-cli/ | SENTRY_CLI_VERSION="$SENTRY_CLI_VERSION" sh
fi
if ! command -v sentry-cli >/dev/null 2>&1; then
echo "warning: sentry-cli not installed, skipping Sentry dSYM upload"
exit 0
fi
if [ -z "${CI_ARCHIVE_PATH:-}" ]; then
echo "warning: CI_ARCHIVE_PATH is not set, skipping Sentry dSYM upload"
exit 0
fi
DSYM_PATH="${CI_ARCHIVE_PATH}/dSYMs"
if [ ! -d "${DSYM_PATH}" ]; then
echo "warning: No dSYMs directory found at ${DSYM_PATH}, skipping Sentry dSYM upload"
exit 0
fi
export SENTRY_ORG=damus-nostr-inc
export SENTRY_PROJECT=apple-ios
if ! sentry-cli debug-files upload --include-sources "${DSYM_PATH}" >/dev/null 2>&1; then
echo "warning: sentry-cli failed to upload dSYMs from ${DSYM_PATH}"
fi