patch_app 0.1.3 copy "patch_app: ^0.1.3" to clipboard
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.cancelled when 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.restartRequired once 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.0 and 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 update to checkAndUpdate.
  • Add PatchResult as the result of checkAndUpdate.
  • Enhance patchAppConfirmationDialog with safety checks for build phase and context mounting.
  • Improve the default dialog text.
  • Update the README.

0.0.3 #

  • Remove the initialize method.
  • Improve the update logic.

0.0.2 #

  • Improve the dialog.

0.0.1 #

  • Initial release.
5
likes
160
points
122
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight helper to patch your Flutter app at runtime using shorebird code push and terminate restart

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, shorebird_code_push, terminate_restart

More

Packages that depend on patch_app