forked from floatinghotpot/cordova-plugin-nativeaudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
76 lines (60 loc) · 2.94 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-nativeaudio"
version="3.0.9">
<name>Cordova Native Audio</name>
<author>Andrew Trice, Raymond Xie, Sidney Bofah and other contributors</author>
<description>Cordova/PhoneGap Plugin for low latency Native Audio Playback, must have for HTML5 games</description>
<license>MIT</license>
<keywords>audio,fx,music,mp3,game,rjfun</keywords>
<repo>https://github.com/floatinghotpot/cordova-plugin-nativeaudio.git</repo>
<issue>https://github.com/floatinghotpot/cordova-plugin-nativeaudio/issues</issue>
<engines>
<engine name="cordova" version=">=3.5" />
</engines>
<!-- android -->
<platform name="android">
<js-module src="www/nativeaudio.js" name="nativeaudio">
<clobbers target="window.plugins.NativeAudio"/>
</js-module>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="NativeAudio">
<param name="android-package" value="com.rjfun.cordova.plugin.nativeaudio.NativeAudio"/>
</feature>
</config-file>
<source-file src="src/android/NativeAudio.java" target-dir="src/com/rjfun/cordova/plugin/nativeaudio"/>
<source-file src="src/android/NativeAudioAsset.java" target-dir="src/com/rjfun/cordova/plugin/nativeaudio"/>
<source-file src="src/android/NativeAudioAssetComplex.java" target-dir="src/com/rjfun/cordova/plugin/nativeaudio"/>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
</config-file>
</platform>
<!-- ios -->
<platform name="ios">
<js-module src="www/nativeaudio.js" name="nativeaudio">
<clobbers target="window.plugins.NativeAudio"/>
</js-module>
<config-file target="config.xml" parent="/*">
<feature name="NativeAudio">
<param name="ios-package" value="NativeAudio"/>
</feature>
</config-file>
<framework src="Foundation.framework"/>
<framework src="AVFoundation.framework"/>
<framework src="AudioToolbox.framework"/>
<header-file src="src/ios/NativeAudio.h"/>
<source-file src="src/ios/NativeAudio.m"/>
<header-file src="src/ios/NativeAudioAsset.h"/>
<source-file src="src/ios/NativeAudioAsset.m"/>
</platform>
<!-- browser -->
<platform name="browser">
<js-module name="NativeAudioBrowser" src="www/nativeaudio-browser.js">
<clobbers target="cordova.plugins.NativeAudio" />
<clobbers target="plugins.NativeAudio" />
</js-module>
</platform>
</plugin>