Hello, I'm developing a plugin for cordova, but I noticed, that config-file
in plugins.xml doesn't work. I'm using a Cordova 10.0. Nothing add to
AndroidManifest after adding plugin to cordova project and after cordova
build android.
<?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-admob" version="0.7.0">

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

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

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

    <preference name="ADMOB_ANDROID_APP_ID" default="" />
    <preference name="ADMOB_IOS_APP_ID" default="" />
    
    <platform name="android">

        <preference name="PLAY_SERVICES_VERSION" default="19.8.0" />

        <framework src="com.google.android.gms:play-services-ads:$PLAY_SERVICES_VERSION" />

        <config-file target="AndroidManifest.xml" parent="/manifest/application">
            <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" 
                        android:value="$ADMOB_ANDROID_APP_ID"/>
        </config-file>

        <framework src="src/android/Admob.gradle" custom="true" type="gradleReference" />

    </platform>

    <platform name= "ios">

        <config-file target="*-Info.plist" parent="SKAdNetworkItems">
            <array>
                <dict>
                    <key>SKAdNetworkIdentifier</key>
                    <string>cstr6suwn9.skadnetwork</string>
                </dict>
            </array>
        </config-file>

        <config-file target="*-Info.plist" parent="GADApplicationIdentifier">
            <string>$ADMOB_IOS_APP_ID</string>
        </config-file>

        <podspec>
            <config>
                <source url="https://cdn.cocoapods.org/"/>
            </config>
            <pods>
                <pod name="IronSourceAdMobAdapter" spec="4.3.21.1"/>
            </pods>
        </podspec>

    </platform>
</plugin>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to