Skip to content

Commit

Permalink
[iOS] Fix after_prepare hook to run on multiple platforms so if they …
Browse files Browse the repository at this point in the history
…are added in one operation using `cordova prepare`, both platforms are processed.

Fixes #221.
  • Loading branch information
Dave Alden committed Nov 13, 2019
1 parent 1410ea4 commit 975400f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/after_prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 975400f

Please sign in to comment.