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

Commit 7a1b888

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

File tree

4 files changed

+11
-44
lines changed

4 files changed

+11
-44
lines changed

demo-push/app_resources/iOS/GoogleService-Info.plist

Lines changed: 0 additions & 40 deletions
This file was deleted.

demo-push/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
},
1111
"dependencies": {
12-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.3.0.tgz",
12+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.3.1.tgz",
1313
"nativescript-theme-core": "^1.0.4",
1414
"nativescript-unit-test-runner": "^0.3.4",
1515
"tns-core-modules": "~4.2.0"

publish/scripts/installer.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -866,9 +866,16 @@ var copyPlist = function(copyPlistOpts) {
866866
fs.writeFileSync(destinationGooglePlist, fs.readFileSync(sourceGooglePlistDev));
867867
return true;
868868
}
869-
} else if (!fs.existsSync(destinationGooglePlist)) { // single GoogleService-Info.plist modus but missing
869+
} else if (!fs.existsSync(destinationGooglePlist)) { // single GoogleService-Info.plist modus but missing`;
870+
if (externalPushClientOnly) {
871+
beforeCheckForChangesContent += `
872+
return true; // this is a push-only project, so this is allowed`;
873+
} else {
874+
beforeCheckForChangesContent += `
870875
copyPlistOpts.$logger.warn("nativescript-plugin-firebase: " + destinationGooglePlist + " does not exist. Please follow the installation instructions from the documentation");
871-
return false;
876+
return false;`;
877+
}
878+
beforeCheckForChangesContent += `
872879
} else {
873880
return true; // single GoogleService-Info.plist modus
874881
}

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-plugin-firebase",
3-
"version": "7.3.0",
3+
"version": "7.3.1",
44
"description": "Fire. Base. Firebase!",
55
"main": "firebase",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)