ManifestManager constructor

ManifestManager(
  1. Map<String, File> manifestFiles
)

Implementation

ManifestManager(this.manifestFiles) {
  for (final manifestFileEntry in manifestFiles.entries) {
    final manifestFile = manifestFileEntry.value;
    final document = XmlDocument.parse(manifestFile.readAsStringSync());
    XmlElement? applicationElement = document.getElement("manifest");
    if (applicationElement == null) {
      throw Exception("Invalid manifest file");
    }
    final application = ManifestNode.parse(applicationElement);
    final model = AndroidManifest(application);
    _manifest[manifestFileEntry.key] = model;
  }
}