Conflicts:
	plugin.xml
This commit is contained in:
Jesse MacFadyen 2013-07-08 14:53:49 -07:00
commit ad6b9fa3fd
6 changed files with 22 additions and 12 deletions

View File

@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android" id="org.apache.cordova.core.camera"
id="org.apache.cordova.core.CameraLauncher"
version="0.1.0"> version="0.1.0">
<name>Camera</name> <name>Camera</name>
@ -12,9 +11,6 @@ id="org.apache.cordova.core.CameraLauncher"
<js-module src="www/CameraPopoverOptions.js" name="CameraPopoverOptions"></js-module> <js-module src="www/CameraPopoverOptions.js" name="CameraPopoverOptions"></js-module>
<js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
</js-module>
<js-module src="www/Camera.js" name="camera"> <js-module src="www/Camera.js" name="camera">
<clobbers target="navigator.camera" /> <clobbers target="navigator.camera" />
</js-module> </js-module>
@ -31,6 +27,10 @@ id="org.apache.cordova.core.CameraLauncher"
</config-file> </config-file>
<source-file src="src/android/CameraLauncher.java" target-dir="src/org/apache/cordova/core" /> <source-file src="src/android/CameraLauncher.java" target-dir="src/org/apache/cordova/core" />
<js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
</js-module>
</platform> </platform>
<!-- ios --> <!-- ios -->
@ -57,6 +57,9 @@ id="org.apache.cordova.core.CameraLauncher"
<config-file target="www/config.xml" parent="/widget"> <config-file target="www/config.xml" parent="/widget">
<feature name="Camera" value="Camera"/> <feature name="Camera" value="Camera"/>
</config-file> </config-file>
<js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
</js-module>
</platform> </platform>
<!-- wp7 --> <!-- wp7 -->
@ -72,6 +75,10 @@ id="org.apache.cordova.core.CameraLauncher"
</config-file> </config-file>
<source-file src="src/wp/Camera.cs" /> <source-file src="src/wp/Camera.cs" />
<js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
</js-module>
</platform> </platform>
<!-- wp8 --> <!-- wp8 -->
@ -87,6 +94,9 @@ id="org.apache.cordova.core.CameraLauncher"
</config-file> </config-file>
<source-file src="src/wp/Camera.cs" /> <source-file src="src/wp/Camera.cs" />
<js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
</js-module>
</platform> </platform>
</plugin> </plugin>

View File

@ -340,7 +340,7 @@
document.addEventListener("deviceready", function() { document.addEventListener("deviceready", function() {
deviceReady = true; deviceReady = true;
platformId = cordova.require('cordova/platform').id; platformId = cordova.require('cordova/platform').id;
CameraPopoverOptions = cordova.require('org.apache.cordova.core.CameraLauncher.CameraPopoverOptions'); CameraPopoverOptions = cordova.require('org.apache.cordova.core.camera.CameraPopoverOptions');
console.log("Device="+device.platform+" "+device.version); console.log("Device="+device.platform+" "+device.version);
createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault); createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault);
createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault); createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault);

View File

@ -21,8 +21,8 @@
var argscheck = require('cordova/argscheck'), var argscheck = require('cordova/argscheck'),
exec = require('cordova/exec'), exec = require('cordova/exec'),
Camera = require('org.apache.cordova.core.CameraLauncher.Camera'), Camera = require('org.apache.cordova.core.camera.Camera'),
CameraPopoverHandle = require('org.apache.cordova.core.CameraLauncher.CameraPopoverHandle'); CameraPopoverHandle = require('org.apache.cordova.core.camera.CameraPopoverHandle');
var cameraExport = {}; var cameraExport = {};

View File

@ -19,7 +19,7 @@
* *
*/ */
var Camera = require('org.apache.cordova.core.CameraLauncher.Camera'); var Camera = require('org.apache.cordova.core.camera.Camera');
/** /**
* Encapsulates options for iOS Popover image picker * Encapsulates options for iOS Popover image picker