NTP-7706 Sentry changes (#975)
This commit is contained in:
committed by
GitHub
parent
a339987a07
commit
073c715e3d
7
App.tsx
7
App.tsx
@@ -1,6 +1,5 @@
|
||||
import AsyncStorage from '@react-native-async-storage/async-storage';
|
||||
import { NavigationContainer } from '@react-navigation/native';
|
||||
import * as Sentry from '@sentry/react-native';
|
||||
import React, { useEffect } from 'react';
|
||||
import {
|
||||
AppState,
|
||||
@@ -38,7 +37,6 @@ import { CLICKSTREAM_EVENT_NAMES, LocalStorageKeys } from './src/common/Constant
|
||||
import ErrorBoundary from './src/common/ErrorBoundary';
|
||||
import { getPermissionsToRequest } from './src/components/utlis/PermissionUtils';
|
||||
import ScreenshotBlocker from './src/components/utlis/ScreenshotBlocker';
|
||||
import { initSentry } from './src/components/utlis/sentry';
|
||||
import { setItem } from './src/components/utlis/storageHelper';
|
||||
import { ENV } from './src/constants/config';
|
||||
import usePolling from './src/hooks/usePolling';
|
||||
@@ -51,7 +49,6 @@ import fetchUpdatedRemoteConfig from './src/services/firebaseFetchAndUpdate.serv
|
||||
import { StorageKeys } from './src/types/storageKeys';
|
||||
import CodePushLoadingModal, { CodePushLoadingModalRef } from './CodePushModal';
|
||||
|
||||
initSentry();
|
||||
|
||||
if (ENV !== 'prod') {
|
||||
// mockApiServer();
|
||||
@@ -218,6 +215,4 @@ function App() {
|
||||
);
|
||||
}
|
||||
|
||||
const AppWithSentry = Sentry.wrap(App);
|
||||
|
||||
export default AppWithSentry;
|
||||
export default App;
|
||||
|
||||
@@ -134,8 +134,8 @@ def reactNativeArchitectures() {
|
||||
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
|
||||
}
|
||||
|
||||
def VERSION_CODE = 201
|
||||
def VERSION_NAME = "2.14.1"
|
||||
def VERSION_CODE = 202
|
||||
def VERSION_NAME = "2.14.2"
|
||||
|
||||
android {
|
||||
ndkVersion rootProject.ext.ndkVersion
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "AV_APP",
|
||||
"version": "2.14.1",
|
||||
"buildNumber": "201",
|
||||
"version": "2.14.2",
|
||||
"buildNumber": "202",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"android:dev": "yarn move:dev && react-native run-android",
|
||||
|
||||
@@ -6,17 +6,17 @@ export const logError = (error: Error, extraInfo = '') => {
|
||||
// Disable sentry in development mode
|
||||
return;
|
||||
}
|
||||
Sentry.setTag('agentId', GLOBAL.AGENT_ID || 'not-logged-in');
|
||||
Sentry.captureException(error, (scope) => {
|
||||
scope.setExtra('ExtraInfo', extraInfo);
|
||||
return scope;
|
||||
});
|
||||
// Sentry.setTag('agentId', GLOBAL.AGENT_ID || 'not-logged-in');
|
||||
// Sentry.captureException(error, (scope) => {
|
||||
// scope.setExtra('ExtraInfo', extraInfo);
|
||||
// return scope;
|
||||
// });
|
||||
};
|
||||
|
||||
export const sentryCaptureMessage = (errorStr: string, extraInfo = '') => {
|
||||
Sentry.setTag('agentId', GLOBAL.AGENT_ID || 'not-logged-in');
|
||||
Sentry.captureMessage(errorStr, (scope) => {
|
||||
scope.setExtra('ExtraInfo', extraInfo);
|
||||
return scope;
|
||||
});
|
||||
// Sentry.setTag('agentId', GLOBAL.AGENT_ID || 'not-logged-in');
|
||||
// Sentry.captureMessage(errorStr, (scope) => {
|
||||
// scope.setExtra('ExtraInfo', extraInfo);
|
||||
// return scope;
|
||||
// });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user