chore(example): added WASM support to example
Supersedes #1867 by @josxha.
- Reset web index.html config file to initial state in Flutter 3.22
- Also adds required headers to Firebase config (hopefully)
Would like to add an indicator using dart-lang/sdk/issues/55694 when it becomes available, to confirm usage of WASM.
Also adds required headers to Firebase config (hopefully)
It's possible to deploy branches temporarily on firebase hosting, see https://github.com/FirebaseExtended/action-hosting-deploy?tab=readme-ov-file#channelid-string. Maybe a good way to test those changes or even to setup a permanent hosted version running on wasm?
It's possible to deploy branches temporarily on firebase hosting, see FirebaseExtended/action-hosting-deploy#channelid-string.
Yep, I've looked into this extensively before. However, I disabled it, as most of our PRs come from forks, and for security reasons, GitHub Actions and Firebase won't do this from a fork PR. I can try deploying a preview version manually perhaps?
https://fleaflet-firebase--preview-wasm-bfczu5tt.web.app/
Can confirm it doesn't work, but only because the CTP uses Dio which doesn't support Dio yet. Not sure why I couldn't reproduce this locally, but I guess we'll have to hold off for now.
Open pull request here:
- https://github.com/cfug/dio/pull/2215
While I tested my branch I had the problem that the polygon stresstest page gets stuck and doesn't seem to unfreezed after i zoomed in. Does this happen here too?
Waiting for:
- https://github.com/cfug/dio/pull/2215
- A Flutter release (beta channel) with Dart 3.5.0-185.0.dev, to include https://github.com/dart-lang/sdk/commit/6b71aa1f3e997fcbbb19930a1c029ffcebf33d67
Since web_adapter v2.0.0, dio shouldn't be a blocker anymore. Dart 3.5 is out as of Flutter 3.24.
Wasm is now available! See it working in the preview (confirm with the drawer): https://fleaflet-firebase--wasm-test-g7fo47s3.web.app/.