createAndroidManifest function

void createAndroidManifest(
  1. dynamic domain
)

Creating a new maifest File

This Function is use for creating a new Manifest file Sometimes file to give permssion in modifying the manifest folder. Therefore it will be a good option to delete it

Implementation

void createAndroidManifest(domain) {
  final androidManifest = File(_androidManifestFile);
  androidManifest.createSync(recursive: true);
  print('[Android] Creating a new manifest file');
  androidManifest.writeAsString(
      _androidNewMainMinfest(
        '${domain[1]}.${domain[2]}.${domain[3]}',
        '${domain[3]}',
      ),
      mode: FileMode.write);
  _projectName = '${domain[3]}';
}