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:10:34 UTC
[5/5] git commit: added initial config file
added initial config file
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/commit/79bbaa4d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/tree/79bbaa4d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/diff/79bbaa4d
Branch: refs/heads/master
Commit: 79bbaa4d5e3139b46010b8342f349e7bb989ab69
Parents: f1b4963
Author: hermwong <he...@gmail.com>
Authored: Wed May 22 14:10:11 2013 -0700
Committer: hermwong <he...@gmail.com>
Committed: Wed May 22 14:10:11 2013 -0700
----------------------------------------------------------------------
plugin.xml | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/79bbaa4d/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
new file mode 100644
index 0000000..adee300
--- /dev/null
+++ b/plugin.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
+xmlns:android="http://schemas.android.com/apk/res/android"
+id="org.apache.cordova.core.AudioHandler"
+ version="0.1.0">
+ <name>Media</name>
+
+ <js-module src="www/MediaError.js" name="MediaError">
+ <clobbers target="window.MediaError" />
+ </js-module>
+
+ <js-module src="www/Media.js" name="Media">
+ <clobbers target="window.Media" />
+ </js-module>
+
+ <!-- android -->
+ <platform name="android">
+ <config-file target="res/xml/config.xml" parent="/cordova/plugins">
+ <plugin name="Media" value="org.apache.cordova.core.AudioHandler"/>
+ </config-file>
+
+ <source-file src="AudioHandler.java" target-dir="org/apache/cordova/core" />
+ </platform>
+
+ <!-- ios -->
+ <platform name="ios">
+ <config-file target="config.xml" parent="/*">
+ <feature name="Media">
+ <param name="ios-package" value="CDVSound" />
+ </feature>
+ </config-file>
+ <header-file src="src/ios/CDVSound.h" />
+ <source-file src="src/ios/CDVSound.m" />
+ </platform>
+
+
+</plugin>