-
Notifications
You must be signed in to change notification settings - Fork 338
/
plugin.xml
99 lines (82 loc) · 4.42 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?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="cordova-plugin-admobpro"
version="8.13.1">
<name>AdMob Plugin Pro</name>
<description>Ultimate Cordova Plugin for Google AdMob and DFP to monetize hybrid apps. Show mobile Ad with single line of JavaScript. Compatible with Cordova CLI, PhoneGap Build, Intel XDK/Crosswalk, Google ChromeApp, Ionic, Meteor, etc.</description>
<author>Liming Xie</author>
<license>MIT</license>
<keywords>rjfun,admob,google,ad</keywords>
<repo>https://github.com/floatinghotpot/cordova-admob-pro.git</repo>
<issue>https://github.com/floatinghotpot/cordova-admob-pro/issues</issue>
<engines>
<engine name="cordova" version=">=7.0" />
<engine name="cordova-android" version=">=6.0.0" />
<engine name="cordova-ios" version=">=5.0.0" />
</engines>
<js-module src="www/AdMob.js" name="AdMob">
<clobbers target="window.AdMob" />
</js-module>
<dependency id="cordova-plugin-extension" />
<!-- android, now build with gradle instead of ant -->
<platform name="android">
<preference name="ADMOB_ANDROID_APP_ID" default="ca-app-pub-1855415514372943~9063671314"/>
<preference name="PLAY_SERVICES_VERSION" default="20.4.0"/>
<!-- you can specify another play services version to avoid conflict with another plugin -->
<!-- Notice: 20.5.0 will cause a conflict,
of minCompileSdk (31) and compileSdkVersion (android-30),
in Dependency: androidx.work:work-runtime:2.7.0 -->
<!-- cordova CLI using gradle and it working well -->
<framework src="com.google.android.gms:play-services-ads:$PLAY_SERVICES_VERSION" />
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:name="com.google.android.gms.ads.AdActivity"
android:excludeFromRecents="true"
android:noHistory="true" />
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="$ADMOB_ANDROID_APP_ID"/>
<!-- from play service v17.0.0, admob app id is required to avoid app crash -->
<meta-data
android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT"
android:value="true"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AdMob">
<param name="android-package" value="com.rjfun.cordova.admob.AdMobPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<source-file src="src/android/AdMobMediation.java" target-dir="src/com/rjfun/cordova/admob" />
<source-file src="src/android/AdMobPlugin.java" target-dir="src/com/rjfun/cordova/admob" />
</platform>
<!-- ios -->
<platform name="ios">
<preference name="ADMOB_IOS_APP_ID" default="ca-app-pub-1855415514372943~7447337312"/>
<preference name="disableSDKCrashReporting" default="false" />
<!-- GoogleMobileAds.framework in dependency plugin: cordova-admobsdk, > 100MB -->
<dependency id="cordova-admobsdk" version="~8.13.0"/>
<config-file target="config.xml" parent="/*">
<feature name="AdMob">
<param name="ios-package" value="CDVAdMobPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="GADApplicationIdentifier">
<string>$ADMOB_IOS_APP_ID</string>
</config-file>
<config-file target="*-Info.plist" parent="GADDelayAppMeasurementInit">
<true/>
</config-file>
<header-file src="src/ios/CDVAdMobPlugin.h"/>
<source-file src="src/ios/CDVAdMobPlugin.m"/>
<header-file src="src/ios/AdMobMediation.h"/>
<source-file src="src/ios/AdMobMediation.m"/>
</platform>
</plugin>