Add Sentry

This commit is contained in:
Vincent BRIDIER 2023-01-03 16:53:23 +01:00
parent 6316173773
commit b4f8fadcbb
No known key found for this signature in database
GPG key ID: 8571BFA20420D512
3 changed files with 1495 additions and 6 deletions

1485
ComApp/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -17,6 +17,7 @@
"@react-navigation/native-stack": "^6.9.0",
"@rneui/base": "^0.0.0-edge.2",
"@rneui/themed": "^0.0.0-edge.2",
"@sentry/react-native": "^4.12.0",
"axios": "^0.27.2",
"expo": "^47.0.10",
"expo-av": "^13.0.2",

View file

@ -1,4 +1,6 @@
import React from 'react';
// Sentry
import * as Sentry from "@sentry/react-native";
// Redux
import { Provider } from 'react-redux';
import { store } from './App/Store/ConfigureStore';
@ -30,6 +32,16 @@ import SearchScreen from "./App/Views/SearchScreen";
import MySpaceScreen from './App/Views/MySpaceScreen';
// Style
import styles from './Resources/Styles/NavigationStyle';
// Controllers
import SyncController from './App/Controllers/SyncController';
Sentry.init({
dsn: "https://ab87e8d840324f41873c95b06903b0bf@o4504314935640064.ingest.sentry.io/4504441255886848",
});
Sentry.setContext("app", {
boUrl: SyncController.getUrlBo()
});
SplashScreen.preventAutoHideAsync(); //Keep
@ -317,7 +329,6 @@ class App extends React.Component {
}
LogoTitle(navigation, title, wantBtn = true) {
console.log(this.state.isSetup)
return (
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
<TouchableOpacity onPress={() => {
@ -400,4 +411,4 @@ class App extends React.Component {
}
export default App;
export default Sentry.wrap(App);