<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-bubbles" version="0.2.7" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
    <name>bubblesPlugin</name>
    <js-module name="bubblesPlugin" src="www/bubblesPlugin.js">
        <clobbers target="bubblesPlugin" />
    </js-module>
    <platform name="android">
        <config-file parent="/*" target="res/xml/config.xml">
            <feature name="bubblesPlugin">
                <param name="android-package" value="cordova.plugin.bubbles.bubblesPlugin" />
            </feature>
        </config-file>
        <config-file parent="/*" target="AndroidManifest.xml">
            <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
        </config-file>
        <config-file parent="/manifest/application" target="AndroidManifest.xml">
            <!--  Declare FloatingWidget Service over here and set enabled true -->
            <service
                android:name="cordova.plugin.bubbles.FloatingWidgetService"
                android:enabled="true"
                android:exported="true"
                android:process=":bubble" />

        </config-file>
        <source-file src="src/android/bubblesPlugin.java" 
            target-dir="src/cordova/plugin/bubbles/bubblesPlugin" />
        <source-file src="src/android/FloatingWidgetService.java" 
            target-dir="src/cordova/plugin/bubbles/bubblesPlugin" />
        <source-file src="src/android/bubbleBroadcastReceiver.java" 
            target-dir="src/cordova/plugin/bubbles/bubblesPlugin" />
        <source-file src="src/android/res/layout/floating_widget_layout.xml" 
            target-dir="res/layout" />
        <source-file src="src/android/res/layout/remove_floating_widget_layout.xml" 
            target-dir="res/layout" />
        <source-file src="src/android/res/layout/incoming_call.xml" 
            target-dir="res/layout" />
        <resource-file src="src/android/res/values/bubbels_strings.xml" 
            target="res/values/bubbels_strings.xml" />
        <resource-file src="src/android/res/drawable/circle_shape.xml" 
            target="res/drawable/circle_shape.xml" />
        <resource-file src="src/android/res/drawable/ic_aspect_ratio_black_24dp.xml" 
            target="res/drawable/ic_aspect_ratio_black_24dp.xml" />
        <resource-file src="src/android/res/drawable/ic_close_black_24dp.xml" 
            target="res/drawable/ic_close_black_24dp.xml" />
        <resource-file src="src/android/res/drawable/ic_close_white_24dp.xml"
            target="res/drawable/ic_close_white_24dp.xml" />
        <resource-file src="src/android/res/drawable/white_circle_shape.xml"
            target="res/drawable/white_circle_shape.xml" />
        <resource-file src="src/android/res/drawable/layout_bg.xml"
            target="res/drawable/layout_bg.xml" />
        <resource-file src="src/android/res/drawable/end.png"
            target="res/drawable/end.png" />
        <resource-file src="src/android/res/drawable/missed.png"
            target="res/drawable/missed.png" />
        <resource-file src="src/android/res/drawable/rep.png"
            target="res/drawable/rep.png" />
        <resource-file src="src/android/res/drawable/phone.png"
            target="res/drawable/phone.png" />
        <framework src='src/android/bubblesPlugin.gradle' custom='true' type='gradleReference' />
    </platform>
</plugin>