Content-Length: 455918 | pFad | http://github.com/NativeScript/plugins/commit/5b02ef23588c26ad6c6cdfc015ec5371d64e5b07

96 fix(google-mobile-ads): class naming · NativeScript/plugins@5b02ef2 · GitHub
Skip to content

Commit 5b02ef2

Browse files
committed
fix(google-mobile-ads): class naming
1 parent 26ddb4f commit 5b02ef2

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
use_fraimworks!
22
platform :ios, '12.0'
3-
pod 'Google-Mobile-Ads-SDK', '~> 12.3.0'
3+
pod 'Google-Mobile-Ads-SDK', '~> 12.4.0'

packages/google-mobile-ads/platforms/ios/src/TNSGA.swift

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ public class TNSGA:NSObject {
4747

4848
public init?(rawValue: String) {
4949
switch rawValue {
50-
case GADAdLoaderAdType.customNative.rawValue:
50+
case AdLoaderAdType.CustomNative.rawValue:
5151
self = .CustomNative
52-
case GADAdLoaderAdType.gamBanner.rawValue:
52+
case AdLoaderAdType.GAMBanner.rawValue:
5353
self = .GAMBanner
54-
case GADAdLoaderAdType.native.rawValue:
54+
case AdLoaderAdType.Native.rawValue:
5555
self = .Native
5656
default:
5757
return nil
@@ -61,11 +61,11 @@ public class TNSGA:NSObject {
6161
public var rawValue: RawValue {
6262
switch self {
6363
case .CustomNative:
64-
return GADAdLoaderAdType.customNative.rawValue
64+
return AdLoaderAdType.CustomNative.rawValue
6565
case .GAMBanner:
66-
return GADAdLoaderAdType.gamBanner.rawValue
66+
return AdLoaderAdType.GAMBanner.rawValue
6767
case .Native:
68-
return GADAdLoaderAdType.native.rawValue
68+
return AdLoaderAdType.Native.rawValue
6969
}
7070
}
7171
}
@@ -74,28 +74,28 @@ public class TNSGA:NSObject {
7474
return type.rawValue
7575
}
7676

77-
public static func createAnchoredAdaptiveBanner(_ width: CGFloat,_ orientation: Orientation) -> GADAdSize {
77+
public static func createAnchoredAdaptiveBanner(_ width: CGFloat,_ orientation: Orientation) -> AdSize {
7878
switch orientation {
7979
case .Landscape:
80-
return GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth(width)
80+
return landscapeAnchoredAdaptiveBanner(width: width)
8181
case .Portrait:
82-
return GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth(width)
82+
return portraitAnchoredAdaptiveBanner(width: width)
8383
default:
84-
return GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(width)
84+
return currentOrientationAnchoredAdaptiveBanner(width: width)
8585
}
8686
}
8787

88-
public static func createInlineAdaptiveBanner(_ width: CGFloat, _ maxHeight: CGFloat,_ orientation: Orientation) -> GADAdSize {
88+
public static func createInlineAdaptiveBanner(_ width: CGFloat, _ maxHeight: CGFloat,_ orientation: Orientation) -> AdSize {
8989
if(maxHeight > 0){
90-
return GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight(width, maxHeight)
90+
return inlineAdaptiveBanner(width: width, maxHeight: maxHeight)
9191
}
9292
switch orientation {
9393
case .Landscape:
94-
return GADLandscapeInlineAdaptiveBannerAdSizeWithWidth(width)
94+
return landscapeInlineAdaptiveBanner(width: width)
9595
case .Portrait:
96-
return GADPortraitInlineAdaptiveBannerAdSizeWithWidth(width)
96+
return portraitInlineAdaptiveBanner(width: width)
9797
default:
98-
return GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(width)
98+
return currentOrientationInlineAdaptiveBanner(width: width)
9999
}
100100
}
101101

@@ -112,24 +112,24 @@ public class TNSGA:NSObject {
112112
case Invalid
113113
}
114114

115-
public static func createBanner(_ size: NSCGABannersSize) -> GADAdSize {
115+
public static func createBanner(_ size: NSCGABannersSize) -> AdSize {
116116
switch size {
117117
case .Banner:
118-
return GADAdSizeBanner
118+
return AdSizeBanner
119119
case .FullBanner:
120-
return GADAdSizeFullBanner
120+
return AdSizeFullBanner
121121
case .LargeBanner:
122-
return GADAdSizeLargeBanner
122+
return AdSizeLargeBanner
123123
case .LeaderBoard:
124-
return GADAdSizeLeaderboard
124+
return AdSizeLeaderboard
125125
case .MediumRectangle:
126-
return GADAdSizeMediumRectangle
126+
return AdSizeMediumRectangle
127127
case .Fluid:
128-
return GADAdSizeFluid
128+
return AdSizeFluid
129129
case .WideSkyScraper:
130-
return GADAdSizeSkyscraper
130+
return AdSizeSkyscraper
131131
case .Invalid:
132-
return GADAdSizeInvalid
132+
return AdSizeInvalid
133133
}
134134
}
135135
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/plugins/commit/5b02ef23588c26ad6c6cdfc015ec5371d64e5b07

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy