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/05 01:57:45 UTC

[7/9] git commit: added ubuntu support

added ubuntu 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/2a104e3e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/2a104e3e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/2a104e3e

Branch: refs/heads/master
Commit: 2a104e3e3118c62fb73df273a3910e49c2bcb3f4
Parents: 7256fdd d63ee79
Author: Steven Gill <st...@gmail.com>
Authored: Mon Dec 2 15:47:27 2013 -0800
Committer: Steven Gill <st...@gmail.com>
Committed: Mon Dec 2 15:47:27 2013 -0800

----------------------------------------------------------------------
 plugin.xml            |  9 +++++++
 src/ubuntu/device.cpp | 64 ++++++++++++++++++++++++++++++++++++++++++++++
 src/ubuntu/device.h   | 47 ++++++++++++++++++++++++++++++++++
 src/ubuntu/device.js  | 34 ++++++++++++++++++++++++
 4 files changed, 154 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/2a104e3e/plugin.xml
----------------------------------------------------------------------
diff --cc plugin.xml
index e93b06c,52786d8..b37f25a
--- a/plugin.xml
+++ b/plugin.xml
@@@ -40,17 -25,15 +40,26 @@@
          <source-file src="src/android/Device.java" target-dir="src/org/apache/cordova/device" />
      </platform>
  
 +    <!-- amazon-fireos -->
 +    <platform name="amazon-fireos">
 +        <config-file target="res/xml/config.xml" parent="/*">
 +            <feature name="Device" >
 +                <param name="android-package" value="org.apache.cordova.device.Device"/>
 +            </feature>
 +        </config-file>
 +
 +        <source-file src="src/android/Device.java" target-dir="src/org/apache/cordova/device" />
 +    </platform>
 +    
+     <!-- ubuntu -->
+     <platform name="ubuntu">
+         <header-file src="src/ubuntu/device.h" />
+         <source-file src="src/ubuntu/device.cpp" />
+         <js-module src="src/ubuntu/device.js" name="DeviceProxy">
+             <merges target="device" />
+         </js-module>
+     </platform>
+ 
      <!-- ios -->
      <platform name="ios">
          <config-file target="config.xml" parent="/*">