remote_update_gate 0.1.0
remote_update_gate: ^0.1.0 copied to clipboard
A force or optional update gate for Flutter, driven by your own API: a custom card, an offline latch for forced updates, and allow-listed download links.
Changelog #
0.1.0 #
- First release.
UpdateController: turns your API's update manifest intonone,optionalorforced, with integer build floors and dotted versions.UpdateGate: the optional card (with "Skip this version") and the un-poppable forced block;deferForced,showOptionalOverlayandcardBuilderto fit your app.- An offline latch, so a forced update the app has seen can't be escaped by going offline.
reportServerFloorfor anX-Min-Buildfloor read off any response.- Allow-listed download hosts (
allowedDownloadHosts,setMoreDownloadHosts); no hosts opens no https link. - Allow-listed store apps (
allowedStoreAppIds,allowAnyStoreLink): amarket://oritms-apps://link opens only an app you list; none opens no store link. refresh()joins a refresh already on its way, and keeps the 6-hour throttle for a check that applied a manifest: a failed one is retried afterminRetryInterval(1 minute).refresh(reconnect: true), for the network coming back, skips that minute once after a failed attempt, never after one that applied a manifest. Aclockfor tests.- Runs on Android, iOS, Linux, macOS, Windows and the web.