cordova-admob-tomitank 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
- package/plugin.xml +3 -3
- package/src/android/cordova/AdMob.java +12 -12
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# [Cordova AdMob tomitank]
|
|
2
2
|
|
|
3
3
|
Based on AdMob Plus Cordova with updated SDK-s
|
|
4
|
-
- Android: 24.
|
|
5
|
-
- iOS: 12.
|
|
4
|
+
- Android: 24.9.0
|
|
5
|
+
- iOS: 12.14.0
|
|
6
6
|
|
|
7
7
|
[](https://github.com/sponsors/tomitank)
|
|
8
8
|
|
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="cordova-admob-tomitank" version="1.4.
|
|
2
|
+
<plugin id="cordova-admob-tomitank" version="1.4.2"
|
|
3
3
|
xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
4
4
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
5
5
|
<name>cordova-admob-tomitank</name>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
<platform name="android">
|
|
22
22
|
<preference name="APP_ID_ANDROID" default="ca-app-pub-xxx~yyy" />
|
|
23
|
-
<preference name="PLAY_SERVICES_VERSION" default="24.
|
|
23
|
+
<preference name="PLAY_SERVICES_VERSION" default="24.9.0" />
|
|
24
24
|
|
|
25
25
|
<config-file target="AndroidManifest.xml" parent="/manifest/application">
|
|
26
26
|
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:excludeFromRecents="true" android:name="com.google.android.gms.ads.AdActivity" android:noHistory="true" />
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
<source url="https://cdn.cocoapods.org/" />
|
|
318
318
|
</config>
|
|
319
319
|
<pods use-frameworks="true">
|
|
320
|
-
<pod name="Google-Mobile-Ads-SDK" spec="~> 12.
|
|
320
|
+
<pod name="Google-Mobile-Ads-SDK" spec="~> 12.14.0" />
|
|
321
321
|
</pods>
|
|
322
322
|
</podspec>
|
|
323
323
|
</platform>
|
|
@@ -215,17 +215,15 @@ public class AdMob extends CordovaPlugin implements Helper.Adapter {
|
|
|
215
215
|
public void onConfigurationChanged(Configuration newConfig) {
|
|
216
216
|
super.onConfigurationChanged(newConfig);
|
|
217
217
|
|
|
218
|
-
for (
|
|
219
|
-
AdBase ad
|
|
220
|
-
ad.onConfigurationChanged(newConfig);
|
|
218
|
+
for (Ad ad : new ArrayList<>(ads.values())) {
|
|
219
|
+
((AdBase) ad).onConfigurationChanged(newConfig);
|
|
221
220
|
}
|
|
222
221
|
}
|
|
223
222
|
|
|
224
223
|
@Override
|
|
225
224
|
public void onPause(boolean multitasking) {
|
|
226
|
-
for (
|
|
227
|
-
AdBase ad
|
|
228
|
-
ad.onPause(multitasking);
|
|
225
|
+
for (Ad ad : new ArrayList<>(ads.values())) {
|
|
226
|
+
((AdBase) ad).onPause(multitasking);
|
|
229
227
|
}
|
|
230
228
|
super.onPause(multitasking);
|
|
231
229
|
}
|
|
@@ -233,9 +231,8 @@ public class AdMob extends CordovaPlugin implements Helper.Adapter {
|
|
|
233
231
|
@Override
|
|
234
232
|
public void onResume(boolean multitasking) {
|
|
235
233
|
super.onResume(multitasking);
|
|
236
|
-
for (
|
|
237
|
-
AdBase ad
|
|
238
|
-
ad.onResume(multitasking);
|
|
234
|
+
for (Ad ad : new ArrayList<>(ads.values())) {
|
|
235
|
+
((AdBase) ad).onResume(multitasking);
|
|
239
236
|
}
|
|
240
237
|
}
|
|
241
238
|
|
|
@@ -244,9 +241,12 @@ public class AdMob extends CordovaPlugin implements Helper.Adapter {
|
|
|
244
241
|
isPluginStarted = false;
|
|
245
242
|
readyCallbackContext = null;
|
|
246
243
|
|
|
247
|
-
for (
|
|
248
|
-
|
|
249
|
-
|
|
244
|
+
for (Ad ad : new ArrayList<>(ads.values())) {
|
|
245
|
+
try {
|
|
246
|
+
((AdBase) ad).onDestroy();
|
|
247
|
+
} catch (Exception e) {
|
|
248
|
+
Log.e(TAG, "Ad destroy failed", e);
|
|
249
|
+
}
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
Banner.destroyParentView();
|