mattermost-mobile/ios/makeSentryProperties.sh
Harrison Healey f75d35b66e RN-9379 Updated react-native-sentry to 0.34.0 (#1447)
* RN-9379 Updated react-native-sentry to 0.34.0

* Removed translations for sentry debugging options
2018-02-21 01:01:06 +08:00

19 lines
534 B
Bash
Executable file

#!/bin/sh
sentry_properties="defaults.url=https://sentry.io
defaults.org=${SENTRY_ORG}
defaults.project=${SENTRY_PROJECT_IOS}
auth.token=${SENTRY_AUTH_TOKEN}
cli.executable=../node_modules/@sentry/cli/bin/sentry-cli"
if [[ "${SENTRY_ENABLED}" = "true" ]]; then
if [[ ! -f "sentry.properties" ]]; then
echo "Creating sentry.properties from environment"
echo "${sentry_properties}" > sentry.properties
else
echo "sentry.properties already exists"
fi
else
echo "Not creating sentry.properties because Sentry is disabled"
fi