emi-indo-cordova-plugin-admob 1.5.1 → 1.5.3

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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "xml.downloadExternalResources.enabled": true,
3
+ "C_Cpp.clang_format_style": "file",
4
+ "C_Cpp.formatting": "ClangFormat",
5
+ "editor.formatOnSave": true
6
+
7
+ }
package/README.md CHANGED
@@ -4,10 +4,11 @@
4
4
  Cordova Plugin Admob Android and IOS
5
5
 
6
6
  ### Mobile Ads SDK (Android: 23.4.0) [Release Notes:](https://developers.google.com/admob/android/rel-notes)
7
+ ### User Messaging Platform (UMP Android: 3.0.0) [Release Notes:](https://developers.google.com/admob/android/privacy/release-notes)
7
8
 
8
- ### Mobile Ads SDK (IOS: 11.5.0) [Release Notes:](https://developers.google.com/admob/ios/rel-notes)
9
+ ### Mobile Ads SDK (IOS: 11.10.0) [Release Notes:](https://developers.google.com/admob/ios/rel-notes)
9
10
 
10
- ### User Messaging Platform (UMP: 3.0.0) [Release Notes:](https://developers.google.com/admob/android/privacy/release-notes)
11
+ ### User Messaging Platform (UMP IOS: 2.6.0) [Release Notes:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/privacy/download)
11
12
  ### IAB Europe Transparency & Consent Framework (CPM: 2.2.0)
12
13
 
13
14
 
@@ -17,14 +18,31 @@
17
18
  - cordova-android version = 12.0.0
18
19
  - cordova-ios version = 7.0.0
19
20
 
20
- > [!WARNING]
21
+
22
+ ## IOS Ad Support IOS 18 *
23
+ > [!WARNING]
24
+ > - emi-indo-cordova-plugin-admob@1.5.2
25
+ > - Minimum supported Xcode version up to 15.3 or higher
26
+ > - minimum deployment-target: 12.2
27
+ ## Minimum macOS | Xcode, and others
28
+ - minimum macOS 14.4 or higher
29
+ - Xcode min 15.3 > or higher
30
+ - Command Line Tools 15.3 or higher
31
+ - minimum SwiftVersion: 5.10 or higher
32
+ - [Everything is included in plugin.xml](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/plugin.xml)
33
+ - [SKAdNetworkIdentifier Deprecated](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/tag/v1.5.1)
34
+ - Dependency: pod MerchantKit (not needed)
35
+
36
+
37
+ ## IOS
38
+ > [!WARNING]
39
+ > - emi-indo-cordova-plugin-admob@1.5.1
21
40
  > - Minimum supported Xcode version to 14.3
22
41
  > - Maximum supported Xcode version up to 15.2
23
42
  ## Minimum macOS | Xcode, and others
24
43
  - Monterey
25
44
  - Xcode min 14.3 > max 15.2
26
45
  - Command Line Tools 14.1 or higher
27
- - Target iOS 12.0
28
46
  https://developers.google.com/admob/ios/quick-start
29
47
 
30
48
  <details>
@@ -115,7 +133,10 @@ cordova plugin add emi-indo-cordova-plugin-admob --save --variable APP_ID_ANDRO
115
133
  cordova plugin rm emi-indo-cordova-plugin-admob
