Skip to content

Commit

Permalink
Some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed Feb 27, 2024
1 parent de4c6c3 commit 250de2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
15 changes: 3 additions & 12 deletions packages/mobile/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ import Bugsnag from '@bugsnag/react-native';
import {ImportFromExtensionProvider} from 'keplr-wallet-mobile-private';
import {AsyncKVStore} from './src/common';
import {AutoLock} from './src/components/unlock-modal';
import {
setJSExceptionHandler,
setNativeExceptionHandler,
} from 'react-native-exception-handler';
import {setJSExceptionHandler} from 'react-native-exception-handler';
const semver = require('semver');

const ThemeStatusBar: FunctionComponent = () => {
Expand Down Expand Up @@ -96,14 +93,8 @@ interface AppUpdateWrapperState {
restartAfter?: boolean;
}

setNativeExceptionHandler(exceptionString => {
Bugsnag.notify(exceptionString);
}, false);

setJSExceptionHandler((error, isFatal) => {
if (isFatal) {
Bugsnag.notify(error);
}
setJSExceptionHandler(error => {
Bugsnag.notify(error);
});

// API 구조상 꼭 class 형일 필요는 없는 것 같기도 하지만...
Expand Down
6 changes: 6 additions & 0 deletions packages/mobile/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,8 @@ PODS:
- React-jsi (= 0.73.4)
- React-logger (= 0.73.4)
- React-perflogger (= 0.73.4)
- ReactNativeExceptionHandler (2.10.10):
- React-Core
- RNCAsyncStorage (1.19.3):
- React-Core
- RNDeviceInfo (10.11.0):
Expand Down Expand Up @@ -1232,6 +1234,7 @@ DEPENDENCIES:
- React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`)
- React-utils (from `../node_modules/react-native/ReactCommon/react/utils`)
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- ReactNativeExceptionHandler (from `../node_modules/react-native-exception-handler`)
- "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)"
- RNDeviceInfo (from `../node_modules/react-native-device-info`)
- RNFS (from `../node_modules/react-native-fs`)
Expand Down Expand Up @@ -1404,6 +1407,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/react/utils"
ReactCommon:
:path: "../node_modules/react-native/ReactCommon"
ReactNativeExceptionHandler:
:path: "../node_modules/react-native-exception-handler"
RNCAsyncStorage:
:path: "../node_modules/@react-native-async-storage/async-storage"
RNDeviceInfo:
Expand Down Expand Up @@ -1507,6 +1512,7 @@ SPEC CHECKSUMS:
React-runtimescheduler: 96c8bfa2ea02443b79cd9359afb91dfd1bf3b958
React-utils: 6e5ad394416482ae21831050928ae27348f83487
ReactCommon: 5fd44dbef85dfbafc87facae700c66d2da71b2cb
ReactNativeExceptionHandler: b11ff67c78802b2f62eed0e10e75cb1ef7947c60
RNCAsyncStorage: c913ede1fa163a71cea118ed4670bbaaa4b511bb
RNDeviceInfo: bf8a32acbcb875f568217285d1793b0e8588c974
RNFS: 4ac0f0ea233904cb798630b3c077808c06931688
Expand Down

0 comments on commit 250de2d

Please sign in to comment.