You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/11/27 21:11:25 UTC
[03/10] git commit: Remove platform check in platform add and update
Remove platform check in platform add and update
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/20faff11
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/20faff11
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/20faff11
Branch: refs/heads/master
Commit: 20faff115b7f8b647e964e26fb0b9dd40f2bd31c
Parents: 86802d8
Author: SomaticIT <co...@somatic.fr>
Authored: Thu Nov 14 22:06:42 2013 +0100
Committer: SomaticIT <co...@somatic.fr>
Committed: Thu Nov 14 22:06:42 2013 +0100
----------------------------------------------------------------------
src/platform.js | 8 --------
1 file changed, 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/20faff11/src/platform.js
----------------------------------------------------------------------
diff --git a/src/platform.js b/src/platform.js
index 214d396..536969c 100644
--- a/src/platform.js
+++ b/src/platform.js
@@ -116,10 +116,6 @@ module.exports = function platform(command, targets) {
.then(function() {
return lazy_load.based_on_config(projectRoot, plat);
}).then(function(libDir) {
- // Check for platforms are in subdirectories into repositories
- if (["wp7", "wp8", "windows8", "windows81", "blackberry10"].indexOf(plat) !== -1)
- libDir = path.join(libDir, target);
-
var script = path.join(libDir, 'bin', 'update');
var d = Q.defer();
child_process.exec(script + ' "' + path.join(projectRoot, 'platforms', plat) + '"', function(err, stdout, stderr) {
@@ -226,10 +222,6 @@ function call_into_create(target, projectRoot, cfg, libDir, template_dir) {
events.emit('verbose', 'Checking if platform "' + target + '" passes minimum requirements...');
return module.exports.supports(projectRoot, target)
.then(function() {
- // Check for platforms are in subdirectories into repositories
- if (["wp7", "wp8", "windows8", "windows81", "blackberry10"].indexOf(target) !== -1)
- libDir = path.join(libDir, target);
-
// Create a platform app using the ./bin/create scripts that exist in each repo.
var bin = path.join(libDir, 'bin', 'create');
var args = (target=='ios') ? '--arc' : '';