This implementation
|
return contents.replace(pattern, `${fullMatch[0]}${skipOpenUrlForFirebaseAuthBlockSwift}\n`); |
has an issue when same block skipOpenUrlForFirebaseAuthBlockSwift added multiple times into AppDelegate.swift when
npx expo prebuild
command executed.
Need to replace on
if (!contents.includes(skipOpenUrlForFirebaseAuthBlockSwift)) {
return contents.replace(pattern, `${fullMatch[0]}${skipOpenUrlForFirebaseAuthBlockSwift}\n`);
}
return null;
to fix this issue.