You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by he...@apache.org on 2013/05/22 22:47:22 UTC

[3/3] git commit: updated to include iOS config & js source files config

updated to include iOS config & js source files config


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/c26377ae
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/c26377ae
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/c26377ae

Branch: refs/heads/master
Commit: c26377ae98e5dd807ad76fcbf73684b93af112af
Parents: 33c2270
Author: hermwong <he...@gmail.com>
Authored: Wed May 22 13:47:10 2013 -0700
Committer: hermwong <he...@gmail.com>
Committed: Wed May 22 13:47:10 2013 -0700

----------------------------------------------------------------------
 plugin.xml |   31 +++++++++++++++++++++++++++++--
 1 files changed, 29 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/c26377ae/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 035b487..a4c4362 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,10 +2,22 @@
 
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
 xmlns:android="http://schemas.android.com/apk/res/android"
-id="org.apache.cordova.core">
+id="org.apache.cordova.core"
     version="0.1.0">
     <name>Camera</name>
 
+    <js-module src="www/CameraConstants.js" name="camera">
+        <clobbers target="window.camera" />
+    </js-module>
+
+    <js-module src="www/CameraPopoverOptions.js" name="camera">
+        <clobbers target="window.camera" />
+    </js-module>
+    
+    <js-module src="www/Camera.js" name="camera">
+        <clobbers target="navigator.camera" />
+    </js-module>
+    
     <!-- android -->
     <platform name="android">
         <config-file target="res/xml/config.xml" parent="/cordova/plugins">
@@ -13,5 +25,20 @@ id="org.apache.cordova.core">
         </config-file>
 
         <source-file src="CameraLauncher.java" target-dir="org/apache/cordova/core" />
-       </platform>
+     </platform>
+     
+     <!-- ios -->
+     <platform name="ios">    
+         <config-file target="config.xml" parent="/*">
+             <feature name="Camera">
+                 <param name="ios-package" value="CDVCamera" /> 
+             </feature>
+         </config-file>
+         <header-file src="src/ios/CDVCamera.h" />
+         <source-file src="src/ios/CDVCamera.m" />
+         <header-file src="src/ios/CDVJpegHeaderWriter.h" />
+ 	     <source-file src="src/ios/CDVJpegHeaderWriter.m" />
+ 	     <header-file src="src/ios/CDVExif.h" />
+     </platform>
+          
 </plugin>