cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [5/8] git commit: added ubuntu support
Date Thu, 05 Dec 2013 00:55:40 GMT
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/master
Commit: 1a7672d17cf25075b2c25f14e68cad460bedbb66
Parents: fcf0625 fcc108c
Author: Steven Gill <stevengill97@gmail.com>
Authored: Mon Dec 2 14:49:18 2013 -0800
Committer: Steven Gill <stevengill97@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">    


Mime
View raw message