addAndroidPermissions function
Implementation
String addAndroidPermissions(Context context, String manifestFileData, List<String> permissionList) {
final parsed = XmlDocument.parse(manifestFileData);
final application = parsed.findAllElements("manifest").toList()[0];
permissionList.forEach((item) =>
application.children.add(buildPermissionNode(item))
);
return parsed.toXmlString(pretty: true);
}