-
Notifications
You must be signed in to change notification settings - Fork 201
Description
Update Sept 11, 2024: We know of at least some developers using Shorebird successfully from China today.
Users should be able to download published patches through our CDN (without needing to do anything special):
https://shorebird.dev/blog/improved-patch-delivery/
However the updater client also talks to api.shorebird.dev which is hosted in Google Cloud and thus may not be accessible.
Developers may also still need to find a way to reach Google Cloud for using shorebird tooling such as using a VPN.
=====
The directions for using Shorebird in china include setting FLUTTER_STORAGE_BASE_URL:
https://docs.flutter.dev/community/china
This environment variable is ignored by shorebird, since shorebird itself uses FLUTTER_STORAGE_BASE_URL to pass download.shorebird.dev to flutter.
The larger issue for developers in China is that Shorebird currently uses Google Cloud as our infrastructure provider and Google Cloud is not reliably reachable across China.
We could implement a proxy within china for download.shorebird.dev and either then make it possible to use FLUTTER_STORAGE_BASE_URL to point to such, or some other environment variable.
However we would still need to make access to api.shorebird.dev more reliable for Shorebird to work for Developers without them needing to modify their network.
Regardless, Shorebird works seems to work for some users in china (the api.shorebird.dev request sometimes fails, but if it succeeds patch installs otherwise seem to work fine in China). Developers who cannot reach api.shorebird.dev will still have trouble actually uploading the patches.