cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [2/2] git commit: added ubuntu support
Date Tue, 03 Dec 2013 00:30:23 GMT
added ubuntu support


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/commit/d709f6bd
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/tree/d709f6bd
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/diff/d709f6bd

Branch: refs/heads/dev
Commit: d709f6bd7b5d1dce0c5790ba6a9f0c6c369b46a0
Parents: 26bb70b fe4fe1a
Author: Steven Gill <stevengill97@gmail.com>
Authored: Mon Dec 2 16:30:19 2013 -0800
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Mon Dec 2 16:30:19 2013 -0800

----------------------------------------------------------------------
 plugin.xml               |  6 ++++++
 src/ubuntu/vibration.cpp | 38 ++++++++++++++++++++++++++++++++++
 src/ubuntu/vibration.h   | 47 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 91 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/d709f6bd/plugin.xml
----------------------------------------------------------------------
diff --cc plugin.xml
index 350b2b3,3cc6f4b..7fa90ff
--- a/plugin.xml
+++ b/plugin.xml
@@@ -65,21 -63,12 +65,27 @@@
          </config-file>
      </platform>
  
 +    <!-- amazon-fireos -->
 +    <platform name="amazon-fireos">
 +        <config-file target="res/xml/config.xml" parent="/*">
 +            <feature name="Vibration">
 +                <param name="android-package" value="org.apache.cordova.vibration.Vibration"/>
 +            </feature>
 +        </config-file>
 +
 +        <source-file src="src/android/Vibration.java" target-dir="src/org/apache/cordova/vibration"
/>
 +
 +        <config-file target="AndroidManifest.xml" parent="/manifest">
 +            <uses-permission android:name="android.permission.VIBRATE"/>
 +        </config-file>
 +    </platform>
 +    
+     <!-- ubuntu -->
+     <platform name="ubuntu">
+         <header-file src="src/ubuntu/vibration.h" />
+         <source-file src="src/ubuntu/vibration.cpp" />
+     </platform>
+ 
      <!-- ios -->
      <platform name="ios">
          <config-file target="config.xml" parent="/*">


Mime
View raw message