You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2013/06/18 00:47:39 UTC
git commit: [CB-3654] added extern storage permissions so camera
works. fixed issue with test page.
Updated Branches:
refs/heads/master a9b79ebb4 -> 4db9a6c81
[CB-3654] added extern storage permissions so camera works. fixed issue with test page.
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/4db9a6c8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/4db9a6c8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/4db9a6c8
Branch: refs/heads/master
Commit: 4db9a6c8137276fd9dce8050a308d1697328141b
Parents: a9b79eb
Author: Fil Maj <ma...@gmail.com>
Authored: Mon Jun 17 15:47:34 2013 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Mon Jun 17 15:47:34 2013 -0700
----------------------------------------------------------------------
plugin.xml | 3 +++
test/camera/index.html | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/4db9a6c8/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index c528d8b..cc9f925 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -26,6 +26,9 @@ id="org.apache.cordova.core.CameraLauncher"
<param name="android-package" value="org.apache.cordova.core.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/core" />
</platform>
http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/4db9a6c8/test/camera/index.html
----------------------------------------------------------------------
diff --git a/test/camera/index.html b/test/camera/index.html
index 08a93f9..f761fbf 100644
--- a/test/camera/index.html
+++ b/test/camera/index.html
@@ -340,7 +340,7 @@
document.addEventListener("deviceready", function() {
deviceReady = true;
platformId = cordova.require('cordova/platform').id;
- CameraPopoverOptions = cordova.require('org.apache.cordova.CameraLauncher.CameraPopoverOptions');
+ CameraPopoverOptions = cordova.require('org.apache.cordova.core.CameraLauncher.CameraPopoverOptions');
console.log("Device="+device.platform+" "+device.version);
createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault);
createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault);