1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Use proper environment mapping

This commit is contained in:
Zhiyuan Zheng
2022-01-02 22:28:33 +01:00
parent 22af0bf828
commit 013d55aee2
10 changed files with 99 additions and 40 deletions

View File

@ -1,5 +1,5 @@
import { isDevelopment } from '@utils/checkEnvironment'
import Constants from 'expo-constants'
import * as Updates from 'expo-updates'
import * as Sentry from 'sentry-expo'
import log from './log'
@ -8,9 +8,7 @@ const sentry = () => {
Sentry.init({
dsn: Constants.manifest?.extra?.sentryDSN,
enableInExpoDevelopment: false,
debug:
__DEV__ ||
['development'].some(channel => Updates.releaseChannel.includes(channel))
debug: isDevelopment
})
}