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

Commit 58bc2ea

Browse files
better safe than sorry
1 parent 2dbf72c commit 58bc2ea

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

publish/scripts/installer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function saveConfig() {
3333
function readConfig() {
3434
try {
3535
config = JSON.parse(fs.readFileSync(pluginConfigPath));
36+
externalPushClient = isSelected(config["external_push_client_only"]);
3637
} catch (e) {
3738
console.log("Failed reading " + pluginConfigFile);
3839
console.log(e);
@@ -852,7 +853,7 @@ return new Promise(function(resolve, reject) {
852853
fs.writeFileSync(destinationGoogleJsonAlt, fs.readFileSync(sourceGoogleJson));
853854
resolve();
854855
} else {
855-
$logger.warn("Unable to copy google-services.json.");
856+
$logger.warn("Unable to copy google-services.json. You need this file, because the Google Services Plugin cannot function without it..");
856857
reject();
857858
}
858859
} else if (platform === 'ios') {

src/scripts/postinstall.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2831,6 +2831,7 @@ function saveConfig() {
28312831
function readConfig() {
28322832
try {
28332833
config = JSON.parse(fs.readFileSync(pluginConfigPath));
2834+
externalPushClient = isSelected(config["external_push_client_only"]);
28342835
} catch (e) {
28352836
console.log("Failed reading " + pluginConfigFile);
28362837
console.log(e);
@@ -3650,7 +3651,7 @@ return new Promise(function(resolve, reject) {
36503651
fs.writeFileSync(destinationGoogleJsonAlt, fs.readFileSync(sourceGoogleJson));
36513652
resolve();
36523653
} else {
3653-
$logger.warn("Unable to copy google-services.json.");
3654+
$logger.warn("Unable to copy google-services.json. You need this file, because the Google Services Plugin cannot function without it..");
36543655
reject();
36553656
}
36563657
} else if (platform === 'ios') {

0 commit comments

Comments
 (0)