Skip to content

Commit df5e23b

Browse files
committed
feat(ios): update library version
1 parent f575829 commit df5e23b

File tree

5 files changed

+17
-18
lines changed

5 files changed

+17
-18
lines changed

CapacitorCommunityAdmob.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ Pod::Spec.new do |s|
1515
s.swift_version = '5.1'
1616
s.static_framework = true
1717
s.dependency 'Capacitor'
18-
s.dependency 'Google-Mobile-Ads-SDK', '~> 8.12'
18+
s.dependency 'Google-Mobile-Ads-SDK', '9.7.0'
1919
end

ios/Plugin/Banner/BannerExecutor.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ class BannerExecutor: NSObject, GADBannerViewDelegate {
1717

1818
switch adSize {
1919
case "BANNER":
20-
bannerSize = kGADAdSizeBanner
20+
bannerSize = GADAdSizeBanner
2121
break
2222
case "LARGE_BANNER":
23-
bannerSize = kGADAdSizeLargeBanner
23+
bannerSize = GADAdSizeLargeBanner
2424
break
2525
case "FULL_BANNER":
26-
bannerSize = kGADAdSizeFullBanner
26+
bannerSize = GADAdSizeFullBanner
2727
break
2828
case "LEADERBOARD":
29-
bannerSize = kGADAdSizeLeaderboard
29+
bannerSize = GADAdSizeLeaderboard
3030
break
3131
case "MEDIUM_RECTANGLE":
32-
bannerSize = kGADAdSizeMediumRectangle
32+
bannerSize = GADAdSizeMediumRectangle
3333
break
3434
case "SMART_BANNER":
3535
bannerSize = kGADAdSizeSmartBannerPortrait

ios/Plugin/Interstitial/AdInterstitialExecutor.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ class AdInterstitialExecutor: NSObject, GADFullScreenContentDelegate {
4343
}
4444
}
4545

46-
public func adDidPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
47-
NSLog("InterstitialFullScreenDelegate Ad did present full screen content.")
48-
self.plugin?.notifyListeners(InterstitialAdPluginEvents.Showed.rawValue, data: [:])
49-
}
50-
5146
public func ad(_ ad: GADFullScreenPresentingAd, didFailToPresentFullScreenContentWithError error: Error) {
5247
NSLog("InterstitialFullScreenDelegate Ad failed to present full screen content with error \(error.localizedDescription).")
5348
self.plugin?.notifyListeners(InterstitialAdPluginEvents.FailedToShow.rawValue, data: [
5449
"code": 0,
5550
"message": error.localizedDescription
5651
])
5752
}
53+
54+
public func adWillPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
55+
NSLog("InterstitialFullScreenDelegate Ad did present full screen content.")
56+
self.plugin?.notifyListeners(InterstitialAdPluginEvents.Showed.rawValue, data: [:])
57+
}
5858

5959
public func adDidDismissFullScreenContent(_ ad: GADFullScreenPresentingAd) {
6060
NSLog("InterstitialFullScreenDelegate Ad did dismiss full screen content.")

ios/Plugin/Rewarded/AdRewardExecutor.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,18 @@ class AdRewardExecutor: NSObject, GADFullScreenContentDelegate {
6464
}
6565
}
6666

67-
public func adDidPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
68-
NSLog("RewardFullScreenDelegate Ad did present full screen content.")
69-
self.plugin?.notifyListeners(RewardAdPluginEvents.Showed.rawValue, data: [:])
70-
}
71-
7267
public func ad(_ ad: GADFullScreenPresentingAd, didFailToPresentFullScreenContentWithError error: Error) {
7368
NSLog("RewardFullScreenDelegate Ad failed to present full screen content with error \(error.localizedDescription).")
7469
self.plugin?.notifyListeners(RewardAdPluginEvents.FailedToShow.rawValue, data: [
7570
"code": 0,
7671
"message": error.localizedDescription
7772
])
7873
}
74+
75+
public func adWillPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
76+
NSLog("RewardFullScreenDelegate Ad did present full screen content.")
77+
self.plugin?.notifyListeners(RewardAdPluginEvents.Showed.rawValue, data: [:])
78+
}
7979

8080
public func adDidDismissFullScreenContent(_ ad: GADFullScreenPresentingAd) {
8181
NSLog("RewardFullScreenDelegate Ad did dismiss full screen content.")

ios/Podfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ def capacitor_pods
55
use_frameworks!
66
pod 'Capacitor', :path => '../node_modules/@capacitor/ios'
77
pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios'
8+
pod 'Google-Mobile-Ads-SDK', '9.7.0'
89
end
910

1011
target 'Plugin' do
1112
capacitor_pods
12-
pod 'Google-Mobile-Ads-SDK', '~> 8.12'
1313
end
1414

1515
target 'PluginTests' do
1616
capacitor_pods
17-
pod 'Google-Mobile-Ads-SDK', '~> 8.12'
1817
end

0 commit comments

Comments
 (0)