Comparing version 2.8.0-0.10.4 to 2.8.0-0.10.6
@@ -74,3 +74,3 @@ /*! | ||
cordova.platform.supports(platform.local, function(e) { | ||
cordova.platform.supports('.', platform.local, function(e) { | ||
// invoke local or remote build | ||
@@ -77,0 +77,0 @@ var env = (e) ? 'remote' : 'local'; |
@@ -74,3 +74,3 @@ /*! | ||
cordova.platform.supports(platform.local, function(e) { | ||
cordova.platform.supports('.', platform.local, function(e) { | ||
// invoke local or remote build | ||
@@ -77,0 +77,0 @@ var env = (e) ? 'remote' : 'local'; |
@@ -12,4 +12,3 @@ /*! | ||
util = require('util'), | ||
fs = require('fs'), | ||
_platform; | ||
fs = require('fs'); | ||
@@ -85,5 +84,2 @@ /*! | ||
// workaround | ||
_platform = platform; | ||
// validate parameters | ||
@@ -178,6 +174,4 @@ if (options.platforms.length < 1) { | ||
cordova.on('after_prepare', function(data, done) { | ||
var projectPath = path.join('.', 'platforms', _platform.local), | ||
parser = new cordova.platform[_platform.local].parser(projectPath), | ||
cordovaFile = path.join(parser.www_dir(), 'cordova.js'), | ||
phonegapFile = path.join(parser.www_dir(), 'phonegap.js'); | ||
var cordovaFile = path.join(data.paths[0], 'cordova.js'), | ||
phonegapFile = path.join(data.paths[0], 'phonegap.js'); | ||
@@ -184,0 +178,0 @@ // create phonegap.js |
@@ -74,3 +74,3 @@ /*! | ||
cordova.platform.supports(platform.local, function(e) { | ||
cordova.platform.supports('.', platform.local, function(e) { | ||
// invoke local or remote build | ||
@@ -77,0 +77,0 @@ var env = (e) ? 'remote' : 'local'; |
{ | ||
"name": "phonegap", | ||
"description": "PhoneGap command-line interface and node.js library.", | ||
"version": "2.8.0-0.10.4", | ||
"version": "2.8.0-0.10.6", | ||
"homepage": "http://github.com/mwbrooks/phonegap-cli", | ||
@@ -30,3 +30,3 @@ "repository": { | ||
"colors": "0.6.x", | ||
"cordova": "2.8.17", | ||
"cordova": "2.8.20", | ||
"node-static": "0.6.x", | ||
@@ -33,0 +33,0 @@ "optimist": "0.3.x", |
@@ -61,3 +61,3 @@ /* | ||
beforeEach(function() { | ||
cordova.platform.supports.andCallFake(function(platform, callback) { | ||
cordova.platform.supports.andCallFake(function(path, platform, callback) { | ||
callback(null); | ||
@@ -76,3 +76,3 @@ }); | ||
beforeEach(function() { | ||
cordova.platform.supports.andCallFake(function(platform, callback) { | ||
cordova.platform.supports.andCallFake(function(path, platform, callback) { | ||
callback(new Error('could not find sdk')); | ||
@@ -79,0 +79,0 @@ }); |
@@ -61,3 +61,3 @@ /* | ||
beforeEach(function() { | ||
cordova.platform.supports.andCallFake(function(platform, callback) { | ||
cordova.platform.supports.andCallFake(function(path, platform, callback) { | ||
callback(null); | ||
@@ -76,3 +76,3 @@ }); | ||
beforeEach(function() { | ||
cordova.platform.supports.andCallFake(function(platform, callback) { | ||
cordova.platform.supports.andCallFake(function(path, platform, callback) { | ||
callback(new Error('could not find sdk')); | ||
@@ -79,0 +79,0 @@ }); |
@@ -101,12 +101,8 @@ /* | ||
spyOn(shell, 'cp'); | ||
spyOn(cordova.platform.android, 'parser').andReturn({ | ||
www_dir: function() { | ||
return 'platforms/android/assets/www'; | ||
} | ||
}); | ||
cordova.emit('after_prepare', {}, function() { | ||
expect(cordova.platform.android.parser).toHaveBeenCalled(); | ||
var prepareData = { paths: [ '/platforms/android/assets/www' ] }; | ||
cordova.emit('after_prepare', prepareData, function() { | ||
expect(shell.cp).toHaveBeenCalledWith( | ||
'platforms/android/assets/www/cordova.js', | ||
'platforms/android/assets/www/phonegap.js' | ||
'/platforms/android/assets/www/cordova.js', | ||
'/platforms/android/assets/www/phonegap.js' | ||
); | ||
@@ -113,0 +109,0 @@ done(); |
@@ -61,3 +61,3 @@ /* | ||
beforeEach(function() { | ||
cordova.platform.supports.andCallFake(function(platform, callback) { | ||
cordova.platform.supports.andCallFake(function(path, platform, callback) { | ||
callback(null); | ||
@@ -76,3 +76,3 @@ }); | ||
beforeEach(function() { | ||
cordova.platform.supports.andCallFake(function(platform, callback) { | ||
cordova.platform.supports.andCallFake(function(path, platform, callback) { | ||
callback(new Error('could not find sdk')); | ||
@@ -79,0 +79,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
220665
5907
+ Addedcordova@2.8.20(transitive)
- Removedcordova@2.8.17(transitive)
Updatedcordova@2.8.20