HcAppCast class
The HcAppCast class is used to download an Appcast, based on the Sparkle 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
- HcAppCast({Client? client, HcUpgradeOS? hcUpgradeOS, HcUpgradeDevice? hcUpgradeDevice})
Properties
- client → Client
-
Provide an HTTP Client that can be replaced during testing.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hcUpgradeDevice → HcUpgradeDevice
-
Provide HcUpgradeDevice that ca be replaced during testing.
final
- hcUpgradeOS → HcUpgradeOS
-
Provide HcUpgradeOS that can be replaced during testing.
final
-
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
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