Skip to content

Commit

Permalink
Updates for cordova 9 (see opentok#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
kspevak committed Nov 27, 2019
1 parent 0f1e5b4 commit 846d780
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dependencies": {
"@opentok/client": "2.15.5",
"exec": "^0.2.0",
"q": "^1.5.1",
"tar": "^2.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/downloadNpmDependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// install the node dependencies for this project
function install (context) {
// set properties
var q = context.requireCordovaModule('q');
var q = require('q');
var async = new q.defer(); // eslint-disable-line
var installFlagLocation = path.join(context.opts.projectRoot, 'plugins', context.opts.plugin.id, INSTALLFLAGNAME);
var dependencies = require(path.join(context.opts.projectRoot, 'plugins', context.opts.plugin.id, 'package.json')).dependencies;
Expand Down
2 changes: 1 addition & 1 deletion scripts/downloadiOSSDK.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function (context) {
var IosSDKVersion = "OpenTok-iOS-2.15.3";
var downloadFile = require('./downloadFile.js'),
exec = require('./exec/exec.js'),
Q = context.requireCordovaModule('q'),
Q = require('q'),
deferral = new Q.defer();
console.log('Downloading OpenTok iOS SDK');
downloadFile('https://s3.amazonaws.com/artifact.tokbox.com/rel/ios-sdk/' + IosSDKVersion + '.tar.bz2',
Expand Down

0 comments on commit 846d780

Please sign in to comment.