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

Commit 29e3024

Browse files
author
Bart van den Burg
committed
also add message for iOS
1 parent dbf48b8 commit 29e3024

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/scripts/postinstall.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3434,6 +3434,12 @@ module.exports = function($logger, $projectData, hookArgs) {
34343434
34353435
$logger.out("Copy " + sourceGoogleJson + " to " + destinationGoogleJson + ".");
34363436
fs.writeFileSync(destinationGoogleJson, fs.readFileSync(sourceGoogleJson));
3437+
} else if (hookArgs.platform.toLowerCase() === 'ios') {
3438+
var sourceGoogleJson = path.join($projectData.appResourcesDirectoryPath, "iOS", "GoogleService-Info.plist");
3439+
if (!fs.existsSync(sourceGoogleJson)) {
3440+
$logger.warn(sourceGoogleJson + " does not exist. Please follow the installation instructions from the documentation");
3441+
return reject();
3442+
}
34373443
}
34383444
34393445
resolve()

0 commit comments

Comments
 (0)