checkBundleFiles method

Future<bool> checkBundleFiles(
  1. Iterable<ReleaseFile> bundleFiles
)

Checks a bundleFiles with this manifest.

Implementation

Future<bool> checkBundleFiles(Iterable<ReleaseFile> bundleFiles) async {
  var map = Map.fromEntries(bundleFiles.map((e) => MapEntry(e.filePath, e)));

  for (var f in _files.values) {
    var bundleFile = map[f.filePath];
    if (bundleFile == null) return false;

    var ok = await f.checkReleaseFile(bundleFile);
    if (!ok) return false;
  }

  return true;
}