File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
packages/google_mobile_ads/ios Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments