Skip to content
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

[snack][cli] Add support for EAS Update Snack Runtime URLs #147

Merged
merged 3 commits into from Jan 24, 2024

Conversation

byCedric
Copy link
Member

Why

Snack is moving onto EAS Updates for SDK 50. This adds support to the newer URL format, using snack-content helpers.

How

  • Added snack-content@2.0.0-preview.1
  • Updated logic to try parseRuntimeUrl before falling back to legacy code

Test Plan

Open a snack from https://staging-snack.expo.dev

Comment on lines +46 to +48
if (snack?.sdkVersion) {
return `${snack.sdkVersion}.0.0`;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For simplicity reasons, this only returns the major version. But we might need to revert that to just return the full SDK version 🤷

Copy link
Member

@gabrieldonadel gabrieldonadel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@byCedric byCedric merged commit eb79916 into main Jan 24, 2024
1 check passed
@byCedric byCedric deleted the @bycedric/snack/use-snack-content-for-urls branch January 24, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants