<?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-minterfacedevt"
    version="1.0.10">
    <name>mInterfacedevt</name>
    <description>This plugin establishes the connection to the native interface and performs the requested task.</description>
    <author>selfservit@gmail.com</author>
    <engines>
        <engine name="cordova" version=">=5.0.0" />
    </engines>
    <keywords>mInterfacedevt</keywords>
    <license>Apache 2.0 License</license>
    <repo></repo>
    <issue></issue>
    <asset src="www/mInterface.js" target="js/mInterface.js"/>
    <js-module src="www/mInterface.js" name="mInterface">
        <clobbers target="mInterface" />
    </js-module>
    <!-- android -->
    <platform name="android">
        <framework src="com.google.android.gms:play-services:11.0.+" />
        <framework src="com.google.android.gms:play-services-location:11.0.+" />
        <!--<config-file target="AndroidManifest.xml" parent="/manifest/application">
         <meta-data
         android:name="com.google.android.gms.version"
         android:value="@integer/11.0.4" />
         </config-file>-->
        <!--<edit-config xmlns:android="http://schemas.android.com/apk/res/android" file="AndroidManifest.xml" mode="merge" target="/manifest/application">
         <application android:networkSecurityConfig="@xml/network_security_config" />
         </edit-config>-->
        <config-file target="res/xml/config.xml" parent="/*">
            <feature name="mInterface" >
                <param name="android-package" value="com.selfservit.util.mInterface"/>
            </feature>
        </config-file>
        <config-file target="AndroidManifest.xml" parent="/manifest">
            <uses-feature android:name="android.hardware.camera" android:required="true" />
            <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
            <uses-permission android:name="android.permission.INTERNET" />
            <uses-permission android:name="android.permission.CAMERA" />
            <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
            <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
            <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
            <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
            <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
            <uses-permission android:name="android.permission.READ_PHONE_STATE" />
        </config-file>
        <config-file target="AndroidManifest.xml" parent="/manifest/application">
            <service android:name="com.selfservit.util.mInterfaceService" android:enabled="true" android:exported="true"/>
            <receiver android:name="com.selfservit.util.mInterfaceReceiver" android:enabled="true" android:exported="true">
                <intent-filter>
                    <action android:name="android.intent.action.BOOT_COMPLETED"/>
                    <action android:name="com.example.checkservice" />
                </intent-filter>
            </receiver>
            <provider android:name="com.selfservit.util.FileProvider" android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true">
                <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/opener_paths" />
            </provider>
        </config-file>
        <source-file src="src/android/mInterfaceService.java" target-dir="src/com/selfservit/util/" />
        <source-file src="src/android/mInterfaceReceiver.java" target-dir="src/com/selfservit/util/" />
        <source-file src="src/android/mInterface.java" target-dir="src/com/selfservit/util/" />
        <source-file src="src/android/mInterfaceUtil.java" target-dir="src/com/selfservit/util/" />
        <source-file src="src/android/CallbackProgressDialog.java" target-dir="src/com/selfservit/util/" />
        <source-file src="src/android/FileProvider.java" target-dir="src/com/selfservit/util/" />
        <source-file src="src/android/res/xml/opener_paths.xml" target-dir="res/xml" />
        <source-file src="src/android/res/xml/network_security_config.xml" target-dir="res/xml" />
        <framework src="com.android.support:support-v4:+" />
    </platform>
    <platform name="ios">
        <config-file target="*-Info.plist" parent="UIBackgroundModes">
            <array>
                <string>location</string>
            </array>
        </config-file>
        <config-file target="*-Info.plist" parent="UIRequiredDeviceCapabilities">
            <array>
                <string>location-services</string>
            </array>
        </config-file>
        
        <config-file target="*-Info.plist" parent="NSLocationAlwaysUsageDescription">
            <string>LOCATION_ALWAYS_USAGE_DESCRIPTION</string>
        </config-file>
        
        <config-file target="*-Info.plist" parent="NSCameraUsageDescription">
            <string>CAMERA_USAGE_DESCRIPTION</string>
        </config-file>
        
        <config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
            <string>PHOTOLIBRARY_USAGE_DESCRIPTION</string>
        </config-file>
        
        <config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
            <string>LOCATION_WHEN_IN_USE_USAGE_DESCRIPTION</string>
        </config-file>
        <preference name="CAMERA_USAGE_DESCRIPTION" default="Allow use camera from your device" />
        <preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default="Allow access your photos from gallery" />
        <preference name="BACKGROUND_MODE_LOCATION" default="&lt;string&gt;location&lt;/string&gt;" />
        <preference name="LOCATION_ALWAYS_USAGE_DESCRIPTION" default="Background location-tracking is required" />
        <preference name="LOCATION_WHEN_IN_USE_USAGE_DESCRIPTION" default="Background location-tracking is required" />
        <config-file target="config.xml" parent="/widget">
            <feature name="mInterface">
                <param name="ios-package" value="mInterface" />
            </feature>
        </config-file>
        <header-file src="src/ios/mInterface.h"/>
        <source-file src="src/ios/mInterface.m"/>
        <header-file src="src/ios/InternetConnection.h"/>
        <source-file src="src/ios/InternetConnection.m"/>
        <header-file src="src/ios/XMLConverter.h"/>
        <source-file src="src/ios/XMLConverter.m"/>
        <source-file src="src/ios/SSZipArchive.h" target-dir="Plugins/minizip" />
        <source-file src="src/ios/SSZipArchive.m" target-dir="Plugins/minizip" />
        <header-file src="src/ios/SSZipCommon.h" target-dir="Plugins/minizip" />
        <header-file src="src/ios/ZipArchive.h" target-dir="Plugins/minizip" />
        <source-file src="src/ios/minizip/crypt.c" target-dir="Plugins/minizip" />
        <header-file src="src/ios/minizip/crypt.h" target-dir="Plugins/minizip" />
        <source-file src="src/ios/minizip/ioapi_buf.c" target-dir="Plugins/minizip" />
        <header-file src="src/ios/minizip/ioapi_buf.h" target-dir="Plugins/minizip" />
        <source-file src="src/ios/minizip/ioapi_mem.c" target-dir="Plugins/minizip" />
        <header-file src="src/ios/minizip/ioapi_mem.h" target-dir="Plugins/minizip" />
        <source-file src="src/ios/minizip/ioapi.c" target-dir="Plugins/minizip" />
        <header-file src="src/ios/minizip/ioapi.h" target-dir="Plugins/minizip" />
        <source-file src="src/ios/minizip/minishared.c" target-dir="Plugins/minizip" />
        <header-file src="src/ios/minizip/minishared.h" target-dir="Plugins/minizip" />
        <source-file src="src/ios/minizip/unzip.c" target-dir="Plugins/minizip" />
        <header-file src="src/ios/minizip/unzip.h" target-dir="Plugins/minizip" />
        <source-file src="src/ios/minizip/zip.c" target-dir="Plugins/minizip" />
        <header-file src="src/ios/minizip/zip.h" target-dir="Plugins/minizip" />
        <source-file src="src/ios/aes/aes_ni.c" target-dir="Plugins/aes" />
        <header-file src="src/ios/aes/aes_ni.h" target-dir="Plugins/aes" />
        <header-file src="src/ios/aes/aes.h" target-dir="Plugins/aes" />
        <source-file src="src/ios/aes/aescrypt.c" target-dir="Plugins/aes" />
        <source-file src="src/ios/aes/aeskey.c" target-dir="Plugins/aes" />
        <header-file src="src/ios/aes/aesopt.h" target-dir="Plugins/aes" />
        <source-file src="src/ios/aes/aestab.c" target-dir="Plugins/aes" />
        <header-file src="src/ios/aes/aestab.h" target-dir="Plugins/aes" />
        <header-file src="src/ios/aes/brg_endian.h" target-dir="Plugins/aes" />
        <header-file src="src/ios/aes/brg_types.h" target-dir="Plugins/aes" />
        <source-file src="src/ios/aes/fileenc.c" target-dir="Plugins/aes" />
        <header-file src="src/ios/aes/fileenc.h" target-dir="Plugins/aes" />
        <source-file src="src/ios/aes/hmac.c" target-dir="Plugins/aes" />
        <header-file src="src/ios/aes/hmac.h" target-dir="Plugins/aes" />
        <source-file src="src/ios/aes/prng.c" target-dir="Plugins/aes" />
        <header-file src="src/ios/aes/prng.h" target-dir="Plugins/aes" />
        <source-file src="src/ios/aes/pwd2key.c" target-dir="Plugins/aes" />
        <header-file src="src/ios/aes/pwd2key.h" target-dir="Plugins/aes" />
        <source-file src="src/ios/aes/sha1.c" target-dir="Plugins/aes" />
        <header-file src="src/ios/aes/sha1.h" target-dir="Plugins/aes" />
        <framework src="CoreLocation1.framework" />
        <framework src="MapKit.framework" />
        <framework src="Foundation.framework" />
        <framework src="SystemConfiguration.framework" />
        <framework src="CoreFoundation.framework" />
        <framework src="CoreTelephony.framework" />
        <framework src="UIKit.framework" />
        <framework src="CFNetwork.framework" />
        <framework src="AssetsLibrary.framework" />
        <framework src="AVFoundation.framework" />
        <framework src="libz.dylib" />
    </platform>
</plugin>
