forked from floatinghotpot/cordova-admob-pro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
153 lines (134 loc) · 7.03 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?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.31.6">
<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" />
<!-- android, now build with gradle instead of ant -->
<platform name="android">
<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" />
<!-- cordova CLI using gradle and it working well -->
<preference name="PLAY_SERVICES_VERSION" default="+"/>
<framework src="com.google.android.gms:play-services-ads:$PLAY_SERVICES_VERSION" />
<!-- but unfortunately, build.phonegap.com, Intel XDK, and some other tools still use ant -->
<!-- dependency id="cordova-plugin-googleplayservices"/ -->
</platform>
<!-- same as android, but use ant instead of gradle -->
<platform name="amazon-fireos">
<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" />
<!-- amazon-fireos still using ant, AND default android r19 -->
<!-- framework src="com.google.android.gms:play-services-ads:+" /-->
<dependency id="cordova-plugin-googleplayservices"/>
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="AdMob">
<param name="ios-package" value="CDVAdMobPlugin" />
<param name="onload" value="true" />
</feature>
</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"/>
<framework src="src/ios/GoogleMobileAds.framework" custom="true" />
<framework src="AdSupport.framework" />
<framework src="AudioToolbox.framework" />
<framework src="AVFoundation.framework" />
<framework src="CoreBluetooth.framework" />
<framework src="CoreGraphics.framework" />
<framework src="CoreLocation.framework" />
<framework src="CoreMedia.framework" />
<framework src="CoreMotion.framework" />
<framework src="CoreTelephony.framework" />
<framework src="CoreVideo.framework" />
<framework src="EventKit.framework" />
<framework src="EventKitUI.framework" />
<framework src="Foundation.framework" />
<framework src="GLKit.framework" />
<framework src="MediaPlayer.framework" />
<framework src="MessageUI.framework" />
<framework src="OpenGLES.framework" />
<framework src="SafariServices.framework" />
<framework src="StoreKit.framework" />
<framework src="SystemConfiguration.framework" />
<framework src="UIKit.framework" />
</platform>
<!-- Windows Phone 8 -->
<platform name="wp8">
<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" />
<framework src="src/wp8/GoogleAds.dll" custom="true" />
</platform>
<!-- Windows Phone 8.1+ -->
<!--
<platform name="windows">
<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" />
<framework src="src/wp8/GoogleAds.dll" custom="true" />
</platform>
-->
</plugin>