app_update_gate 0.1.2
app_update_gate: ^0.1.2 copied to clipboard
Source-agnostic force/optional update gate for Flutter. Bring your own update policy source (REST API or any backend), guarded by a real store-availability check (Play In-App Update on Android, iTunes [...]
0.1.2 #
- New:
UpdateGate.resumeRecheckAfterre-checks when the app returns to the foreground and the last check is older than the given age. - New:
AppUpdateController.checkIfStale(maxAge)andlastCheckedAt; optionalclockparameter for tests. - Fix: a re-check no longer flashes the app behind a forced screen, and blocking mode no longer shows the loader again on re-checks — the gate keeps the last resolved screen until the new result arrives.
- Fix: overlapping triggers (on open, periodic, resume, manual) share one in-flight check instead of running several evaluations.
0.1.1 #
- Fix: disposing
AppUpdateControllerwhile a check is in flight no longer throws (ValueNotifier used after being disposed); the late result is dropped silently.
0.1.0 #
Initial release — the source-agnostic core extracted from
firebase_remote_update.
UpdatePolicySourceabstraction withHttpUpdatePolicySource(user-defined endpoint, auth headers, body, and JSON mapper) andCallbackUpdatePolicySource.- Explicit
VersionScheme(semanticversion names orbuildNumbercodes) with strict, fail-open validation. AppUpdateController: on-open / periodic / manual check triggers, observablestatus, andForcePresentation(immediateoronNextNavigationviaUpdateGateNavigatorObserver).UpdateGatewidget with blocking and non-blocking modes.- Store-availability gate: Play In-App Update on Android, iTunes lookup on iOS; always fails open.