-
Notifications
You must be signed in to change notification settings - Fork 147
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
feat: shorebird
should support older flutter versions
#472
Comments
I expect we will do this, possibly soon. Right now we're prioritizing other work on the assumption that our users in production are comfortable being on limited to 3.10 for now. (Or comfortable manually checking out an older release of Please feel welcome to 👍 if you need this sooner, or have other needs for older revisions. |
Does this only depend on what the customer is building with, or does something on Shorebird server side also has to match? I'd say user being able to (try to) pick any version is ideal, though download and cherry-pick script. |
Shorebird's servers can support a range of The work here is to make |
Such a system could also let us more easily track Flutter channels (including beta and master). |
Update: Remaining work involves:
|
There may be stages we can do to fix this.
@felangel seemed to think #1 was just a few hours of work. I think #2 probably just as easy, just requires some UI decisions. #3 is weeks of work (as described above). |
Hello guys, I just added shorebird to my flutter project and it is throwing a lot of errors while building although my normal flutter release build is working perfectly. I did shorebird doctor and realised that it is running flutter 3.10.2 while I am running flutter 3.7.12. Is there a way to make shorebird run same version as my system Flutter? |
Shorebird currently only supports the latest released version of Flutter. This bug is about adding support for older versions. We hope to address it soon, but for now to use Shorebird requires being the app to be able to build with the latest stable Flutter. |
Thanks for the reply. I am hoping this is done soon because, in reality, most folks won't keep updating their Flutter version and fighting dependency conflicts in order to use Shorebird on it. Just an honest review. I love the product and excited about it but this will be a major blocker for me at the moment. |
I cannot use Shorebird with older flutter version. Please kindly make it work for Flutter older versions |
Shorebird now supports patching older releases 🎉 |
does this mean that Shorebird supports older versions of Flutter at the moment? |
Shorebird now correctly lets you patch existing applications which you released with a previous version of Shorebird (and thus Flutter). Shorebird does not yet support releasing new applications with older versions of Flutter, only patching existing applications which have already been released with an older version of Flutter/Shorebird. #1037 tracks remaining work to support releasing new applications with older versions of Flutter. |
oh great. Thanks for the clarity. Waiting on the feature supporting releasing new applications with older flutter versions to be released. Thanks. |
I've also filed #1100 to track adding support for more versions now that we have the client-side infrastructure to do so. We still need to add the build infrastructure. |
@eseidel We'll greatly appreciate it if we can build with a specific Flutter version because some big old projects are stable on specific Flutter versions (not so old but not the latest). This really will be problematic for a lot of us to adopt Shorebird even though it is a lifesaver. We appreciate the incredible work you guys have done. Thanks a lot for your efforts. |
Which versions do you need? |
I have flutter installed only via fvm and run into shorebird doctor error "[✗] Flutter install is correct / how are shorebird and fvm supposed to play together ? |
Thanks. Filed #1385. Please don't ever hesitate to file additional issues as desired. |
Hi, sorry for the delayed response. I had a project running with 3.3.1 but when I checked the Supported Flutter Versions, I realized that the real magic starts from 3.10.6 given that the ios support and code push support starts after 3.10.6. So I upgraded my project to 3.10.6. It would still be preferred that you start supporting more versions soon if that's not a big ask. and Thanks for getting back to me. I appreciate that. |
I've updated our docs a bit to note that while we support 3.10.0 and newer the builds that we offer for 3.10.0 were made at the time of those releases and have not been updated since with newer shorebird features. They mostly exist to allow individuals to update existing apps that they already published with those (now months old) versions of Shorebird. If possible, I would encourage you to update all the way to the latest Flutter stable (which is where all the latest Shorebird features are added): Best of luck! |
Hello every one. I have some problems with shorebird, when I run command |
Hi @eseidel, will shorebird support 2.x.x version or at least the highest version of it, 2.10.5? Our project is at 2.x.x and we would love to use shorebird but transitioning the flutter version from 2.x.x to 3.10.0 or higher version is a struggle since our project is big and a lot of breaking changes to fix, and also unsupported packages that we also use have no alternatives. |
I think it's highly unlikely that Shorebird Code Push will be supported on Flutter 2.x.x anytime soon, if ever. Flutter 3 was released May 12, 2022, about 9 months before Shorebird started as a company. Flutter 3.10.x was the earliest version of Flutter Shorebird Code Push has ever supported. |
Oww I see. Nevertheless, thank you for the quick response. |
Currently
shorebird
is tied to a specificflutter
revision. Which also means that its tied to a specific Flutter engine and Dart VM version.Dart snapshots are not stable between Dart revisions. Flutter includes Dart snapshots (inside libapp.so) in your application. So when you do a release with Flutter or Shorebird, if you wish to later patch that release with Shorebird, you have to do it from an exactly matching Dart revision (implying a matching Flutter and matching Shorebird revision).
shorebird
does not need to be tightly coupled to a singleflutter
release. We could offerfvm
-like functionality, of downloading different versions of Flutter per project.If we did this, then it would be possible for us to release a new version of Shorebird, which depend on a new version of Flutter without worrying that users then have to take explicit action to downgrade their version of Shorebird in order to patch older apps in the wild.
Presumably if we did this we would only support a limited set of older flutter revisions, and only back to some certain point, as we do currently maintain (very small) patches on top of Flutter which we might have to also maintain on older branches of Flutter in this model.
The text was updated successfully, but these errors were encountered: