You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2014/11/01 00:43:39 UTC

[19/50] ios commit: Update cordova/lib/list-emulator-images for ios-sim 3.0

Update cordova/lib/list-emulator-images for ios-sim 3.0


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

Branch: refs/heads/wkwebview
Commit: 10c87e249ade65c427cbfa5248d6c7f4f3c0d85f
Parents: bdbb026
Author: Shazron Abdullah <sh...@apache.org>
Authored: Fri Oct 17 16:21:06 2014 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Oct 17 16:21:06 2014 -0700

----------------------------------------------------------------------
 bin/templates/scripts/cordova/lib/list-emulator-images | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/10c87e24/bin/templates/scripts/cordova/lib/list-emulator-images
----------------------------------------------------------------------
diff --git a/bin/templates/scripts/cordova/lib/list-emulator-images b/bin/templates/scripts/cordova/lib/list-emulator-images
index a73de7b..689f22c 100755
--- a/bin/templates/scripts/cordova/lib/list-emulator-images
+++ b/bin/templates/scripts/cordova/lib/list-emulator-images
@@ -26,15 +26,14 @@
 
 set -e
 
-echo \""iPhone (Retina 3.5-inch)"\"
-echo \""iPhone (Retina 4-inch)"\"
+IOS_SIM_VERSION=$(ios-sim --version)
 
-# this assumes Xcode 5 minimum not supported by ios-sim yet
-# echo \""iPhone (Retina 4-inch 64-bit)"\"
+if [[ "$IOS_SIM_VERSION" < "$IOS_SIM_MIN_VERSION" ]]; then
+	echo "Cordova needs ios-sim version $IOS_SIM_MIN_VERSION or greater, you have version $IOS_SIM_VERSION." 1>&2;
+	exit 1
+fi
 
-echo \""iPhone"\"
-echo \""iPad"\"
-echo \""iPad (Retina)"\"
+ios-sim showdevicetypes 2>&1 | sed "s/com.apple.CoreSimulator.SimDeviceType.//g" | awk -F',' '{print $1}'
 
 
 


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