Appcast class

The Appcast class is used to download an Appcast, based on the Sparkle framework by Andy Matuschak. Documentation: https://sparkle-project.org/documentation/publishing/ An Appcast is an RSS feed with one channel that has a collection of items that each describe one app version.

Constructors

Appcast({Client? client, Map<String, String>? clientHeaders, UpgraderOS? upgraderOS, UpgraderDevice? upgraderDevice})

Properties

client → Client
Provide an HTTP Client that can be replaced during testing.
final
clientHeaders Map<String, String>?
Provide the HTTP headers used by client.
final
hashCode int
The hash code for this object.
no setterinherited
items List<AppcastItem>?
The items in the Appcast.
getter/setter pair
osVersionString String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
upgraderDevice UpgraderDevice
Provide UpgraderDevice that ca be replaced during testing.
final
upgraderOS UpgraderOS
Provide UpgraderOS that can be replaced during testing.
final

Methods

bestCriticalItem() AppcastItem?
Returns the latest critical item in the Appcast.
bestItem() AppcastItem?
Returns the latest item in the Appcast based on OS, OS version, and app version.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseAppcastItems(String contents) Future<List<AppcastItem>?>
Parse the Appcast from XML string.
parseAppcastItemsFromUri(String appCastURL) Future<List<AppcastItem>?>
Download the Appcast from appCastURL.
parseItemsFromXMLString(String xmlString) List<AppcastItem>?
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited