You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mm...@apache.org on 2014/05/05 18:09:23 UTC
[23/49] git commit: added ubuntu support
added ubuntu support
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/c2e32d43
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/c2e32d43
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/c2e32d43
Branch: refs/heads/cdvtest
Commit: c2e32d4365cdb9b598d6b95575ff32bf8b61f06e
Parents: e1e2c30 057813b
Author: Steven Gill <st...@gmail.com>
Authored: Mon Dec 2 15:50:42 2013 -0800
Committer: Steven Gill <st...@gmail.com>
Committed: Mon Dec 2 15:50:42 2013 -0800
----------------------------------------------------------------------
plugin.xml | 6 ++++
src/ubuntu/accelerometer.cpp | 58 +++++++++++++++++++++++++++++++++++++++
src/ubuntu/accelerometer.h | 55 +++++++++++++++++++++++++++++++++++++
3 files changed, 119 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/c2e32d43/plugin.xml
----------------------------------------------------------------------
diff --cc plugin.xml
index 0171234,04cabe3..ca82100
--- a/plugin.xml
+++ b/plugin.xml
@@@ -44,20 -29,13 +44,26 @@@
<source-file src="src/android/AccelListener.java" target-dir="src/org/apache/cordova/devicemotion" />
</platform>
+
+ <!-- amazon-fireos -->
+ <platform name="amazon-fireos">
+
+ <config-file target="res/xml/config.xml" parent="/*">
+ <feature name="Accelerometer">
+ <param name="android-package" value="org.apache.cordova.devicemotion.AccelListener"/>
+ </feature>
+ </config-file>
+ <source-file src="src/android/AccelListener.java" target-dir="src/org/apache/cordova/devicemotion" />
+
+ </platform>
+
+ <!-- ubuntu -->
+ <platform name="ubuntu">
+ <header-file src="src/ubuntu/accelerometer.h" />
+ <source-file src="src/ubuntu/accelerometer.cpp" />
+ </platform>
+
<!-- ios -->
<platform name="ios">