forked from floatinghotpot/cordova-admob-pro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
127 lines (107 loc) · 5.83 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?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="2.49.0">
<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-android" version=">=3.5.0" />
<engine name="cordova-ios" version=">=3.5.0" />
</engines>
<js-module src="www/AdMob.js" name="AdMob">
<clobbers target="window.AdMob" />
</js-module>
<dependency id="cordova-plugin-extension" />
<preference name="ADMOB_ANDROID_APP_ID" default=""/>
<preference name="ADMOB_IOS_APP_ID" default=""/>
<preference name="PLAY_SERVICES_VERSION" default="16.0.0"/>
<!-- android, now build with gradle instead of ant -->
<platform name="android">
<!-- you can specify another play services version to avoid conflict with another plugin -->
<!-- from play service v17.0.0, admob app id is required to avoid app crash -->
<!-- preference name="ADMOB_APP_ID" default=""/ -->
<!-- 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:theme="@android:style/Theme.Translucent" />
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="$ADMOB_ANDROID_APP_ID"/>
</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>
<!-- same as android, but use ant instead of gradle -->
<platform name="amazon-fireos">
<!-- amazon-fireos still using ant, AND default android r19 -->
<!-- framework src="com.google.android.gms:play-services-ads:+" /-->
<dependency id="cordova-plugin-googleplayservices"/>
<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:theme="@android:style/Theme.Translucent" />
</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">
<!-- GoogleMobileAds.framework in dependency plugin: cordova-admobsdk, > 100MB -->
<dependency id="cordova-admobsdk" version="~7.49.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>
<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>
<!-- Windows Phone 8 -->
<platform name="wp8">
<framework src="src/wp8/GoogleAds.dll" custom="true" />
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
<Capability Name="ID_CAP_LOCATION" />
</config-file>
<config-file target="config.xml" parent="/*">
<feature name="AdMob">
<param name="wp-package" value="AdMobPlugin"/>
</feature>
</config-file>
<source-file src="src/wp8/AdMobPlugin.cs" />
<source-file src="src/wp8/AdMobOptions.cs" />
</platform>
</plugin>