parseAppcastItemsFromUri method

Future<List<AppcastItem>?> parseAppcastItemsFromUri(
  1. String appCastURL
)

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);
}