You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ripple.apache.org by gt...@apache.org on 2013/03/11 16:12:53 UTC

[2/5] git commit: added support for iPhone5

added support for iPhone5


Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/8fc19cc6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/8fc19cc6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/8fc19cc6

Branch: refs/heads/next
Commit: 8fc19cc6a00e9d731745ea385aeba9601d8fc750
Parents: 7e11ca1
Author: Dan Silivestru <da...@gmail.com>
Authored: Mon Mar 4 22:32:02 2013 -0500
Committer: Dan Silivestru <da...@gmail.com>
Committed: Wed Mar 6 11:33:01 2013 -0500

----------------------------------------------------------------------
 lib/client/devices.js         |    1 +
 lib/client/devices/iPhone5.js |   51 ++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/8fc19cc6/lib/client/devices.js
----------------------------------------------------------------------
diff --git a/lib/client/devices.js b/lib/client/devices.js
index 8e6c77d..0d7e3c5 100644
--- a/lib/client/devices.js
+++ b/lib/client/devices.js
@@ -45,6 +45,7 @@ _self = module.exports = {
             "iPad3",
             "iPhone3",
             "iPhone4",
+            "iPhone5",
             "Legend",
             "Nexus",
             "NexusS",

http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/8fc19cc6/lib/client/devices/iPhone5.js
----------------------------------------------------------------------
diff --git a/lib/client/devices/iPhone5.js b/lib/client/devices/iPhone5.js
new file mode 100644
index 0000000..a507857
--- /dev/null
+++ b/lib/client/devices/iPhone5.js
@@ -0,0 +1,51 @@
+/*
+ *  Copyright 2011 Research In Motion Limited.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+module.exports = {
+
+    "id": "iPhone5",
+    "name": "iPhone 5",
+    "model": "5",
+    "osName": "iOS",
+    "osVersion": "6",
+    "uuid": "e0101010d38bde8e6740011221af335301010333",
+    "manufacturer": "Apple",
+
+    "screen": {
+        "width": 640,
+        "height": 1136
+    },
+    "viewPort": {
+        "portrait": {
+            "width": 640,
+            "height": 1136,
+            "paddingTop": 0,
+            "paddingLeft": 0
+        },
+        "landscape": {
+            "width": 1136,
+            "height": 640,
+            "paddingTop": 0,
+            "paddingLeft": 0
+        }
+    },
+
+    "ppi": 326,
+    "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3",
+    "platforms": ["web", "cordova"],
+    "mediaQueryEmulation": {
+        "-webkit-device-pixel-ratio": 2
+    }
+};