@capgo/capacitor-admob 8.0.4 → 8.0.5

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.
@@ -36,7 +36,7 @@ class Banner(ctx: ExecuteContext) : AdBase(ctx), GenericAd {
36
36
  if (adView == null) {
37
37
  adView = AdView(activity)
38
38
  adView!!.adUnitId = adUnitId
39
- // adView!!.adSize = adSize
39
+ adView!!.setAdSize(adSize)
40
40
  adView!!.adListener = object : AdListener() {
41
41
  override fun onAdClicked() {
42
42
  emit(Generated.Events.BANNER_CLICK)
@@ -91,7 +91,7 @@ class Helper(private val adapter: Adapter) {
91
91
 
92
92
  @JvmStatic
93
93
  fun getParentView(view: View?): ViewGroup? {
94
- return if (view == null) null else view.parent as ViewGroup
94
+ return if (view == null) null else view.parent as? ViewGroup
95
95
  }
96
96
 
97
97
  @JvmStatic
@@ -5,7 +5,7 @@ import AppTrackingTransparency
5
5
 
6
6
  @objc(AdmobPlusPlugin)
7
7
  public class AdmobPlusPlugin: CAPPlugin, CAPBridgedPlugin {
8
- private let pluginVersion: String = "8.0.4"
8
+ private let pluginVersion: String = "8.0.5"
9
9
  public let identifier = "AdmobPlusPlugin"
10
10
  public let jsName = "AdMobPlus"
11
11
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-admob",
3
- "version": "8.0.4",
3
+ "version": "8.0.5",
4
4
  "description": "Capacitor plugin to bridge AdMob SDKs for iOS and Android",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",