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

[2/9] git commit: src/tizen: Adding DeviceProxy.

src/tizen: Adding DeviceProxy.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/commit/7371251a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/7371251a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/7371251a

Branch: refs/heads/master
Commit: 7371251a0cb8f09d3401973ff06f0a119d4d4293
Parents: d84d38c
Author: Gabriel Schulhof <ga...@intel.com>
Authored: Tue Nov 19 11:10:46 2013 +0200
Committer: Gabriel Schulhof <ga...@intel.com>
Committed: Tue Nov 19 11:10:46 2013 +0200

----------------------------------------------------------------------
 src/tizen/DeviceProxy.js | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/7371251a/src/tizen/DeviceProxy.js
----------------------------------------------------------------------
diff --git a/src/tizen/DeviceProxy.js b/src/tizen/DeviceProxy.js
new file mode 100644
index 0000000..2afc324
--- /dev/null
+++ b/src/tizen/DeviceProxy.js
@@ -0,0 +1,39 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ *
+*/
+
+var tizen = require('cordova/platform');
+var cordova = require('cordova');
+
+module.exports = {
+    getDeviceInfo: function(success, error) {
+        setTimeout(function () {
+            success({
+                cordova: tizen.cordovaVersion,
+                platform: 'tizen',
+                model: null,
+                version: null,
+                uuid: null
+            });
+        }, 0);
+    }
+};
+
+require("cordova/tizen/commandProxy").add("Device", module.exports);