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:56:01 UTC
[6/9] git commit: added ubuntu support
added ubuntu support
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/a6736cda
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/a6736cda
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/a6736cda
Branch: refs/heads/master
Commit: a6736cda71933d2d00c9d5c25cda805d724d35f7
Parents: d8a3d2f 885c6a7
Author: Steven Gill <st...@gmail.com>
Authored: Mon Dec 2 15:11:12 2013 -0800
Committer: Steven Gill <st...@gmail.com>
Committed: Mon Dec 2 15:11:12 2013 -0800
----------------------------------------------------------------------
plugin.xml | 21 ++++++
src/ubuntu/CaptureWidget.qml | 119 ++++++++++++++++++++++++++++++
src/ubuntu/back.png | Bin 0 -> 12428 bytes
src/ubuntu/camera.cpp | 143 +++++++++++++++++++++++++++++++++++++
src/ubuntu/camera.h | 76 ++++++++++++++++++++
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
9 files changed, 359 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/a6736cda/plugin.xml
----------------------------------------------------------------------
diff --cc plugin.xml
index f441c6e,a7da775..fda60c6
--- a/plugin.xml
+++ b/plugin.xml
@@@ -46,27 -44,27 +46,48 @@@
</platform>
+ <!-- amazon-fireos -->
+ <platform name="amazon-fireos">
+ <config-file target="res/xml/config.xml" parent="/*">
+ <feature name="Camera">
+ <param name="android-package" value="org.apache.cordova.camera.CameraLauncher"/>
+ </feature>
+ </config-file>
+ <config-file target="AndroidManifest.xml" parent="/*">
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+ </config-file>
+
+ <source-file src="src/android/CameraLauncher.java" target-dir="src/org/apache/cordova/camera" />
+ <source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/camera" />
+ <source-file src="src/android/ExifHelper.java" target-dir="src/org/apache/cordova/camera" />
+
+ <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
+ <clobbers target="CameraPopoverHandle" />
+ </js-module>
+
+ </platform>
+
+ <!-- ubuntu -->
+ <platform name="ubuntu">
+ <config-file target="config.xml" parent="/*">
+ <feature name="Camera">
+ <param policy_group="camera" policy_version="1" />
+ </feature>
+ </config-file>
+ <js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
+ <clobbers target="CameraPopoverHandle" />
+ </js-module>
+ <header-file src="src/ubuntu/camera.h" />
+ <source-file src="src/ubuntu/camera.cpp" />
+
+ <resource-file src="src/ubuntu/back.png" />
+ <resource-file src="src/ubuntu/CaptureWidget.qml" />
+ <resource-file src="src/ubuntu/shoot.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="/*">