diff --git a/plugin.xml b/plugin.xml
index 06155f5..5c07c4c 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -6,25 +6,31 @@ id="org.apache.cordova.core.CameraLauncher"
version="0.1.0">
Camera
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
+
@@ -34,6 +40,11 @@ id="org.apache.cordova.core.CameraLauncher"
+
+
+
+
+
diff --git a/src/ios/CDVCamera.h b/src/ios/CDVCamera.h
index 2932e3b..744ae7f 100644
--- a/src/ios/CDVCamera.h
+++ b/src/ios/CDVCamera.h
@@ -20,7 +20,7 @@
#import
#import
#import
-#import "CDVPlugin.h"
+#import
enum CDVDestinationType {
DestinationTypeDataUrl = 0,
diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m
index 1ee641c..2b769ba 100644
--- a/src/ios/CDVCamera.m
+++ b/src/ios/CDVCamera.m
@@ -19,9 +19,9 @@
#import "CDVCamera.h"
#import "CDVJpegHeaderWriter.h"
-#import "NSArray+Comparisons.h"
-#import "NSData+Base64.h"
-#import "NSDictionary+Extensions.h"
+#import
+#import
+#import
#import
#import
#import
diff --git a/www/Camera.js b/www/Camera.js
index 77f4a98..2d16ee0 100644
--- a/www/Camera.js
+++ b/www/Camera.js
@@ -21,8 +21,8 @@
var argscheck = require('cordova/argscheck'),
exec = require('cordova/exec'),
- Camera = require('org.apache.cordova.core.CameraConstants'),
- CameraPopoverHandle = require('org.apache.cordova.core.CameraPopoverHandle');
+ Camera = require('org.apache.cordova.core.CameraLauncher.CameraConstants'),
+ CameraPopoverHandle = require('org.apache.cordova.core.CameraLauncher.CameraPopoverHandle');
var cameraExport = {};
diff --git a/www/CameraPopoverOptions.js b/www/CameraPopoverOptions.js
index 3df3745..36858a9 100644
--- a/www/CameraPopoverOptions.js
+++ b/www/CameraPopoverOptions.js
@@ -19,7 +19,7 @@
*
*/
-var Camera = require('org.apache.cordova.core.CameraConstants');
+var Camera = require('org.apache.cordova.core.CameraLauncher.Camera');
/**
* Encapsulates options for iOS Popover image picker
diff --git a/www/ios/CameraPopoverHandle.js b/www/ios/CameraPopoverHandle.js
new file mode 100644
index 0000000..fc48c11
--- /dev/null
+++ b/www/ios/CameraPopoverHandle.js
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+var exec = require('cordova/exec');
+
+/**
+ * A handle to an image picker popover.
+ */
+var CameraPopoverHandle = function() {
+ this.setPosition = function(popoverOptions) {
+ var args = [ popoverOptions ];
+ exec(null, null, "Camera", "repositionPopover", args);
+ };
+};
+
+module.exports = CameraPopoverHandle;