mirror of
https://github.com/tooot-app/app
synced 2025-05-29 18:29:18 +02:00
18 lines
441 B
TypeScript
18 lines
441 B
TypeScript
import Constants from 'expo-constants'
|
|
import * as Updates from 'expo-updates'
|
|
import * as Sentry from 'sentry-expo'
|
|
import log from './log'
|
|
|
|
const sentry = () => {
|
|
log('log', 'Sentry', 'initializing')
|
|
Sentry.init({
|
|
dsn: Constants.manifest?.extra?.sentryDSN,
|
|
enableInExpoDevelopment: false,
|
|
debug:
|
|
__DEV__ ||
|
|
['development'].some(channel => Updates.releaseChannel.includes(channel))
|
|
})
|
|
}
|
|
|
|
export default sentry
|