Skip to content

Commit

Permalink
Adds Windows compatibility - #5
Browse files Browse the repository at this point in the history
  • Loading branch information
akofman committed Jun 8, 2016
1 parent ff1ce12 commit db68458
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/add-swift-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var child_process = require('child_process');
var fs = require('fs');
var path = require('path');
var xcode = require('xcode');
var glob = require('glob');

module.exports = function(context) {
var platformMetadata = context.requireCordovaModule('cordova-lib/src/cordova/platform_metadata');
Expand Down Expand Up @@ -76,12 +77,11 @@ module.exports = function(context) {
}

// Look for any bridging header defined in the plugin
child_process.exec('find . -name "*Bridging-Header*.h"', { cwd: pluginsPath }, function (error, stdout) {

glob('*Bridging-Header*.h', { cwd: pluginsPath }, function(error, files) {
var bridgingHeader = path.basename(bridgingHeaderPath);
var headers = _.compact(stdout.toString().split('\n').map(function (filePath) {
var headers = files.map(function (filePath) {
return path.basename(filePath);
}));
});

// if other bridging headers are found, they are imported in the
// one already configured in the project.
Expand Down

0 comments on commit db68458

Please sign in to comment.