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 23:40:15 UTC

[4/4] git commit: initial config added

initial config added


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/41691a32
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/41691a32
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/41691a32

Branch: refs/heads/master
Commit: 41691a326c0b9e1d600774d6a1f4dfcc195294e5
Parents: 90a7b8d
Author: hermwong <he...@gmail.com>
Authored: Wed May 22 14:39:57 2013 -0700
Committer: hermwong <he...@gmail.com>
Committed: Wed May 22 14:39:57 2013 -0700

----------------------------------------------------------------------
 plugin.xml |   47 +++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 45 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/41691a32/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 0eb0f67..4564d95 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,10 +2,38 @@
 
 <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.Capture"
     version="0.1.0">
     <name>Capture</name>
 
+    <js-module src="www/CaptureAudioOptions.js" name="CaptureAudioOptions">
+        <clobbers target="CaptureAudioOptions" />
+    </js-module>
+    
+    <js-module src="www/CaptureImageOptions.js" name="CaptureImageOptions">
+        <clobbers target="CaptureImageOptions" />
+    </js-module>
+
+    <js-module src="www/CaptureVideoOptions.js" name="CaptureVideoOptions">
+        <clobbers target="CaptureVideoOptions" />
+    </js-module>
+        
+    <js-module src="www/CaptureError.js" name="CaptureError">
+        <clobbers target="CaptureError" />
+    </js-module>
+
+    <js-module src="www/MediaFileData.js" name="MediaFileData">
+        <clobbers target="MediaFileData" />
+    </js-module>
+        
+    <js-module src="www/MediaFile.js" name="MediaFile">
+        <clobbers target="MediaFile" />
+    </js-module>
+    
+    <js-module src="www/capture.js" name="capture">
+        <clobbers target="navigator.device.capture" />
+    </js-module>
+
     <!-- android -->
     <platform name="android">
         <config-file target="res/xml/config.xml" parent="/cordova/plugins">
@@ -13,5 +41,20 @@ id="org.apache.cordova.core">
         </config-file>
 
         <source-file src="Capture.java" target-dir="org/apache/cordova/core" />
-       </platform>
+    </platform>
+    
+    <!-- ios -->
+    <platform name="ios">    
+        <config-file target="config.xml" parent="/*">
+            <feature name="Capture">
+                <param name="ios-package" value="CDVCapture" /> 
+            </feature>
+        </config-file>
+        <header-file src="src/ios/CDVAvailability.h" />
+        <header-file src="src/ios/CDVFile.h" />
+        <header-file src="src/ios/CDVJSON.h" />
+        <header-file src="src/ios/CDVCapture.h" />
+        <source-file src="src/ios/CDVCapture.m" />
+    </platform>
+        
 </plugin>