Skip to content

Instantly share code, notes, and snippets.

View ephemer's full-sized avatar

Geordie J ephemer

View GitHub Profile
@ephemer
ephemer / addSwiftOptions.js
Last active August 29, 2015 14:15
Add swift build options
// 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;