<?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="community-cordova-plugin-dbmeter"
        version="2.3.2">
    <name>Cordova Plugin DBMeter</name>
    <description>A Cordova plugin to get decibel (dB) values from the device microphone</description>
    <license>MIT</license>
    <keywords>cordova,phonegap,volume,sound,audio,decibel,dbmeter,microphone,noise</keywords>
    <repo>https://github.com/eyalin/community-cordova-plugin-dbmeter.git</repo>
    <issue>https://github.com/eyalin/community-cordova-plugin-dbmeter/issues</issue>

    <!-- android -->
    <platform name="android">
        <js-module src="www/plugin.js" name="DBMeterPlugin">
            <runs/>
            <clobbers target="DBMeterPlugin" />
        </js-module>

        <config-file target="AndroidManifest.xml" parent="/*">
            <uses-permission android:name="android.permission.RECORD_AUDIO" />
        </config-file>

        <config-file target="res/xml/config.xml" parent="/*">
            <feature name="DBMeterPlugin">
                <param name="android-package" value="dbmeterplugin.DBMeterPlugin" />
                <param name="onload" value="true" />
            </feature>
        </config-file>

        <source-file src="src/android/DBMeterPlugin.java" target-dir="src/dbmeterplugin" />
    </platform>

    <!-- ios -->
    <platform name="ios">
        <js-module src="www/plugin.js" name="DBMeterPlugin">
            <runs/>
            <clobbers target="DBMeterPlugin" />
        </js-module>

        <config-file target="config.xml" parent="/*">
            <feature name="DBMeterPlugin">
                <param name="ios-package" value="DBMeterPlugin" onload="true" />
            </feature>
        </config-file>

        <source-file src="src/ios/DBMeterPlugin.swift" />
    </platform>
</plugin>
