diff --git a/scripts/downloadNpmDependencies.js b/scripts/downloadNpmDependencies.js index 1735dc38..9d40e400 100644 --- a/scripts/downloadNpmDependencies.js +++ b/scripts/downloadNpmDependencies.js @@ -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; diff --git a/scripts/downloadiOSSDK.js b/scripts/downloadiOSSDK.js index d6d5aa04..7cbf4002 100755 --- a/scripts/downloadiOSSDK.js +++ b/scripts/downloadiOSSDK.js @@ -1,10 +1,10 @@ #!/usr/bin/env node module.exports = function (context) { - var IosSDKVersion = "OpenTok-iOS-2.15.3"; + var IosSDKVersion = "OpenTok-iOS-2.17.0"; 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',