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/12/02 23:49:26 UTC
[2/2] git commit: added ubuntu support
added ubuntu support
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/1a7672d1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/1a7672d1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/1a7672d1
Branch: refs/heads/dev
Commit: 1a7672d17cf25075b2c25f14e68cad460bedbb66
Parents: fcf0625 fcc108c
Author: Steven Gill <st...@gmail.com>
Authored: Mon Dec 2 14:49:18 2013 -0800
Committer: Steven Gill <st...@gmail.com>
Committed: Mon Dec 2 14:49:18 2013 -0800
----------------------------------------------------------------------
plugin.xml | 6 ++++
src/ubuntu/battery.cpp | 78 +++++++++++++++++++++++++++++++++++++++++++++
src/ubuntu/battery.h | 62 +++++++++++++++++++++++++++++++++++
3 files changed, 146 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/1a7672d1/plugin.xml
----------------------------------------------------------------------
diff --cc plugin.xml
index 70c5899,e0dded9..7182da6
--- a/plugin.xml
+++ b/plugin.xml
@@@ -26,16 -24,11 +26,22 @@@
<source-file src="src/android/BatteryListener.java" target-dir="src/org/apache/cordova/batterystatus" />
</platform>
+ <!-- amazon-fireos -->
+ <platform name="amazon-fireos">
+ <config-file target="res/xml/config.xml" parent="/*">
+ <feature name="Battery" >
+ <param name="android-package" value="org.apache.cordova.batterystatus.BatteryListener"/>
+ </feature>
+ </config-file>
+
+ <source-file src="src/android/BatteryListener.java" target-dir="src/org/apache/cordova/batterystatus" />
+ </platform>
++
+ <!-- ubuntu -->
+ <platform name="ubuntu">
+ <header-file src="src/ubuntu/battery.h" />
+ <source-file src="src/ubuntu/battery.cpp" />
+ </platform>
<!-- ios -->
<platform name="ios">