mattermost-mobile/ios/makeSentryProperties.sh
Harrison Healey 3ac7b48adc RN-289 Sentry integration (#873)
* Added JS code for Sentry

* Removed leftover initializeSentry call

* Added SentryOptions config setting

* Added native components for react-native-exception-handler

* Removed default props from ErrorText

* Moved where Sentry is initialized

* Added ios/sentry.properties to .gitignore

* Added linking react-native-sentry to Fastlane

* Fixed fastlane to include newlines in sentry.properties

* Moved to manually link react-native-sentry

* Captured redux errors with Sentry

* Redid how Sentry is optionally compiled to be simpler

* Added Sentry middleware to create redux breadcrumbs

* Added Sentry tags for server version

* Initialize Sentry when testing

* Fixed string replacement for SentryEnabled in fastlane

* Added react-native-sentry to NOTICE.txt
2017-09-01 14:50:17 -03:00

19 lines
540 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-binary/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