patch_app 0.1.3
patch_app: ^0.1.3 copied to clipboard
A lightweight helper to patch your Flutter app at runtime using shorebird code push and terminate restart
Changelog #
0.1.3 #
- feat: return
PatchResult.cancelledwhen the restart prompt is dismissed so callers can distinguish user-aborted restarts from genuine updates. - fix: only start throttling after an update run begins and report
PatchResult.restartRequiredonce the restart is accepted (or when the dialog cannot be shown) so cancelled restarts no longer surface as required. - docs: clarify the confirmation/result contract in the README.
0.1.2 #
- feat: add useRootNavigator option to patchAppConfirmationDialog.
0.1.1 #
- feat: add Flutter example app integrating patch_app.
- style: reformat dialog builder indentation.
0.1.0 #
-
BREAKING CHANGE:
- feat: convert PatchApp to instance-based lifecycle-aware updater.
- Use dart
^3.7.0and flutter>=3.29.0.
-
Update docs and README.
-
MIGRATION GUIDE:
Old version:
await PatchApp.instance.checkAndUpdate( confirmDialog: () => patchAppConfirmationDialog(context: context), minInterval: const Duration(minutes: 15), onError: (error, stack) { debugPrint("Update failed: $error"); }, );New version:
PatchApp( confirmDialog: (context) => patchAppConfirmationDialog(context: context), minInterval: const Duration(minutes: 15), onError: (error, stack) => debugPrint('Update failed: $error'), ).checkAndUpdate(context);
0.0.4 #
- Rename from
updatetocheckAndUpdate. - Add
PatchResultas the result ofcheckAndUpdate. - Enhance
patchAppConfirmationDialogwith safety checks for build phase and context mounting. - Improve the default dialog text.
- Update the README.
0.0.3 #
- Remove the
initializemethod. - Improve the
updatelogic.
0.0.2 #
- Improve the dialog.
0.0.1 #
- Initial release.