diff options
author | Hailey <me@haileyok.com> | 2024-09-18 14:51:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-18 14:51:14 -0700 |
commit | fb3be7982024aed4cf141fbe3f658d8d6b0f94f5 (patch) | |
tree | 52efccfc910f8dd2de508cd1e515f476671f814c /app.config.js | |
parent | 6c8ef696549c3c08d39166e5620c74e6cfea173a (diff) | |
download | voidsky-fb3be7982024aed4cf141fbe3f658d8d6b0f94f5.tar.zst |
Update sentry sourcemaps upload (#5409)
Diffstat (limited to 'app.config.js')
-rw-r--r-- | app.config.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/app.config.js b/app.config.js index ddd72f75f..ecc7e4d40 100644 --- a/app.config.js +++ b/app.config.js @@ -55,6 +55,7 @@ module.exports = function (config) { : undefined const UPDATES_ENABLED = !!UPDATES_CHANNEL + const USE_SENTRY = Boolean(process.env.SENTRY_AUTH_TOKEN) const SENTRY_DIST = `${PLATFORM}.${VERSION}.${IS_TESTFLIGHT ? 'tf' : ''}${ IS_DEV ? 'dev' : '' }` @@ -186,7 +187,15 @@ module.exports = function (config) { }, plugins: [ 'expo-localization', - Boolean(process.env.SENTRY_AUTH_TOKEN) && 'sentry-expo', + USE_SENTRY && [ + '@sentry/react-native/expo', + { + organization: 'blueskyweb', + project: 'react-native', + release: VERSION, + dist: SENTRY_DIST, + }, + ], [ 'expo-build-properties', { @@ -263,7 +272,7 @@ module.exports = function (config) { * @see https://docs.expo.dev/guides/using-sentry/#app-configuration */ { - file: 'sentry-expo/upload-sourcemaps', + file: './postHooks/uploadSentrySourcemapsPostHook', config: { organization: 'blueskyweb', project: 'react-native', |