116
134
  ```
117
135
 
118
-
136
+ ## Note IOS
137
+ > [!NOTE]
138
+ > - To prevent some warnings or errors in xcode later, it is best after adding platforms and plugins cd/project root/command line run cordova prepare.
139
+ > - after that just cd platform/ios command line run pod install --repo-update
119
140
 
120
141
  ## Import the Mobile Ads SDK IOS
121
142
  ### Then from the command line run:
@@ -359,8 +380,8 @@ autoShow: false
359
380
  cordova.plugins.emiAdmobPlugin.loadAppOpenAd({config});
360
381
  cordova.plugins.emiAdmobPlugin.showAppOpenAd(); // default
361
382
 
362
- // Advanced Show (Optional)
363
- cordova.plugins.emiAdmobPlugin.showAppOpenAd(
383
+ // Advanced load (Optional)
384
+ cordova.plugins.emiAdmobPlugin.loadAppOpenAd(config,
364
385
 
365
386
  (data) => {
366
387
 
@@ -451,7 +472,7 @@ const bannerConfig = [
451
472
  */
452
473
 
453
474
  // NEW
454
-
475
+ ```
455
476
  const bannerConfig = {
456
477
 
457
478
  adUnitId: "ca-app-pub-3940256099942544/9214589741", //Banner_ID,
@@ -463,14 +484,10 @@ const bannerConfig = {
463
484
 
464
485
  }
465
486
 
466
- cordova.plugins.emiAdmobPlugin.loadBannerAd(bannerConfig);
467
-
468
-
469
- // Advanced Show (Optional)
470
- cordova.plugins.emiAdmobPlugin.showBannerAd(
471
-
472
- (data) => {
473
-
487
+ cordova.plugins.emiAdmobPlugin.loadBannerAd(bannerConfig,
488
+ // Advanced load (Optional)
489
+ (data) => {
490
+ // this data will be displayed after showBannerAd() applies to all ad types
474
491
  console.log("Micros: " + data.micros);
475
492
  console.log("Currency: " + data.currency);
476
493
  console.log("Precision: " + data.precision);
@@ -481,7 +498,11 @@ cordova.plugins.emiAdmobPlugin.loadBannerAd(bannerConfig);
481
498
 
482
499
  console.error("Error: " + error);
483
500
 
484
- });
501
+ }
502
+
503
+ );
504
+ ```
505
+
485
506
 
486
507
  </pre>
487
508
  </details>
@@ -572,8 +593,8 @@ console.log("Collapsible Status: " + event.collapsible);
572
593
  cordova.plugins.emiAdmobPlugin.loadInterstitialAd({config});
573
594
  cordova.plugins.emiAdmobPlugin.showInterstitialAd(); // default
574
595
 
575
- // Advanced Show (Optional)
576
- cordova.plugins.emiAdmobPlugin.showInterstitialAd(
596
+ // Advanced load (Optional)
597
+ cordova.plugins.emiAdmobPlugin.loadInterstitialAd(config,
577
598
 
578
599
  (data) => {
579
600
 
@@ -667,8 +688,8 @@ cordova.plugins.emiAdmobPlugin.showRewardedInterstitialAd(); // default
667
688
 
668
689
  cordova.plugins.emiAdmobPlugin.loadRewardedInterstitialAd({ adUnitId: Rewarded_Interstitial_ID, autoShow: true });
669
690
 
670
- // Advanced Show (Optional)
671
- cordova.plugins.emiAdmobPlugin.showRewardedInterstitialAd(
691
+ // Advanced load (Optional)
692
+ cordova.plugins.emiAdmobPlugin.loadRewardedInterstitialAd(config,
672
693
 
673
694
  (data) => {
674
695
 
@@ -748,8 +769,8 @@ cordova.plugins.emiAdmobPlugin.showRewardedAd(); // default
748
769
 
749
770
  cordova.plugins.emiAdmobPlugin.loadRewardedAd({ adUnitId: Rewarded_ID, autoShow: true });
750
771
 
751
- // Advanced Show (Optional)
752
- cordova.plugins.emiAdmobPlugin.showRewardedAd(
772
+ // Advanced load (Optional)
773
+ cordova.plugins.emiAdmobPlugin.loadRewardedAd(config,
753
774
 
754
775
  (data) => {
755
776
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emi-indo-cordova-plugin-admob",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "Cordova Plugin Admob Android IOS",
5
5
  "cordova": {
6
6
  "id": "emi-indo-cordova-plugin-admob",
package/plugin.xml CHANGED
@@ -1,6 +1,6 @@
1
1
  <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
2
2
  xmlns:android="http://schemas.android.com/apk/res/android"
3
- id="emi-indo-cordova-plugin-admob" version="1.5.1">
3
+ id="emi-indo-cordova-plugin-admob" version="1.5.3">
4
4
 
5
5
  <name>emiAdmobPlugin</name>
6
6
  <description>Cordova Plugin Admob Android IOS</description>
@@ -26,6 +26,7 @@
26
26
  <config-file parent="/*" target="res/xml/config.xml">
27
27
  <feature name="emiAdmobPlugin">
28
28
  <param name="android-package" value="emi.indo.cordova.plugin.admob.emiAdmobPlugin" />
29
+ <param name="onload" value="true" />
29
30
  </feature>
30
31
  </config-file>
31
32
 
@@ -80,7 +81,7 @@
80
81
 
81
82
 
82
83
  <platform name="ios">
83
-
84
+ <!--minimum macOS 14.4 > Xcode 15.3 -->
84
85
  <config-file target="config.xml" parent="/*">
85
86
  <feature name="emiAdmobPlugin">
86
87
  <param name="ios-package" value="emiAdmobPlugin" />
@@ -89,9 +90,10 @@
89
90
  </config-file>
90
91
 
91
92
  <config-file parent="/*" target="config.xml">
92
- <preference name="deployment-target" value="12.0" />
93
- <preference name="SwiftVersion" value="5.3" />
94
- </config-file>
93
+ <!--minimum deployment-target: 12.2 -->
94
+ <preference name="deployment-target" value="12.2" />
95
+ <preference name="SwiftVersion" value="5.10" />
96
+ </config-file>
95
97
 
96
98
  <preference name="USAGE"
97
99
  default="This identifier will be used to deliver personalized ads to you." />
@@ -294,10 +296,12 @@
294
296
  <source url="https://cdn.cocoapods.org/" />
295
297
  </config>
296
298
  <pods use-frameworks="true">
297
- <!-- Next release spec="~> 11.10.0" min xcode 15.3 -->
298
- <pod name="Google-Mobile-Ads-SDK" spec="~> 11.5.0" />
299
+ <!--minimum macOS 14.4 > Xcode 15.3 -->
300
+ <pod name="GoogleUserMessagingPlatform" spec="~> 2.6.0" />
301
+ <pod name="Google-Mobile-Ads-SDK" spec="~> 11.10.0" />
302
+
299
303
  </pods>
300
304
  </podspec>
301
305
 
302
306
  </platform>
303
- </plugin>
307
+ </plugin>