Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 100F7C03E for ; Fri, 13 Sep 2013 05:36:22 +0000 (UTC) Received: (qmail 79859 invoked by uid 500); 12 Sep 2013 23:09:27 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 79803 invoked by uid 500); 12 Sep 2013 23:09:26 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 79702 invoked by uid 99); 12 Sep 2013 23:09:26 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Sep 2013 23:09:26 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id B7AA216972; Thu, 12 Sep 2013 23:09:25 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: steven@apache.org To: commits@cordova.apache.org Message-Id: <4675292f644b4373955b429b5d4051cb@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: add firefoxos support Date: Thu, 12 Sep 2013 23:09:25 +0000 (UTC) Updated Branches: refs/heads/dev 2e120b5a2 -> 30ba3ce8e add firefoxos support 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/30ba3ce8 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/30ba3ce8 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/30ba3ce8 Branch: refs/heads/dev Commit: 30ba3ce8e0ea2ed48e65fc607d838e54a012d926 Parents: 2e120b5 Author: James Long Authored: Wed Sep 11 16:36:31 2013 -0400 Committer: Steven Gill Committed: Thu Sep 12 16:09:16 2013 -0700 ---------------------------------------------------------------------- plugin.xml | 13 +++++++++++++ src/firefoxos/device.js | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/30ba3ce8/plugin.xml ---------------------------------------------------------------------- diff --git a/plugin.xml b/plugin.xml index 3bc0034..4d6be1c 100644 --- a/plugin.xml +++ b/plugin.xml @@ -14,6 +14,19 @@ + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/30ba3ce8/src/firefoxos/device.js ---------------------------------------------------------------------- diff --git a/src/firefoxos/device.js b/src/firefoxos/device.js new file mode 100644 index 0000000..55d1c75 --- /dev/null +++ b/src/firefoxos/device.js @@ -0,0 +1,16 @@ + +var firefoxos = require('cordova/platform'); + +var Device = { + getDeviceInfo: function(success, error) { + success({ + cordova: firefoxos.cordovaVersion, + platform: 'firefoxos', + model: null, + version: null, + uuid: null + }); + } +}; + +firefoxos.registerPlugin('Device', Device);