mirror of
https://github.com/tooot-app/app
synced 2025-01-06 23:01:51 +01:00
Another try with Sentry
This commit is contained in:
parent
e820ce3690
commit
08df036289
11
App.tsx
11
App.tsx
@ -1,13 +1,14 @@
|
||||
import { ActionSheetProvider } from '@expo/react-native-action-sheet'
|
||||
import Index from '@root/Index'
|
||||
import dev from '@root/startup/dev'
|
||||
import sentry from '@root/startup/sentry'
|
||||
// import sentry from '@root/startup/sentry'
|
||||
import log from '@root/startup/log'
|
||||
import audio from '@root/startup/audio'
|
||||
import onlineStatus from '@root/startup/onlineStatus'
|
||||
import netInfo from '@root/startup/netInfo'
|
||||
import { persistor, store } from '@root/store'
|
||||
import ThemeManager from '@utils/styles/ThemeManager'
|
||||
import Constants from 'expo-constants'
|
||||
import * as SplashScreen from 'expo-splash-screen'
|
||||
import React, { useCallback, useEffect, useState } from 'react'
|
||||
import { enableScreens } from 'react-native-screens'
|
||||
@ -15,13 +16,19 @@ import { QueryClient, QueryClientProvider } from 'react-query'
|
||||
import { Provider } from 'react-redux'
|
||||
import { PersistGate } from 'redux-persist/integration/react'
|
||||
import { LogBox, Platform } from 'react-native'
|
||||
import * as Sentry from 'sentry-expo'
|
||||
|
||||
if (Platform.OS === 'android') {
|
||||
LogBox.ignoreLogs(['Setting a timer for a long period of time'])
|
||||
}
|
||||
|
||||
log('log', 'Sentry', 'initializing')
|
||||
Sentry.init({
|
||||
dsn: Constants.manifest.extra.sentryDSN
|
||||
})
|
||||
|
||||
dev()
|
||||
sentry()
|
||||
// sentry()
|
||||
audio()
|
||||
onlineStatus()
|
||||
|
||||
|
@ -4,11 +4,11 @@ import log from './log'
|
||||
|
||||
const sentry = () => {
|
||||
log('log', 'Sentry', 'initializing')
|
||||
// return Sentry.init({
|
||||
// dsn: Constants.manifest.extra.sentryDSN,
|
||||
// enableInExpoDevelopment: false,
|
||||
// debug: __DEV__
|
||||
// })
|
||||
return Sentry.init({
|
||||
dsn: Constants.manifest.extra.sentryDSN,
|
||||
enableInExpoDevelopment: false,
|
||||
debug: __DEV__
|
||||
})
|
||||
}
|
||||
|
||||
export default sentry
|
||||
|
Loading…
Reference in New Issue
Block a user