Commit Graph
33 Commits
Author SHA1 Message Date
Kudo Chien 8c38a47170 chore: remove pubnub (#660)
* chore: remove pubnub

* fix lint errors

* fix ci
2026-01-27 20:58:24 +08:00
Bartosz Kaszubowski 85b0519a08 [website] allow specifying device appearance via query, and for embedded use (#643) 2025-08-27 15:02:25 +02:00
Cedric van Putten a1ff6b2c1a refactor: migrate Snackager to snackager.eascdn.net (#639)
* refactor: migrate Snackager to `snackager.expo.dev`

* test: update failing tests

* refactor: migrate Snackager to `snackager.eascdn.net`

* chore: update lockfile

* chore: update Snackager test snapshot
2025-08-19 18:12:07 +02:00
Cedric van Putten c7cef5ab1b refactor(website): split Appetize into per-sdk config (#532) 2024-01-12 14:52:44 +01:00
Cedric van Putten 727de83a2f refactor: upgrade to Expo SDK 49 (#463)
* docs: update `expo-sdk-upgrade.md` guide for runtime upgrades

* refactor(runtime): upgrade to `[email protected]` and run `expo install --fix`

* refactor(runtime): upgrade to required `patch-package` patches

* refactor(runtime): add reanimated plugin through vendoring

* refactor(babel-standalone): restructure and update for `[email protected]`

* fix(runtime): ignore faulty `expo-router/head` type for `Head.Provider` children

* refactor(runtime-shell): apply same update to runtime shell app

* fix: upgrade to `[email protected]`

* refactor(runtime): apply same update to runtime package

* chore(runtime): force all runtime versions to use the new babel package

* chore(content): upgrade to `[email protected]`

* chore(sdk): upgrade to `[email protected]`

* fix(runtime): add missing `LogBox` mock to transport test

* chore(website): upgrade to `[email protected]`

* fix(runtime): add missing `LogBox` mock to transport test

* chore: temporarily add babel build when setting up runtime

* chore(runtime): add assert polyfill for now

* chore(runtime): add missing `mjs` extension to source resolver

* chore(runtime): add missing `useClassicUpdates` to `app.json`

* chore(snack-sdk): bump version to `4.2.0` to link from website and snackager

* fix(snackager): update testing sdk and snapshots

* chore(snack-content): bump version to `1.5.0` to link from `snack-sdk`
2023-09-18 10:41:45 +02:00
Cedric van Putten ce1bfe5f87 feature(website): add per-platform device frame options when embedding snacks (#425)
* feature(website): add per-platform device frame options when embedding snacks

* chore(website): fix linting issues

* fix(website): pass through `snack-` prefixed device frames

* fix(website): avoid setting `screenOnly` and `device` in Appetize

* fix(website): move device platform selection to Appetize URL constructor

* chore(website): add known device scales for embeds and website

* refactor(website): allow scale, device, and frame customization

* fix(website): resolve linting issues

* fix(website): update outdated test
2023-05-17 17:19:08 +02:00
Kudo Chien cba959d880 [docs][runtime][website] rename staging.snack.expo.dev to staging-snack.expo.dev (#412)
# Why

fix the certificate error on https://staging.snack.expo.dev/

# How

we will rename the staging snack website as https://staging-snack.expo.dev/ in https://github.com/expo/universe/pull/11957. this pr renames the name inside snack code

# Test Plan

ci passed and deploy staging to test
2023-04-07 03:12:44 +08:00
Cedric van Putten c7775ed21e Upgrade to Expo SDK 47 (#360)
* fix(runtime): drop sdkVersion from app.json

* refactor(runtime): upgrade to Expo SDK 47 beta

* refactor(runtime): update patches to used package versions

* refactor(snack-content): upgrade to Expo SDK 47 beta

* refactor(snack-sdk): upgrade bundled native modules fixture to Expo SDK 47 beta

* test(snack-sdk): update the tests for Expo SDK 47 beta

* docs(snack-sdk): add changelog entries

* refactor(website): upgrade to Expo SDK 47 beta

* fix(runtime): use event subscriptions in app

* fix(runtime: change barcode scanned types to match code

* test(snackager): update to Expo SDK 47 beta

* docs: update changelogs to include pr

* fix(runtime): work around reanimated issue #3437

See: https://github.com/software-mansion/react-native-reanimated/pull/3437
See: https://github.com/expo/expo/pull/19305\#issuecomment-1263114915

* fix(runtime): fix deployment script removing sdkVersion usage

* refactor(runtime): update dependencies for SDK 47 stable

* refactor(snack-sdk): upgrade bundled native modules fixture to Expo SDK 47 stable

* test(snack-sdk): update the tests for Expo SDK 47 stale
2022-11-10 12:57:41 +01:00
Cedric van Putten 92230917c5 Upgrade Snack to Expo SDK 46 beta (#315)
* [runtime] Upgrade to expo sdk 46 beta

* [runtime] Change app.json to sdk 46

* [runtime] Change entrypoint to index

* [runtime] Customized web files

* [runtime] Disable unknown exceptions in typescript

* [runtime] Remove react 17 types with resolutions

This is caused by https://github.com/DefinitelyTyped/DefinitelyTyped/issues/59862\#issuecomment-1097551922

* [runtime] Upgrade eslint to latest version for typescript

* [runtime] Fix all new eslint errors

* [docs] Change upgrade instructions to match snack-content types

* [snack-content] Update SDK types dropping 43 and adding 46

* [snack-sdk] Update all tests for sdk 46

* [snack-sdk] Update snapshots for sdk 46

* [website] Update sdk list for sdk 46

* [website] Update snapshots for sdk 46

* [snackager] Update snapshot tests for sdk 46

* [runtime] Switch to expo export:web for web deployments

* [runtime] Force old expo-cli for publish

* [runtime] Update all patches to latest versions

* [CI] Use opt-in to skaffold push to allow custom branches

This defers security to GitHub and environments to prevent accidential deployments. Locally, you have to add this environment variable to enable pushing, which is an opt-in and prevents accidental pushes too

* [runtime] Disable Amplitude since its unavailable for SDK 46

* [runtime] Add babel polyfill in production app

Not sure why this is necessary, probably good to check on this after stable release

* [runtime] Bump snack-babel-standalone to version to 1.1.0

* [CI] Allow runtime to take 4gb when publishing

* [snack-content] Set SDK 46 as default SDK for web

* [snackager] Fix bundling [email protected] (#316)

* [snackager] Add babel proposal export namespace from for reanimated

* [snackager] Add test for react native reanimated 2.9.1

* [snackager] Add reanimated as external for skia since its bundled inside the runtime

* [snackager] Remove reanimated hidden peer dep because it can now bundle

* [snackager] Update bundling snapshot for reanimated 2.9.1

* [snackager] Update snapshot tests for default sdk 46

* [snack-sdk] Update snapshot tests for default sdk 46
2022-08-02 12:19:47 +02:00
Cedric van Putten 796b185fb5 [docs] Update upgrade guide with snack-content changes 2022-05-05 20:05:35 +02:00
Hein Rutjes e2a5a6bcb6 [docs] Add Snack diagram (#237) 2021-12-28 23:36:42 +01:00
kgc00 e1ece01f17 [snack-sdk][website][snackager][docs] track events by uuid (#239)
- [snack-sdk][website] track events by accountSnackId and snackId
- [website][snack-sdk] properly injected props into snack and established state for new fields
- [website][snack-sdk] reworks saving in App.tsx so it updates state and analytics state
- [docs] Update to docs to include changes to types
- [snackager] update snapshot test for snackager bundler
2021-12-17 17:00:24 -07:00
Juwan Wheatley d3102f1b72 update remaining relevant urls to expo.deg (#200) 2021-08-24 09:17:13 -04:00
Hein Rutjes 8ec7f6c744 [docs] Add instructions on Snackager NPM caches and invalidation 2021-08-19 15:43:08 +02:00
Hein Rutjes 507261c076 [docs] Update to dev domain (#185) 2021-07-22 10:02:54 +02:00
Hein Rutjes a4ce8ed240 [snack] Migrate staging urls to .dev (#149) 2021-05-27 10:28:05 +02:00
Hein Rutjes 01cc88ff2e [docs] Update snackager/runtime file paths 2021-05-20 16:06:18 +02:00
Hein Rutjes 38cfb2722b [docs] Add SDK upgrade manual (#109)
* [docs] SDK upgrade manual

* finalize

* Add hidden reference in readme
2021-04-22 13:20:09 +02:00
Hein Rutjes 97ae2167e6 [snackager] Add snackager bundler (#80)
* [snackager] Add Snackager server
2021-04-15 12:25:10 +02:00
Hein Rutjes 4284ae54f6 [website] Add option to test with locally running webplayer (#108)
Testing against a locally running web-player (runtime) is cumbersome to configure. This PR adds an option called "localhost" to the SDK version switcher that when selected connects to the locally running Snack web-player on localhost:19006. This option is only visible in development.
2021-02-27 14:02:24 +01:00
Hein Rutjes 4fcb907309 [proxy] Add Snackager proxy (#104)
Adds a proxy for Snackager. The proxy allows for seeing the requests sent to Snackager and automatically switches to the local running Snackager when possible. This removes the need for the `local_snackager` query argument in the website.
2021-02-24 16:06:17 +01:00
Hein Rutjes 57c8fee243 [tools] Replace direnv by env-cmd (#88)
* [website] Remove the need for direnv

* fix ci test
2021-02-18 16:28:41 +01:00
Hein Rutjes 0720117f05 [proxy] Fix local server detection and consolidate code (#85) 2021-02-15 16:43:24 +01:00
Hein Rutjes c532d980f3 [website] Add proxies for Expo www and website servers (#45)
Adds proxies and tooling for running the Snack website, without requiring access to Universe server/www or server/website.

This adds two packages expo-www-proxy and expo-website-proxy which forward (and log) requests to the Expo staging servers. This allows contributors (who don't have access to Universe) to run the Snack website locally, and allows for a faster development workflow.

This adds a single command yarn start which is run from the root of the repository. This runs PM2 which starts, monitors and watches the Snack services.
2021-02-02 11:19:52 +01:00
Hein Rutjes 17eac2957f [sdk] Add web preview support (#17)
This PR adds auto-configuration and a transport for using the Snack web-player (v2). This code was previously implemented in snack-web and also in the example app. This consolidates the code in the snack-sdk and make it easy for anyone to use the web-player. This also provides a better upgrade path when we want to provide access to partners.
2021-01-06 15:51:11 +01:00
Hein Rutjes fe3a877ac5 [docs] Add verbose and hideQueryParams url arguments (#36) 2021-01-04 18:10:21 +01:00
Hein Rutjes b8d6e4d04b [sdk] Add standardizeDependencies helper function (#11) 2020-12-04 16:37:35 +01:00
Hein Rutjes 4faa9920c4 [sdk] Add isFeatureSupported helper function (#10) 2020-12-04 15:37:01 +01:00
Hein Rutjes 696e8e9287 [docs] Fix install instruction for snack-sdk 2020-12-03 18:04:18 +01:00
Hein Rutjes 896604df6e Add snack-sdk API reference documentation 2020-11-26 16:05:55 +01:00
Hein Rutjes 63c202a6e0 Move snack-sdk documentation to docs 2020-11-26 15:50:44 +01:00
Hein Rutjes e52e083f0a Add documentation section 2020-11-26 15:11:22 +01:00
Hein Rutjes e3b688d212 Add docs 2020-11-24 15:49:01 +01:00