flutter 的热更新方案shorebird
Flutter 热修复(Shorebird)_flutter shorebird-CSDN博客
Preview Locally | ShorebirdLearn how to preview an existing release of your application.https://docs.shorebird.dev/code-push/preview/
控制台: Shorebird Console
文档: Welcome | Shorebird
基本命令
要将现有 Flutter 项目配置为使用 Shorebird,请使用 shorebird init
在 Flutter 项目的根目录下:
shorebird init
为了开始推送更新,您需要创建一个版本。
shorebird release android
打补丁 一个版本可以打n个补丁,补丁是版本号后面的小数字
shorebird patch android
注意:
- 只有是安装了 shorebird 打包的应用,打的补丁更新可能需要一天才会更新的到
- 没有平台的限制,只要是安卓了包,不管是 不是再google play分发,获appStore 或者自己网站分发,都是可以自动更新到的
- 手动控制更新的话,结合 shorebird_code_push 库进行自定义更新和重启