
<?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="chadori-mobile-ironsource-mytarget" version="1.0.0">

    <name>Mobile IronSource myTarget</name>
    <description>A Cordova plugin for the Construct Master Collection to implement IronSource - myTarget ads mediation.</description>
    <license>MIT</license>

    <keywords>cordova,android,ios,construct-master-collection,ironsource,mediation,mytarget,ads</keywords>
    <repo>https://github.com/Chadori/Construct-Master-Collection.git</repo>
    <issue>https://github.com/Chadori/Construct-Master-Collection/issues</issue>

    <preference name="IRONSOURCE_MYTARGET_ANDROID_ADAPTER_VERSION" default="4.1.13"/>
    <preference name="MYTARGET_ANDROID_SDK_VERSION" default="5.15.0"/>
    <preference name="MYTRACKER_ANDROID_SDK_VERSION" default="3.0.0"/>
    <preference name="GOOGLE_EXOPLAYER_ANDROID_SDK_VERSION" default="2.13.3"/>

    <preference name="IRONSOURCE_MYTARGET_IOS_POD_VERSION" default="4.1.13.2"/>

    <engines>
        <engine name="cordova" version=">=6.5.0"/>
    </engines>
    
    <platform name="android">

        <!-- Gradle -->
        <framework src="src/android/myTarget.gradle" custom="true" type="gradleReference" />

        <!-- IronSource Dependencies -->
        <framework src="com.ironsource.adapters:mytargetadapter:$IRONSOURCE_MYTARGET_ANDROID_ADAPTER_VERSION" />

        <!-- MyTarget Dependencies -->
        <framework src="com.my.target:mytarget-sdk:$MYTARGET_ANDROID_SDK_VERSION" />

        <!-- MyTracker Dependencies -->
        <framework src="com.my.tracker:mytracker-sdk:$MYTRACKER_ANDROID_SDK_VERSION" />

        <!-- Google Dependencies -->
        <framework src="com.google.android.exoplayer:exoplayer-core:$GOOGLE_EXOPLAYER_ANDROID_SDK_VERSION" />
        <framework src="com.google.android.exoplayer:exoplayer-hls:$GOOGLE_EXOPLAYER_ANDROID_SDK_VERSION" />

    </platform>

    <platform name= "ios">
    
        <config-file target="*-Info.plist" parent="SKAdNetworkItems">
            <array>
                <dict>
                    <key>SKAdNetworkIdentifier</key>
                    <string>n9x2a789qt.skadnetwork</string>
                </dict>
                <dict>
                    <key>SKAdNetworkIdentifier</key>
                    <string>r26jy69rpl.skadnetwork</string>
                </dict>
            </array>
        </config-file>

        <podspec>
            <config>
                <source url="https://cdn.cocoapods.org/"/>
            </config>
            <pods>
                <pod name="IronSourceMyTargetAdapter" spec="$IRONSOURCE_MYTARGET_IOS_POD_VERSION"/>
            </pods>
        </podspec>

    </platform>
</plugin>