-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathplugin.xml
executable file
·54 lines (45 loc) · 1.87 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-audio-recorder-api"
xmlns:android="http://schemas.android.com/apk/res/android"
version="0.0.1">
<name>AudioRecorderAPI</name>
<description>
This plugin is a Cordova audio recorder plugin which works as API.
</description>
<license>MIT</license>
<engines>
<engine name="cordova" version=">=3.0.0"/>
</engines>
<js-module src="www/AudioRecorderAPI.js" name="AudioRecorderAPI">
<clobbers target="window.plugins.audioRecorderAPI" />
</js-module>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="AudioRecorderAPI">
<param name="ios-package" value="AudioRecorderAPI"/>
</feature>
</config-file>
<header-file src="src/ios/AudioRecorderAPI.h"/>
<source-file src="src/ios/AudioRecorderAPI.m"/>
<preference name="MICROPHONE_USAGE_DESCRIPTION" default=" " />
<config-file target="*-Info.plist" parent="NSMicrophoneUsageDescription">
<string>$MICROPHONE_USAGE_DESCRIPTION</string>
</config-file>
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AudioRecorderAPI">
<param name="android-package" value="com.emj365.plugins.AudioRecorderAPI" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
</config-file>
<source-file src="src/android/com/emj365/plugins/AudioRecorderAPI.java" target-dir="src/com/emj365/plugins"/>
</platform>
</plugin>