<?xml version='1.0' encoding='utf-8'?>
<plugin id="mobitor-plugin-camera" version="1.0.45" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
    <name>Mobitor Camera</name>
    <description>Mobitor Camera Plugin</description>
    <license>MIT</license>
    <keywords>cordova,camera,mobitor,ios</keywords>
    <repo>https://github.com/mobitor/mcamera/mcamera.git</repo>
    <issue>https://github.com/mobitor/mcamera/issues</issue>

    <engines>
        <engine name="cordova-android" version=">=6.3.0" />
    </engines>

    <js-module name="MobitorCamera" src="www/MobitorCamera.js">
        <clobbers target="mobitorCamera" />
    </js-module>
    <dependency id="cordova-plugin-cocoapod-support"/>
    <platform name="ios">
        <variable name="CAMERA_USAGE_DESCRIPTION" value="App would like to access the camera." />
        <variable name="MICROPHONE_USAGE_DESCRIPTION" value="App would like to access the microphone." />
        <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="App would like to access the library." />
	<config-file target="config.xml" parent="/*">
            <feature name="MobitorCamera">
                <param name="ios-package" value="MobitorCameraSwift" />
            </feature>
        </config-file>
	<pods-config ios-min-version="9.0" use-frameworks="true"/>
	<pod name="ALCameraViewController" git="https://github.com/cyclic/ALCameraViewController" branch="develop" />
        <source-file src="src/ios/MobitorCameraSwift.swift" target-dir="src/com/mobitor/plugin" />
	<hook type="before_build" src="scripts/fixEntitlementsBuildSetting.js"/>
	<hook type="before_run" src="scripts/fixEntitlementsBuildSetting.js"/>
    </platform>
</plugin>
