changeIOSAppName function

Future<void> changeIOSAppName(
  1. Map<String, String> names
)

Changes iOS App Name. names contains the respective subtags of the languages and the corresponding translated launcher name. names has to contain a "default" key for all unsupported languages.

Implementation

Future<void> changeIOSAppName(Map<String, String> names) async {
  await _createResourcesDirectory();
  await _deleteUnnecessaryLanguageDirectories(names.keys.toList());

  names.forEach((key, value) async {
    await _createNewLanguageDirectoryWithContent(key, value);
  });
  await _overwriteInfoPlist();
}