Skip to content

Commit

Permalink
Format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LTPhantom committed Dec 19, 2023
1 parent b3e73df commit 6ace6af
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/google_mobile_ads/ios/Classes/FLTAdUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
flutterPluginRegistry:
(id<FlutterPluginRegistry> _Nonnull)flutterPluginRegistry;

@property(readonly, class) NSString * _Nonnull requestAgent;
@property(readonly, class) NSString *_Nonnull requestAgent;

@end
3 changes: 2 additions & 1 deletion packages/google_mobile_ads/ios/Classes/FLTAd_Internal.m
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ - (instancetype _Nonnull)initWithResponseInfo:
self = [super init];
if (self) {
_responseIdentifier = responseInfo.responseIdentifier;
_adNetworkClassName = responseInfo.loadedAdNetworkResponseInfo.adNetworkClassName;
_adNetworkClassName =
responseInfo.loadedAdNetworkResponseInfo.adNetworkClassName;
NSMutableArray<FLTGADAdNetworkResponseInfo *> *infoArray =
[[NSMutableArray alloc] init];
for (GADAdNetworkResponseInfo *adNetworkInfo in responseInfo
Expand Down
15 changes: 10 additions & 5 deletions packages/google_mobile_ads/ios/Classes/FLTGoogleMobileAdsPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ - (void)handleMethodCall:(FlutterMethodCall *)call
}
}];
} else if ([call.method isEqualToString:@"MobileAds#getVersionString"]) {
result(GADGetStringFromVersionNumber(GADMobileAds.sharedInstance.versionNumber));
result(GADGetStringFromVersionNumber(
GADMobileAds.sharedInstance.versionNumber));
} else if ([call.method
isEqualToString:@"MobileAds#getRequestConfiguration"]) {
result(GADMobileAds.sharedInstance.requestConfiguration);
Expand Down Expand Up @@ -334,21 +335,25 @@ - (void)handleMethodCall:(FlutterMethodCall *)call
tagForChildDirectedTreatment != (id)[NSNull null]) {
switch ([tagForChildDirectedTreatment intValue]) {
case 0:
GADMobileAds.sharedInstance.requestConfiguration.tagForChildDirectedTreatment = @NO;
GADMobileAds.sharedInstance.requestConfiguration
.tagForChildDirectedTreatment = @NO;
break;
case 1:
GADMobileAds.sharedInstance.requestConfiguration.tagForChildDirectedTreatment = @YES;
GADMobileAds.sharedInstance.requestConfiguration
.tagForChildDirectedTreatment = @YES;
break;
}
}
if (tagForUnderAgeOfConsent != NULL &&
tagForUnderAgeOfConsent != (id)[NSNull null]) {
switch ([tagForUnderAgeOfConsent intValue]) {
case 0:
GADMobileAds.sharedInstance.requestConfiguration.tagForUnderAgeOfConsent = @NO;
GADMobileAds.sharedInstance.requestConfiguration
.tagForUnderAgeOfConsent = @NO;
break;
case 1:
GADMobileAds.sharedInstance.requestConfiguration.tagForUnderAgeOfConsent = @YES;
GADMobileAds.sharedInstance.requestConfiguration
.tagForUnderAgeOfConsent = @YES;
break;
}
}
Expand Down

0 comments on commit 6ace6af

Please sign in to comment.