parseAppcastItemsFromUri method

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

Download the Appcast from appCastURL.

Implementation

Future<List<AppcastItem>?> parseAppcastItemsFromUri(String appCastURL) async {
  await _getDeviceInfo();

  http.Response response;
  try {
    response = await client!.get(Uri.parse(appCastURL));
  } catch (e) {
    print(e);
    return null;
  }
  final contents = utf8.decode(response.bodyBytes);
  return parseItemsFromXMLString(contents);
}