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

Commit 5fb5a99

Browse files
also add message for iOS #721
1 parent 4ae7b7d commit 5fb5a99

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

publish/scripts/installer.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ end`) + `
360360
/**
361361
* Create the iOS build script for uploading dSYM files to Crashlytics
362362
*
363-
* @param {any} enable Is Crashlytics enbled
363+
* @param {any} enable Is Crashlytics enabled
364364
*/
365365
function writeBuildscriptHook(enable) {
366366
var scriptPath = path.join(appRoot, "hooks", "after-prepare", "firebase-crashlytics-buildscript.js");
@@ -632,8 +632,14 @@ module.exports = function($logger, $projectData, hookArgs) {
632632
$logger.warn("Unable to copy google-services.json.");
633633
reject();
634634
}
635+
} else if (hookArgs.platform.toLowerCase() === 'ios') {
636+
var sourceGooglePlist = path.join($projectData.appResourcesDirectoryPath, "iOS", "GoogleService-Info.plist");
637+
if (!fs.existsSync(sourceGooglePlist)) {
638+
$logger.warn(sourceGooglePlist + " does not exist. Please follow the installation instructions from the documentation");
639+
return reject();
640+
}
635641
} else {
636-
resolve()
642+
resolve();
637643
}
638644
});
639645
};

0 commit comments

Comments
 (0)