updateLauncherName function
void
updateLauncherName(
- Context context
)
Implementation
void updateLauncherName(Context context) {
final String plistFileData = common.readFile(context.infoPlistPath);
final String desiredBundleName = common.fetchLauncherName(context);
final String currentBundleName =
fetchCurrentBundleName(context, plistFileData);
final String updatedPlistData = setNewBundleName(
context, plistFileData, currentBundleName, desiredBundleName);
common.overwriteFile(context.infoPlistPath, updatedPlistData);
}