@capgo/capacitor-admob 8.2.4 → 8.2.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.
@@ -65,6 +65,7 @@ dependencies {
65
65
  implementation fileTree(dir: 'libs', include: ['*.jar'])
66
66
  implementation project(':capacitor-android')
67
67
  implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
68
+ implementation 'androidx.core:core-ktx:1.18.0'
68
69
  testImplementation "junit:junit:$junitVersion"
69
70
  androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
70
71
  androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
@@ -12,8 +12,8 @@ abstract class Ad(val id: Int, val adUnitId: String) {
12
12
  }
13
13
 
14
14
  constructor(ctx: Context) : this(
15
- requireNotNull(ctx.optId()),
16
- requireNotNull(ctx.optAdUnitID()),
15
+ requireNotNull(ctx.optId()) { "Ad id is required" },
16
+ requireNotNull(ctx.optAdUnitID()) { "Ad unit id is required" },
17
17
  )
18
18
 
19
19
  open fun destroy() {
@@ -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.2.4"
8
+ private let pluginVersion: String = "8.2.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.2.4",
3
+ "version": "8.2.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",