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 2013/09/27 00:25:17 UTC
[01/12] git commit: [CB-4752] Incremented plugin version on dev
branch.
Updated Branches:
refs/heads/master dcf1877f2 -> 95270821b
[CB-4752] Incremented plugin version on dev branch.
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/bf6dd8c2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/bf6dd8c2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/bf6dd8c2
Branch: refs/heads/master
Commit: bf6dd8c241edaaa9dd56a4bdc36f57a541a0b8a2
Parents: 731905d
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Sep 6 00:58:21 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Sep 6 00:58:21 2013 -0400
----------------------------------------------------------------------
plugin.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/bf6dd8c2/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 54e5137..3bc0034 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -4,7 +4,7 @@
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
id="org.apache.cordova.core.device"
- version="0.2.1">
+ version="0.2.2-dev">
<name>Device</name>
<description>Cordova Device Plugin</description>
<license>Apache 2.0</license>
[08/12] git commit: [windows8] commandProxy has moved
Posted by st...@apache.org.
[windows8] commandProxy has moved
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/4d8693cc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/4d8693cc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/4d8693cc
Branch: refs/heads/master
Commit: 4d8693ccf2360affda4786682255380b4cc1b4b6
Parents: 4f53b37
Author: purplecabbage <pu...@gmail.com>
Authored: Tue Sep 24 01:30:41 2013 -0700
Committer: purplecabbage <pu...@gmail.com>
Committed: Tue Sep 24 01:30:41 2013 -0700
----------------------------------------------------------------------
src/windows8/DeviceProxy.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/4d8693cc/src/windows8/DeviceProxy.js
----------------------------------------------------------------------
diff --git a/src/windows8/DeviceProxy.js b/src/windows8/DeviceProxy.js
index bd57323..16145c0 100644
--- a/src/windows8/DeviceProxy.js
+++ b/src/windows8/DeviceProxy.js
@@ -46,5 +46,5 @@ module.exports = {
};
-require("cordova/commandProxy").add("Device", module.exports);
+require("cordova/windows8/commandProxy").add("Device", module.exports);
[12/12] git commit: Merge branch 'dev'
Posted by st...@apache.org.
Merge branch 'dev'
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/95270821
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/95270821
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/95270821
Branch: refs/heads/master
Commit: 95270821b67dcc9725acca731fcb144382c46ed8
Parents: dcf1877 0a89f09
Author: Steven Gill <st...@gmail.com>
Authored: Wed Sep 25 18:17:29 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Wed Sep 25 18:17:29 2013 -0700
----------------------------------------------------------------------
CHANGELOG.md | 25 -------------------------
RELEASENOTES.md | 35 +++++++++++++++++++++++++++++++++++
plugin.xml | 17 +++++++++++++++--
src/firefoxos/DeviceProxy.js | 39 +++++++++++++++++++++++++++++++++++++++
src/windows8/DeviceProxy.js | 2 +-
5 files changed, 90 insertions(+), 28 deletions(-)
----------------------------------------------------------------------
[02/12] git commit: Merge branch 'master' into dev
Posted by st...@apache.org.
Merge branch 'master' into dev
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/2e120b5a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/2e120b5a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/2e120b5a
Branch: refs/heads/master
Commit: 2e120b5a28c9607726932ed390ce9d7445b97d99
Parents: bf6dd8c a9190fa
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Sep 6 01:18:07 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Sep 6 01:18:07 2013 -0400
----------------------------------------------------------------------
----------------------------------------------------------------------
[04/12] git commit: updated to use commandProxy for ffos
Posted by st...@apache.org.
updated to use commandProxy for ffos
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/c631a125
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/c631a125
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/c631a125
Branch: refs/heads/master
Commit: c631a12590f68b7c59f17ae29fb7aee7df89b5ab
Parents: 30ba3ce
Author: Steven Gill <st...@gmail.com>
Authored: Fri Sep 13 17:39:22 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Fri Sep 13 17:39:22 2013 -0700
----------------------------------------------------------------------
plugin.xml | 4 ++--
src/firefoxos/DeviceProxy.js | 39 +++++++++++++++++++++++++++++++++++++++
src/firefoxos/device.js | 16 ----------------
3 files changed, 41 insertions(+), 18 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/c631a125/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 4d6be1c..d9673e4 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -22,8 +22,8 @@
</feature>
</config-file>
- <js-module src="src/firefoxos/device.js" name="device-impl">
- <runs />
+ <js-module src="src/firefoxos/DeviceProxy.js" name="DeviceProxy">
+ <runs />
</js-module>
</platform>
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/c631a125/src/firefoxos/DeviceProxy.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/DeviceProxy.js b/src/firefoxos/DeviceProxy.js
new file mode 100644
index 0000000..f37e761
--- /dev/null
+++ b/src/firefoxos/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 firefoxos = require('cordova/platform');
+var cordova = require('cordova');
+
+module.exports = {
+ getDeviceInfo: function(success, error) {
+ setTimeout(function () {
+ success({
+ cordova: firefoxos.cordovaVersion,
+ platform: 'firefoxos',
+ model: null,
+ version: null,
+ uuid: null
+ });
+ }, 0);
+ }
+};
+
+require("cordova/firefoxos/commandProxy").add("Device", module.exports);
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/c631a125/src/firefoxos/device.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/device.js b/src/firefoxos/device.js
deleted file mode 100644
index 55d1c75..0000000
--- a/src/firefoxos/device.js
+++ /dev/null
@@ -1,16 +0,0 @@
-
-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);
[11/12] git commit: [CB-4915] Updated version and RELEASENOTES.md for
release 0.2.3
Posted by st...@apache.org.
[CB-4915] Updated version and RELEASENOTES.md for release 0.2.3
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/0a89f094
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/0a89f094
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/0a89f094
Branch: refs/heads/master
Commit: 0a89f0949b0af72810efe6a19daec18ed7741889
Parents: 427451b
Author: Steven Gill <st...@gmail.com>
Authored: Wed Sep 25 17:13:28 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Wed Sep 25 17:13:28 2013 -0700
----------------------------------------------------------------------
RELEASENOTES.md | 10 ++++++++++
plugin.xml | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/0a89f094/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index cfebe27..03aebbd 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -23,3 +23,13 @@
### 0.2.1 (Sept 5, 2013)
* removed extraneous print statement
* [CB-4432] copyright notice change
+
+### 0.2.3 (Sept 25, 2013)
+* CB-4889 bumping&resetting version
+* [windows8] commandProxy has moved
+* [BlackBerry10] removed uneeded permission tags in plugin.xml
+* CB-4889 renaming org.apache.cordova.core.device to org.apache.cordova.device
+* Rename CHANGELOG.md -> RELEASENOTES.md
+* updated to use commandProxy for ffos
+* add firefoxos support
+* [CB-4752] Incremented plugin version on dev branch.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/0a89f094/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 2e3c72b..af257cb 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -4,7 +4,7 @@
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
id="org.apache.cordova.device"
- version="0.2.3-dev">
+ version="0.2.3">
<name>Device</name>
<description>Cordova Device Plugin</description>
<license>Apache 2.0</license>
[10/12] git commit: CB-4889 bumping&resetting version
Posted by st...@apache.org.
CB-4889 bumping&resetting version
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/427451bf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/427451bf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/427451bf
Branch: refs/heads/master
Commit: 427451bf48e9bd81daaa8b44edbfdc437c6210b7
Parents: a0c3c9e
Author: Anis Kadri <an...@apache.org>
Authored: Wed Sep 25 17:50:02 2013 +0200
Committer: Anis Kadri <an...@apache.org>
Committed: Wed Sep 25 17:50:02 2013 +0200
----------------------------------------------------------------------
plugin.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/427451bf/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 77364d2..2e3c72b 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -4,7 +4,7 @@
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
id="org.apache.cordova.device"
- version="0.2.2">
+ version="0.2.3-dev">
<name>Device</name>
<description>Cordova Device Plugin</description>
<license>Apache 2.0</license>
[06/12] git commit: CB-4889 renaming org.apache.cordova.core.device
to org.apache.cordova.device
Posted by st...@apache.org.
CB-4889 renaming org.apache.cordova.core.device to org.apache.cordova.device
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/400b4688
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/400b4688
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/400b4688
Branch: refs/heads/master
Commit: 400b4688a5fa64b3f0e96b433e4cc81280c5bbcd
Parents: dd2ec78
Author: Anis Kadri <an...@apache.org>
Authored: Sat Sep 21 12:14:22 2013 +0200
Committer: Anis Kadri <an...@apache.org>
Committed: Sat Sep 21 12:14:22 2013 +0200
----------------------------------------------------------------------
plugin.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/400b4688/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index d9673e4..1278ea1 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -3,8 +3,8 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
- id="org.apache.cordova.core.device"
- version="0.2.2-dev">
+ id="org.apache.cordova.device"
+ version="0.2.2">
<name>Device</name>
<description>Cordova Device Plugin</description>
<license>Apache 2.0</license>
[05/12] git commit: Rename CHANGELOG.md -> RELEASENOTES.md
Posted by st...@apache.org.
Rename CHANGELOG.md -> RELEASENOTES.md
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/dd2ec783
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/dd2ec783
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/dd2ec783
Branch: refs/heads/master
Commit: dd2ec7837d53da972d04a06befbac70321a190f6
Parents: c631a12
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Sep 17 11:36:13 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Sep 17 11:36:13 2013 -0400
----------------------------------------------------------------------
CHANGELOG.md | 25 -------------------------
RELEASENOTES.md | 25 +++++++++++++++++++++++++
2 files changed, 25 insertions(+), 25 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/dd2ec783/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index cfebe27..0000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,25 +0,0 @@
-<!--
-#
-# 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.
-#
--->
-# Release Notes
-
-### 0.2.1 (Sept 5, 2013)
-* removed extraneous print statement
-* [CB-4432] copyright notice change
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/dd2ec783/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
new file mode 100644
index 0000000..cfebe27
--- /dev/null
+++ b/RELEASENOTES.md
@@ -0,0 +1,25 @@
+<!--
+#
+# 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.
+#
+-->
+# Release Notes
+
+### 0.2.1 (Sept 5, 2013)
+* removed extraneous print statement
+* [CB-4432] copyright notice change
[09/12] git commit: Merge branch 'dev' of
https://git-wip-us.apache.org/repos/asf/cordova-plugin-device into dev
Posted by st...@apache.org.
Merge branch 'dev' of https://git-wip-us.apache.org/repos/asf/cordova-plugin-device into dev
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/a0c3c9e4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/a0c3c9e4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/a0c3c9e4
Branch: refs/heads/master
Commit: a0c3c9e4c604b3f1c04717f456f44845956c31f8
Parents: 400b468 4d8693c
Author: Anis Kadri <an...@apache.org>
Authored: Wed Sep 25 17:41:22 2013 +0200
Committer: Anis Kadri <an...@apache.org>
Committed: Wed Sep 25 17:41:22 2013 +0200
----------------------------------------------------------------------
plugin.xml | 4 ----
src/windows8/DeviceProxy.js | 2 +-
2 files changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/a0c3c9e4/plugin.xml
----------------------------------------------------------------------
[07/12] git commit: [BlackBerry10] removed uneeded permission tags in
plugin.xml
Posted by st...@apache.org.
[BlackBerry10] removed uneeded permission tags in plugin.xml
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/4f53b371
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/4f53b371
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/4f53b371
Branch: refs/heads/master
Commit: 4f53b371a3c7b07f532411b60bb3e3495174fdd1
Parents: dd2ec78
Author: Kristoffer Flores <kf...@blackberry.com>
Authored: Fri Sep 20 13:41:04 2013 -0400
Committer: Bryan Higgins <br...@bryanhiggins.net>
Committed: Mon Sep 23 10:44:19 2013 -0400
----------------------------------------------------------------------
plugin.xml | 4 ----
1 file changed, 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/4f53b371/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index d9673e4..9eb8d9d 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -56,10 +56,6 @@
<config-file target="www/config.xml" parent="/widget">
<feature name="Device" value="Device"/>
</config-file>
- <config-file target="www/config.xml" parent="/widget">
- <rim:permissions>
- </rim:permissions>
- </config-file>
<config-file target="www/config.xml" parent="/widget/rim:permissions">
<rim:permit>read_device_identifying_information</rim:permit>
</config-file>
[03/12] git commit: add firefoxos support
Posted by st...@apache.org.
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/master
Commit: 30ba3ce8e0ea2ed48e65fc607d838e54a012d926
Parents: 2e120b5
Author: James Long <lo...@gmail.com>
Authored: Wed Sep 11 16:36:31 2013 -0400
Committer: Steven Gill <st...@gmail.com>
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 @@
<clobbers target="device" />
</js-module>
+ <!-- firefoxos -->
+ <platform name="firefoxos">
+ <config-file target="config.xml" parent="/*">
+ <feature name="Device">
+ <param name="firefoxos-package" value="Device" />
+ </feature>
+ </config-file>
+
+ <js-module src="src/firefoxos/device.js" name="device-impl">
+ <runs />
+ </js-module>
+ </platform>
+
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
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);