diff options
author | Hailey <me@haileyok.com> | 2024-04-16 14:38:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 14:38:25 -0700 |
commit | 69d376800619fc88f75252cf7f9b58629193850b (patch) | |
tree | 5511265b4e6e8bd5436b98f6d7d7f0527073548c /app.config.js | |
parent | 046e11de31a9e6ddda32811b1efab52f9c221616 (diff) | |
download | voidsky-69d376800619fc88f75252cf7f9b58629193850b.tar.zst |
Better dist strings for Sentry (#3584)
* better version codes for sentry * use a `.` to follow the same intended format as before * ignore dist build number
Diffstat (limited to 'app.config.js')
-rw-r--r-- | app.config.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app.config.js b/app.config.js index c42ae5a31..dbec56195 100644 --- a/app.config.js +++ b/app.config.js @@ -35,11 +35,6 @@ module.exports = function (config) { */ const PLATFORM = process.env.EAS_BUILD_PLATFORM - const DIST_BUILD_NUMBER = - PLATFORM === 'android' - ? process.env.BSKY_ANDROID_VERSION_CODE - : process.env.BSKY_IOS_BUILD_NUMBER - const IS_DEV = process.env.EXPO_PUBLIC_ENV === 'development' const IS_TESTFLIGHT = process.env.EXPO_PUBLIC_ENV === 'testflight' const IS_PRODUCTION = process.env.EXPO_PUBLIC_ENV === 'production' @@ -51,6 +46,10 @@ module.exports = function (config) { : undefined const UPDATES_ENABLED = !!UPDATES_CHANNEL + const SENTRY_DIST = `${PLATFORM}.${VERSION}.${IS_TESTFLIGHT ? 'tf' : ''}${ + IS_DEV ? 'dev' : '' + }` + return { expo: { version: VERSION, @@ -217,7 +216,7 @@ module.exports = function (config) { organization: 'blueskyweb', project: 'react-native', release: VERSION, - dist: `${PLATFORM}.${VERSION}.${DIST_BUILD_NUMBER}`, + dist: SENTRY_DIST, }, }, ], |