-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
36 lines (36 loc) · 2.01 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-decibel" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>Cordova Decibel Plugin</name>
<description>A Cordova plugin that allows you to continuously monitor the noise level recorded by your phone's microphone in decibels.</description>
<author>Walter Robins</author>
<keywords>cordova,android,ios,mic,audio,sound,level,meter,noise</keywords>
<license>Apache 2.0</license>
<repo>https://github.com/wrobins/cordova-plugin-decibel.git</repo>
<issue>https://github.com/wrobins/cordova-plugin-decibel/issues</issue>
<js-module name="DecibelPlugin" src="www/DecibelPlugin.js">
<clobbers target="cordova.plugins.DecibelPlugin" />
</js-module>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="DecibelPlugin">
<param name="android-package" value="com.wrobins.cordova.plugin.DecibelPlugin" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml" />
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.RECORD_AUDIO" />
</config-file>
<source-file src="src/android/DecibelPlugin.java" target-dir="src/com/wrobins/cordova/plugin" />
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="DecibelPlugin">
<param name="ios-package" value="DecibelPlugin" />
</feature>
</config-file>
<edit-config file="*-Info.plist" mode="merge" target="NSMicrophoneUsageDescription">
<string>Microphone access is needed to record sound levels to display in decibels. Audio will not be saved or otherwise retained for this purpose.</string>
</edit-config>
<source-file src="src/ios/DecibelPlugin.swift" />
</platform>
</plugin>