Skip to content

Commit 96975d2

Browse files
authored
Replace kGAD constants. (#539)
1 parent 26f0585 commit 96975d2

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

packages/google_mobile_ads/ios/Classes/FLTAd_Internal.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ - (instancetype _Nonnull)initWithOrientation:(NSString *_Nonnull)orientation {
155155

156156
@implementation FLTFluidSize
157157
- (instancetype _Nonnull)init {
158-
self = [self initWithAdSize:kGADAdSizeFluid];
158+
self = [self initWithAdSize:GADAdSizeFluid];
159159
return self;
160160
}
161161
@end
@@ -497,7 +497,7 @@ - (instancetype)initWithAdUnitId:(NSString *_Nonnull)adUnitId
497497
_height = -1;
498498
_adRequest = request;
499499
_adUnitId = adUnitId;
500-
_bannerView = [[GAMBannerView alloc] initWithAdSize:kGADAdSizeFluid];
500+
_bannerView = [[GAMBannerView alloc] initWithAdSize:GADAdSizeFluid];
501501
_bannerView.adUnitID = adUnitId;
502502
_bannerView.rootViewController = rootViewController;
503503
_bannerView.appEventDelegate = self;
@@ -1086,7 +1086,7 @@ @implementation FLTNativeAd {
10861086
_adLoader =
10871087
[[GADAdLoader alloc] initWithAdUnitID:_adUnitId
10881088
rootViewController:rootViewController
1089-
adTypes:@[ kGADAdLoaderAdTypeNative ]
1089+
adTypes:@[ GADAdLoaderAdTypeNative ]
10901090
options:adLoaderOptions];
10911091
_nativeAdOptions = nativeAdOptions;
10921092
self.adLoader.delegate = self;

packages/google_mobile_ads/ios/Tests/FLTFluidGAMBannerAdTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ - (void)testPlatformViewSetup {
120120

121121
id gamBannerClassMock = OCMClassMock([GAMBannerView class]);
122122
OCMStub([gamBannerClassMock alloc]).andReturn(gamBannerClassMock);
123-
OCMStub([gamBannerClassMock initWithAdSize:kGADAdSizeFluid])
123+
OCMStub([gamBannerClassMock initWithAdSize:GADAdSizeFluid])
124124
.andReturn(gamBannerClassMock);
125125

126126
// Create and load an ad.

packages/google_mobile_ads/ios/Tests/FLTGoogleMobileAdsReaderWriterTest.m

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,8 @@ - (void)testEncodeDecodeFluidAdSize {
244244
FLTFluidSize *decodedSize = [_messageCodec decode:encodedMessage];
245245

246246
XCTAssertTrue([decodedSize isKindOfClass:FLTFluidSize.class]);
247-
#pragma clang diagnostic push
248-
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
249-
XCTAssertEqual(decodedSize.size.size.width, kGADAdSizeFluid.size.width);
250-
XCTAssertEqual(decodedSize.size.size.height, kGADAdSizeFluid.size.height);
251-
#pragma clang diagnostic pop
247+
XCTAssertEqual(decodedSize.size.size.width, GADAdSizeFluid.size.width);
248+
XCTAssertEqual(decodedSize.size.size.height, GADAdSizeFluid.size.height);
252249
}
253250

254251
- (void)testEncodeDecodeAdRequest {

0 commit comments

Comments
 (0)