gdevelop-cordova-admob-plus
Version:
Trustable Google AdMob Cordova Plugin
115 lines (99 loc) • 4.95 kB
text/xml
<plugin id="cordova-admob-plus" version="0.0.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>@admob-plus/cordova</name>
<js-module name="AdMob" src="www/admob.js">
<clobbers target="admob" />
</js-module>
<engines>
<engine name="cordova" version=">=7.0.0" />
<engine name="cordova-android" version=">=6.0.0" />
<engine name="cordova-ios" version=">=5.0.0" />
</engines>
<platform name="android">
<preference name="APP_ID_ANDROID" default="test" />
<preference name="PLAY_SERVICES_VERSION" default="19.5.0" />
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="$APP_ID_ANDROID" />
<meta-data
android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT"
android:value="true"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<!--
Manually add this permission as required for Android 13 and not added
by the Play Services Ads version we're using.
-->
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AdMob">
<param name="android-package" value="admob.plugin.AdMob"/>
</feature>
</config-file>
<framework src="com.google.android.gms:play-services-ads:$PLAY_SERVICES_VERSION" />
<!--
androidx.work:work-runtime:2.1.0 pulled from
play-services-ads has a bug using PendingIntent without
FLAG_IMMUTABLE or FLAG_MUTABLE and will fail in Apps
targeting S+.
See https://developers.google.com/admob/android/rel-notes#19.5.0
We add this "framework" which will result in `implementation "androidx.work:work-runtime:2.7.1"`
to be added in the app/build.gradle (i.e: we apply the workaround).
-->
<framework src="androidx.work:work-runtime:2.7.1" />
<!-- AUTOGENERATED: ANDROID_BEGIN -->
<source-file src="src/android/Action.java" target-dir="src/admob/plugin" />
<source-file src="src/android/Actions.java" target-dir="src/admob/plugin" />
<source-file src="src/android/AdMob.java" target-dir="src/admob/plugin" />
<source-file src="src/android/AdSizeType.java" target-dir="src/admob/plugin" />
<source-file src="src/android/Events.java" target-dir="src/admob/plugin" />
<source-file src="src/android/ads/AdBase.java" target-dir="src/admob/plugin/ads" />
<source-file src="src/android/ads/AdListener.java" target-dir="src/admob/plugin/ads" />
<source-file src="src/android/ads/BannerAd.java" target-dir="src/admob/plugin/ads" />
<source-file src="src/android/ads/InterstitialAd.java" target-dir="src/admob/plugin/ads" />
<source-file src="src/android/ads/RewardedVideoAd.java" target-dir="src/admob/plugin/ads" />
<!-- AUTOGENERATED: ANDROID_END -->
</platform>
<platform name="ios">
<preference name="APP_ID_IOS" default="test" />
<config-file target="config.xml" parent="/*">
<feature name="AdMob">
<param name="ios-package" value="AMSPlugin" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="GADApplicationIdentifier">
<string>$APP_ID_IOS</string>
</config-file>
<header-file src="src/ios/AMSPlugin-Bridging-Header.h" type="BridgingHeader" />
<!-- AUTOGENERATED: IOS_BEGIN -->
<source-file src="src/ios/AMSAdBase.swift" />
<source-file src="src/ios/AMSBanner.swift" />
<source-file src="src/ios/AMSGenerated.swift" />
<source-file src="src/ios/AMSInterstitial.swift" />
<source-file src="src/ios/AMSPlugin.swift" />
<source-file src="src/ios/AMSRewardVideo.swift" />
<!-- AUTOGENERATED: IOS_END -->
<podspec>
<config>
<source url="https://cdn.cocoapods.org/" />
</config>
<pods use-frameworks="true">
<pod name="Google-Mobile-Ads-SDK" spec="~> 7.69" />
</pods>
</podspec>
</platform>
<platform name="browser">
<config-file target="config.xml" parent="/*">
<feature name="AdMob">
<param name="browser-package" value="AdMob" />
</feature>
</config-file>
<js-module src="src/browser/AdMobProxy.js" name="AdMobProxy">
<runs />
</js-module>
</platform>
</plugin>