-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
chore(suite-native): make it simple to use Sentry locally in debug build #16356
base: develop
Are you sure you want to change the base?
Conversation
@@ -94,4 +93,4 @@ const PureApp = () => ( | |||
</GestureHandlerRootView> | |||
); | |||
|
|||
export const App = isDebugEnv() ? PureApp : Sentry.wrap(PureApp); | |||
export const App = Sentry.wrap(PureApp); |
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.
I know that we added that condition because of some warning during local development, but now I can't see that warning any more and I guess it is because I removed the condition for Sentry.init and just playing with the enabled
property.
suite-native/app/.env.development
Outdated
@@ -1,2 +1,3 @@ | |||
EXPO_PUBLIC_ENVIRONMENT=debug | |||
EXPO_PUBLIC_IS_ANALYTICS_LOGGER_ENABLED=false | |||
EXPO_PUBLIC_IS_SENTRY_ENABLED=false |
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.
I would like to have it on for development build it helps catch lot of stuff that happens during QA etc. It was like that since beginning.
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.
I see it is confusing, but it still works like that, because the condition for enabling is enabled: !isDebugEnv() || process.env.EXPO_PUBLIC_IS_SENTRY_ENABLED === 'true',
. I'll add comment here.
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.
I'm changing the name to EXPO_PUBLIC_IS_SENTRY_ON_DEBUG_BUILD_ENABLED
instead of the comment to make it more clear.
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.
🚀 Expo preview is ready!
|
Description
Turning on Sentry in the local debug build is now complicated and one has to rewrite several places. This PR tries to simplify it.
From now on it should be enough to switch
EXPO_PUBLIC_IS_SENTRY_ENABLED
in.env.development.local
and do a prebuild.