From 975400f02385f3ef17a6cc74d30af40379d4028f Mon Sep 17 00:00:00 2001 From: Dave Alden Date: Wed, 13 Nov 2019 17:33:48 +0000 Subject: [PATCH] [iOS] Fix after_prepare hook to run on multiple platforms so if they are added in one operation using `cordova prepare`, both platforms are processed. Fixes #221. --- scripts/after_prepare.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/after_prepare.js b/scripts/after_prepare.js index c186170db..c5279cefa 100644 --- a/scripts/after_prepare.js +++ b/scripts/after_prepare.js @@ -138,7 +138,9 @@ module.exports = function (context) { Utilities.writeJsonToXmlFile($colorsXml, PLATFORM.ANDROID.colorsXml.target); Utilities.log('Updated colors.xml with accent color'); } - }else if (platforms.indexOf('ios') !== -1 && Utilities.directoryExists(IOS_DIR)){ + } + + if (platforms.indexOf('ios') !== -1 && Utilities.directoryExists(IOS_DIR)){ Utilities.log('Preparing Firebase on iOS'); Utilities.copyKey(PLATFORM.IOS);