Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
fix: migration & SNLog integration
Browse files Browse the repository at this point in the history
  • Loading branch information
radko93 committed Nov 3, 2020
1 parent b35fd2f commit e3feba1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'react-native-gesture-handler';
import Bugsnag from '@bugsnag/react-native';
import { enableScreens } from 'react-native-screens';
import { SNLog } from 'snjs';

import { AppRegistry, YellowBox } from 'react-native';
import { App } from './src/App';
Expand All @@ -21,6 +22,11 @@ if (__DEV__ === false) {
console.error = () => {};
// eslint-disable-next-line no-new
new Bugsnag.start();
SNLog.onError = Bugsnag.notify;
SNLog.onLog = Bugsnag.leaveBreadcrumb;
} else {
SNLog.onLog = console.log;
SNLog.onError = console.error;
}

enableAndroidFontFix();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"react-navigation-header-buttons": "^6.0.0",
"sn-textview": "standardnotes/sn-textview#440dbd60eedef4397b6272735e68d4579bb41ac8",
"sncrypto": "standardnotes/sncrypto#5f8cd36",
"snjs": "standardnotes/snjs#d101b8e830e255b2d4e20d05d57d2bc0a3b9261d",
"snjs": "standardnotes/snjs#b07f37232029056699e7eae9af0820ca7cf536d1",
"standard-notes-rn": "standardnotes/standard-notes-rn#996b016",
"styled-components": "^5.2.1"
},
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7988,9 +7988,9 @@ sncrypto@standardnotes/sncrypto#5f8cd36:
version "1.2.0"
resolved "https://codeload.github.com/standardnotes/sncrypto/tar.gz/5f8cd369773cec7f342c23ecaa659d932b35cd31"

snjs@standardnotes/snjs#d101b8e830e255b2d4e20d05d57d2bc0a3b9261d:
snjs@standardnotes/snjs#b07f37232029056699e7eae9af0820ca7cf536d1:
version "1.0.5"
resolved "https://codeload.github.com/standardnotes/snjs/tar.gz/d101b8e830e255b2d4e20d05d57d2bc0a3b9261d"
resolved "https://codeload.github.com/standardnotes/snjs/tar.gz/b07f37232029056699e7eae9af0820ca7cf536d1"

source-map-resolve@^0.5.0:
version "0.5.3"
Expand Down

0 comments on commit e3feba1

Please sign in to comment.