-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Fix various crashes and add bugsnag reporting (#148)
* Fix: Fix crash on empty or non-numeric Manual GPS coord Move code into try-catch fixes #134 * fix: bugsnag notify instead of console.error console.error may have been causing RN crash in production * Fix: App crashes instead of handling error Attempt to fix facebook/react-native#24382 pending facebook/react-native@d7bd6cc which needs update to RN 0.59.5 * fix: Extend server start timeout On some devices server start is taking longer than 10 seconds * fix: catch server start timeout * Fix: Log photo capture error * chore(logging): Add breadcrumbs to mapeo core startup * Update bugsnag breadcrumb text * REVERSE THIS: error test * Add releaseStage to bugsnag reporting * Revert "REVERSE THIS: error test" This reverts commit 9ff0458. * Add bugsnag reporting to photo capture
- Loading branch information
1 parent
c07c469
commit d8579a9
Showing
7 changed files
with
93 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
import { Client } from "bugsnag-react-native"; | ||
import { Client, Configuration } from "bugsnag-react-native"; | ||
import semver from "semver"; | ||
import { version } from "../../../package.json"; | ||
|
||
const bugsnag = new Client("572d472ea9d5a9199777b88ef268da4e"); | ||
const config = new Configuration("572d472ea9d5a9199777b88ef268da4e"); | ||
const prereleaseComponents = semver.prerelease(version); | ||
config.releaseStage = __DEV__ | ||
? "development" | ||
: prereleaseComponents | ||
? prereleaseComponents[0] | ||
: "production"; | ||
const bugsnag = new Client(config); | ||
|
||
export default bugsnag; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters