cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rkn...@apache.org
Subject ios commit: CB-11265: Remove target checking for cordova-ios
Date Wed, 18 May 2016 23:02:46 GMT
Repository: cordova-ios
Updated Branches:
  refs/heads/master ee8e983ae -> 8ad8acb30


CB-11265: Remove target checking for cordova-ios

 This closes #224


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/8ad8acb3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/8ad8acb3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/8ad8acb3

Branch: refs/heads/master
Commit: 8ad8acb30a6c886164b70ea2fa63731bed4e125c
Parents: ee8e983
Author: Sarangan Rajamanickam <sarajama@microsoft.com>
Authored: Fri May 13 16:09:11 2016 -0700
Committer: Richard Knoll <richard.b.knoll@gmail.com>
Committed: Wed May 18 15:59:37 2016 -0700

----------------------------------------------------------------------
 bin/templates/scripts/cordova/lib/run.js | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/8ad8acb3/bin/templates/scripts/cordova/lib/run.js
----------------------------------------------------------------------
diff --git a/bin/templates/scripts/cordova/lib/run.js b/bin/templates/scripts/cordova/lib/run.js
index 35c93d0..7a97c99 100644
--- a/bin/templates/scripts/cordova/lib/run.js
+++ b/bin/templates/scripts/cordova/lib/run.js
@@ -38,15 +38,6 @@ module.exports.run = function (runOptions) {
         return Q.reject('Only one of "device"/"emulator" options should be specified');
     }
 
-    // validate target device for ios-sim
-    // Valid values for "--target" (case sensitive):
-    var validTargets = ['iPhone-4s', 'iPhone-5', 'iPhone-5s', 'iPhone-6-Plus', 'iPhone-6',
-        'iPhone-6s-Plus', 'iPhone-6s', 'iPad-2', 'iPad-Retina', 'iPad-Air', 'iPad-Air-2',
-        'iPad-Pro', 'Resizable-iPhone', 'Resizable-iPad'];
-    if (!(runOptions.device) && runOptions.target && validTargets.indexOf(runOptions.target.split(',')[0])
< 0 ) {
-        return Q.reject(runOptions.target + ' is not a valid target for emulator');
-    }
-
     // support for CB-8168 `cordova/run --list`
     if (runOptions.list) {
         if (runOptions.device) return listDevices();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message