Skip to content

Commit

Permalink
Removed use of 'requireCordovaModule' for non-cordova module
Browse files Browse the repository at this point in the history
  • Loading branch information
bryce-buchanan committed May 14, 2019
1 parent 2ff58e4 commit e8ac91e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions hooks/ios/ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var fs = require("fs");
var path = require("path");
var newrelic = require("../newrelic");
var ScriptPhase = require("./script-phase");

var xcode = require("xcode");

/**
* @desc iOS Object to remove and add New Relic build scripts to the xCode Project.
Expand Down Expand Up @@ -157,7 +157,6 @@ module.exports = {
* @returns {*}
*/
getXcodeProject: function (context) {
var xcode = context.requireCordovaModule("xcode");
return xcode.project(this.xcodePath(context));
},

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"devDependencies": {
"chai": "^3.5.0",
"mocha": "^3.2.0",
"shelljs": "^0.7.6"
"shelljs": "^0.7.6",
"xcode": "^2.0.0"
}
}

0 comments on commit e8ac91e

Please sign in to comment.