<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
        id="cocoon-plugin-ads-ios-mopub" version="2.0.0">
    <name>AdsMopub</name>
    <description>iOS MoPub Ads implementation</description>
    <license>MPL 2.0</license>
    <keywords>cordova,ads,banner,interstitial,monetization,ad,mopub</keywords>
    <repo>https://github.com/ludei/atomic-plugins-ads</repo>
    <platform name="ios">
        <framework src="libs/MoPubSDKFramework.framework" custom="true" embed="true"/>

        <framework src="AdSupport.framework"/>
        <framework src="AVFoundation.framework"/>
        <framework src="CoreGraphics.framework"/>
        <framework src="CoreLocation.framework"/>
        <framework src="CoreMedia.framework"/>
        <framework src="CoreTelephony.framework"/>
        <framework src="Foundation.framework"/>
        <framework src="MediaPlayer.framework"/>
        <framework src="MessageUI.framework"/>
        <framework src="QuartzCore.framework"/>
        <framework src="SafariServices.framework"/>
        <framework src="StoreKit.framework"/>
        <framework src="SystemConfiguration.framework"/>
        <framework src="UIKit.framework"/>

        <header-file src="src/deps/LDAdServiceMoPub.h"/>
        <source-file src="src/deps/LDAdServiceMoPub.m"/>
        <header-file src="src/LDMoPubPlugin.h"/>
        <source-file src="src/LDMoPubPlugin.m"/>

        <preference name="CALENDAR_USAGE_DESCRIPTION" default="This app requires the calendar usage permission"/>
        <config-file target="*-Info.plist" parent="NSCalendarsUsageDescription">
            <string>$CALENDAR_USAGE_DESCRIPTION</string>
        </config-file>

        <config-file target="config.xml" parent="/*">
            <feature name="LDAdService">
                <param name="ios-package" value="LDMoPubPlugin"/>
            </feature>
            <feature name="LDMoPubPlugin">
                <param name="ios-package" value="LDMoPubPlugin"/>
            </feature>
        </config-file>

        <dependency id="cocoon-plugin-ads-ios-common"/>
    </platform>
</plugin>
