update_manager library

Classes

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

Enums

PatchUIStyle
Patch UI Style
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.
UpdateTrackType
Update Track Type
UpdateType
Update Type
UpdateUIStyle
Dialog UI Style

Extension Types

UpdateTrack
A track to check for updates on.

Extensions

UpdateTrackTypeExtension on UpdateTrackType
Extension to map enum to UpdateTrack

Typedefs

DownloadPatchCallback = Future<void> Function()
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.