-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Justin/sentry #55
Closed
Closed
Justin/sentry #55
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
37c7fda
set up codebase
JustinMi cabed82
Set up Sentry in codebase (with config info in app.json)
JustinMi 425ae47
fixed dsn
JustinMi 6abb7b9
removed Sentry config info from app.json, moved to .env.development. …
JustinMi b278d96
added Sentry config to .env.example, re-added eslint config stuff for…
JustinMi 87d52bc
changed '@sentry/browser' to 'sentry-expo'
JustinMi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
AIRTABLE_BASE_ID='your-API-key-here' | ||
AIRTABLE_API_KEY='keyioENo5dwh9Czt9' | ||
IMG_API_KEY='image-API-key-here' | ||
IMG_API_KEY='image-API-key-here' | ||
SENTRY_ORG='calblueprint' | ||
SENTRY_PROJECT='dccentralkitchen' | ||
SENTRY_AUTH_TOKEN='7156d22756444307981c94cf70ef094a61783b1959344a29866c55aeb29cfbb1' |
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 |
---|---|---|
|
@@ -4,8 +4,30 @@ import { Asset } from 'expo-asset'; | |
import * as Font from 'expo-font'; | ||
import React, { useState } from 'react'; | ||
import { Platform, StatusBar, StyleSheet, View } from 'react-native'; | ||
import * as Sentry from 'sentry-expo'; | ||
import AppNavigator from './navigation/AppNavigator'; | ||
|
||
Sentry.init({ | ||
dsn: 'https://[email protected]/5172575', | ||
enableInExpoDevelopment: true, | ||
debug: true, | ||
}); | ||
|
||
// from https://forum.sentry.io/t/set-release-after-init/6759/2 | ||
// may be able to turn this code block off in production | ||
setTimeout(async () => { | ||
Sentry.configureScope((scope) => { | ||
scope.addEventProcessor((event) => { | ||
event.release = 'newRelease'; | ||
return event; | ||
}); | ||
}); | ||
await Sentry.captureMessage('Something Broke'); | ||
}, 1000); | ||
|
||
// turn this on in production | ||
// Sentry.setRelease(Constants.manifest.revisionId); | ||
|
||
export default function App(props) { | ||
const [isLoadingComplete, setLoadingComplete] = useState(false); | ||
|
||
|
@@ -30,7 +52,7 @@ async function loadResourcesAsync() { | |
await Promise.all([ | ||
Asset.loadAsync([ | ||
require('./assets/images/robot-dev.png'), | ||
require('./assets/images/robot-prod.png') | ||
require('./assets/images/robot-prod.png'), | ||
]), | ||
Font.loadAsync({ | ||
// This is the font that we are using for our tab bar | ||
|
@@ -41,8 +63,8 @@ async function loadResourcesAsync() { | |
// Used across application | ||
'poppins-regular': require('./assets/fonts/Poppins-Regular.ttf'), | ||
'poppins-semibold': require('./assets/fonts/Poppins-SemiBold.ttf'), | ||
'poppins-medium': require('./assets/fonts/Poppins-Medium.ttf') | ||
}) | ||
'poppins-medium': require('./assets/fonts/Poppins-Medium.ttf'), | ||
}), | ||
]); | ||
} | ||
|
||
|
@@ -59,6 +81,6 @@ function handleFinishLoading(setLoadingComplete) { | |
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff' | ||
} | ||
backgroundColor: '#fff', | ||
}, | ||
}); |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries about the trailing comma diffs - it gets updated in #53 (but odd that your prettier is using a different config; I added a workspace
settings.json
in the same PR so hopefully that fixes it)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I leave them as is then?