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:59:52 UTC

[7/8] git commit: added ubuntu support

added ubuntu support


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/648445d4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/648445d4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/648445d4

Branch: refs/heads/master
Commit: 648445d4f3126644157d0987e12e19caf6416b40
Parents: 70eee7f 291b25f
Author: Steven Gill <st...@gmail.com>
Authored: Mon Dec 2 16:26:57 2013 -0800
Committer: Steven Gill <st...@gmail.com>
Committed: Mon Dec 2 16:26:57 2013 -0800

----------------------------------------------------------------------
 plugin.xml                    |  17 ++++
 src/ubuntu/back.png           | Bin 0 -> 12428 bytes
 src/ubuntu/capture.cpp        | 167 +++++++++++++++++++++++++++++++++++++
 src/ubuntu/capture.h          |  84 +++++++++++++++++++
 src/ubuntu/microphone.png     | Bin 0 -> 10415 bytes
 src/ubuntu/record_off.png     | Bin 0 -> 10087 bytes
 src/ubuntu/record_on.png      | Bin 0 -> 4902 bytes
 src/ubuntu/shoot.png          | Bin 0 -> 14430 bytes
 src/ubuntu/toolbar-left.png   | Bin 0 -> 1212 bytes
 src/ubuntu/toolbar-middle.png | Bin 0 -> 4416 bytes
 src/ubuntu/toolbar-right.png  | Bin 0 -> 1161 bytes
 11 files changed, 268 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/648445d4/plugin.xml
----------------------------------------------------------------------
diff --cc plugin.xml
index a2ea8bd,38a306e..86fc297
--- a/plugin.xml
+++ b/plugin.xml
@@@ -59,25 -59,23 +59,42 @@@ xmlns:android="http://schemas.android.c
          <source-file src="src/android/Capture.java" target-dir="src/org/apache/cordova/mediacapture" />
          <source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/mediacapture" />
      </platform>
 +    
 +    <!-- amazon-fireos -->
 +    <platform name="amazon-fireos">
 +        <config-file target="res/xml/config.xml" parent="/*">
 +            <feature name="Capture" >
 +                <param name="android-package" value="org.apache.cordova.mediacapture.Capture"/>
 +            </feature>
 +        </config-file>
 +        
 +        <config-file target="AndroidManifest.xml" parent="/*">
 +            <uses-permission android:name="android.permission.RECORD_AUDIO" />
 +            <uses-permission android:name="android.permission.RECORD_VIDEO"/>
 +            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
 +        </config-file>
 +
 +        <source-file src="src/android/Capture.java" target-dir="src/org/apache/cordova/mediacapture" />
 +        <source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/mediacapture" />
 +    </platform>
 +    
+ 
+     <!-- ubuntu -->
+     <platform name="ubuntu">
+         <header-file src="src/ubuntu/capture.h" />
+         <source-file src="src/ubuntu/capture.cpp" />
+ 
+         <resource-file src="src/ubuntu/back.png" />
+         <resource-file src="src/ubuntu/MediaCaptureWidget.qml" />
+         <resource-file src="src/ubuntu/shoot.png" />
+         <resource-file src="src/ubuntu/microphone.png" />
+         <resource-file src="src/ubuntu/record_on.png" />
+         <resource-file src="src/ubuntu/record_off.png" />
+         <resource-file src="src/ubuntu/toolbar-left.png" />
+         <resource-file src="src/ubuntu/toolbar-middle.png" />
+         <resource-file src="src/ubuntu/toolbar-right.png" />
+     </platform>
+ 
      <!-- ios -->
      <platform name="ios">    
          <config-file target="config.xml" parent="/*">