parseAppcastItemsFromUri method
Download the Appcast from appCastURL
.
Implementation
Future<List<AppcastItem>?> parseAppcastItemsFromUri(String appCastURL) async {
http.Response response;
try {
response = await client.get(Uri.parse(appCastURL));
} catch (e) {
print('upgrader: parseAppcastItemsFromUri exception: $e');
return null;
}
final contents = utf8.decode(response.bodyBytes);
return parseAppcastItems(contents);
}