update_manager library

Classes

Patch
An object representing a single patch (over-the-air update).
RemoteConfigService
ShorebirdUpdater
Manage updates for a Shorebird app.
UpdateManager

Enums

ShorebirdUpdateStatus
Status of Shorebird patch updates
UpdateFailureReason
The reason a call to ShorebirdUpdater.update failed.
UpdateSource
Indicates the source/type of the update
UpdateStatus
The current status of the app in terms of whether its up-to-date.
UpdateType

Extension Types

UpdateTrack
A track to check for updates on.

Typedefs

ShorebirdStatusCallback = Future<void> Function({String? errorMessage, int? patchNumber, required ShorebirdUpdateStatus status, UpdateType? type})
UpdateManagerCallback = Future<void> Function({int? patchNumber, required UpdateSource source, required UpdateType type})

Exceptions / Errors

ReadPatchException
An exception thrown by ShorebirdUpdater.readCurrentPatch and ShorebirdUpdater.readNextPatch when the read is unsuccessful.
UpdateException
An exception thrown by ShorebirdUpdater.update when the update is unsuccessful.