deleteRootAndroidManifestFile function producer

void deleteRootAndroidManifestFile({
  1. required String pathToAndroid,
})

Delete the root/android/src/main/AndroidManifest.xml File because it is only used to set the package name, which is not supported from AGP 8.0+.

Package name is set in the build.gradle File.

Implementation

void deleteRootAndroidManifestFile({
  required String pathToAndroid,
}) {
  pathToAndroid.verifyExists.toAndroidManifestFile.maybeDelete;
}