2021-01-20 00:39:39 +01:00
|
|
|
import Constants from 'expo-constants'
|
2021-01-07 19:13:09 +01:00
|
|
|
import * as Sentry from 'sentry-expo'
|
2021-01-20 00:39:39 +01:00
|
|
|
import log from './log'
|
2021-01-07 19:13:09 +01:00
|
|
|
|
|
|
|
const sentry = () => {
|
|
|
|
log('log', 'Sentry', 'initializing')
|
2021-01-20 14:49:38 +01:00
|
|
|
return Sentry.init({
|
2021-01-20 00:39:39 +01:00
|
|
|
dsn: Constants.manifest.extra.sentryDSN,
|
2021-01-20 12:35:24 +01:00
|
|
|
enableInExpoDevelopment: false,
|
2021-01-07 19:13:09 +01:00
|
|
|
debug: __DEV__
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export default sentry
|