cordova-plugin-admob-nextgen 2.0.1-beta.1 → 2.0.2-beta.1
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/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
2
|
<plugin id="cordova-plugin-admob-nextgen"
|
|
3
|
-
version="2.0.1
|
|
3
|
+
version="2.0.1"
|
|
4
4
|
xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
5
5
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</feature>
|
|
21
21
|
</config-file>
|
|
22
22
|
|
|
23
|
-
<config-file parent="/manifest/application"
|
|
23
|
+
<config-file target="AndroidManifest.xml" parent="/manifest/application">
|
|
24
24
|
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="$APP_ID_ANDROID"/>
|
|
25
25
|
</config-file>
|
|
26
26
|
|
|
@@ -513,6 +513,20 @@ public class BannerPreloadExecutor {
|
|
|
513
513
|
webViewView.setLayoutParams(params);
|
|
514
514
|
webViewView.requestLayout();
|
|
515
515
|
|
|
516
|
+
} else if (isCordova15) {
|
|
517
|
+
webViewView.setTranslationY(0);
|
|
518
|
+
if (!isBannerVisible || isOverlapping) {
|
|
519
|
+
params.setMargins(0, systemSafeTop, 0, systemSafeBottom);
|
|
520
|
+
} else {
|
|
521
|
+
if ("top".equalsIgnoreCase(currentPosition)) {
|
|
522
|
+
params.setMargins(0, systemSafeTop + lastAdHeight, 0, systemSafeBottom);
|
|
523
|
+
} else {
|
|
524
|
+
params.setMargins(0, systemSafeTop, 0, systemSafeBottom + lastAdHeight);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
webViewView.setLayoutParams(params);
|
|
528
|
+
webViewView.requestLayout();
|
|
529
|
+
|
|
516
530
|
} else {
|
|
517
531
|
|
|
518
532
|
if ("top".equalsIgnoreCase(currentPosition)) {
|