Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit e68f2eb

Browse files
GoogleService-Info.plist missing error #991
1 parent 7a1b888 commit e68f2eb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/scripts/postinstall.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3664,9 +3664,16 @@ var copyPlist = function(copyPlistOpts) {
36643664
fs.writeFileSync(destinationGooglePlist, fs.readFileSync(sourceGooglePlistDev));
36653665
return true;
36663666
}
3667-
} else if (!fs.existsSync(destinationGooglePlist)) { // single GoogleService-Info.plist modus but missing
3667+
} else if (!fs.existsSync(destinationGooglePlist)) { // single GoogleService-Info.plist modus but missing`;
3668+
if (externalPushClientOnly) {
3669+
beforeCheckForChangesContent += `
3670+
return true;`;
3671+
} else {
3672+
beforeCheckForChangesContent += `
36683673
copyPlistOpts.$logger.warn("nativescript-plugin-firebase: " + destinationGooglePlist + " does not exist. Please follow the installation instructions from the documentation");
3669-
return false;
3674+
return false;`;
3675+
}
3676+
beforeCheckForChangesContent += `
36703677
} else {
36713678
return true; // single GoogleService-Info.plist modus
36723679
}

0 commit comments

Comments
 (0)