This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file to be added to the <platform name="ios"> tag of your plugin.xml like this: | |
// <hook type="after_plugin_install" src="hooks/addSwiftOptions.js" /> | |
var fs = require("fs"); | |
module.exports = function (context) { | |
var projectRoot = context.opts.projectRoot; | |
var xcconfigPath = projectRoot + "/platforms/ios/cordova/build.xcconfig"; | |
var pluginDir = context.opts.plugin.dir; |