isAppcastThisPlatform method
bool
isAppcastThisPlatform(
)
Implementation
bool isAppcastThisPlatform() {
if (appCastConfig == null ||
appCastConfig!.url == null ||
appCastConfig!.url!.isEmpty) {
return false;
}
// Since this appcast config contains a URL, this appcast is valid.
// However, if the supported OS is not listed, it is not supported.
// When there are no supported OSes listed, they are all supported.
var supported = true;
if (appCastConfig!.supportedOS != null) {
supported =
appCastConfig!.supportedOS!.contains(upgradeOS.operatingSystem);
}
return supported;
}