-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add support for EAS Update #302
Conversation
Absolutely, which is why expo/expo#20201 is pending merge. I always want to make sure there's no issues with the release before making it the default for everyone. |
Any advice for sourcemap uploads to Sentry for EAS Updates? Will there be support for automatic upload as a post-publish hook when deploying an EAS Update? Thanks for your work on this! |
You can try to adapt expo/expo#19753 (comment) |
There are new instructions for managing sourcemap upload when running using EAS Updates inside of the official Expo documentation: |
Checklist
Why
This PR adds support for EAS Update.
How
This PR adds support for EAS Update through the following set of changes:
Updates.isEmbeddedLaunch
property ofexpo-updates
to determine whether a build or an update is loaded.dist
value that matches the default behavior of the embedded scripts that are used at build time to setdist
Updates.updateId
as unique identifier fordist
. Therelease
field is untouched, as the update applies to the same release (major version and build number/version code).expo-updates
required an upgrade to Expo SDK 47. This will be the minimum supported SDK release for this version.@sentry/react-native
is also bumped to the latest version@sentry/react
as a wrapper for@sentry/browser
. As this is more applicable to the web projects this libary is used for, this is now exported asSentry.React.*
. The exports also stay available throughSentry.Browser.*
for backwards compatibility purposes.Test Plan
This version of
sentry-expo
has been successfully used in manual testing in an app for both builds and updates.