setNewBundleName function

String setNewBundleName(
  1. Context context,
  2. String plistFileData,
  3. String currentBundleName,
  4. String desiredBundleName,
)

Implementation

String setNewBundleName(Context context, String plistFileData,
    String currentBundleName, String desiredBundleName) {
  return plistFileData.replaceAll(
      currentBundleName, "<string>${desiredBundleName}</string>");
}