From f60ce8ddf918b1e9a060b819df6aeb2080d8cd60 Mon Sep 17 00:00:00 2001 From: GIOSDK Date: Thu, 17 Oct 2024 10:57:15 +0000 Subject: [PATCH] style: code format --- Modules/Advertising/CAID/GrowingCAIDFetcher.m | 8 ++++---- Modules/Advertising/GrowingAdvertising.m | 4 ++-- Modules/Advertising/Public/GrowingAdvertising.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Modules/Advertising/CAID/GrowingCAIDFetcher.m b/Modules/Advertising/CAID/GrowingCAIDFetcher.m index 69ca61ac..f875e342 100644 --- a/Modules/Advertising/CAID/GrowingCAIDFetcher.m +++ b/Modules/Advertising/CAID/GrowingCAIDFetcher.m @@ -66,7 +66,7 @@ - (NSArray *)growingEventManagerEventsWillSend:(NSArray> *activates = @[].mutableCopy; + NSMutableArray> *activates = @[].mutableCopy; for (id event in events) { if ([event.eventType isEqualToString:GrowingEventTypeActivate]) { [activates addObject:event]; @@ -106,7 +106,7 @@ + (void)startFetch { self.status = GrowingCAIDFetcherStatusDenied; return; } - + if (!trackConfiguration.CAIDFetchBlock) { GIOLogDebug(@"[GrowingAdvertising] CAIDFetcher - CAIDFetchBlock is nil"); self.status = GrowingCAIDFetcherStatusDenied; @@ -118,7 +118,7 @@ + (void)startFetch { GIOLogDebug(@"[GrowingAdvertising] CAIDFetcher start fetch with time out %.2f sec", timeOut); self.status = GrowingCAIDFetcherStatusFetching; [[GrowingCAIDFetcher sharedInstance] fetchCAID]; - + dispatch_time_t delayTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(timeOut * NSEC_PER_SEC)); dispatch_after(delayTime, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ if (self.status != GrowingCAIDFetcherStatusFetching) { @@ -133,7 +133,7 @@ + (void)startFetch { - (void)fetchCAID { GrowingTrackConfiguration *trackConfiguration = GrowingConfigurationManager.sharedInstance.trackConfiguration; - trackConfiguration.CAIDFetchBlock(^(NSString * _Nonnull CAID) { + trackConfiguration.CAIDFetchBlock(^(NSString *_Nonnull CAID) { if (CAID.length > 0) { GrowingCAIDFetcher.caid = CAID; GrowingCAIDFetcher.status = GrowingCAIDFetcherStatusSuccess; diff --git a/Modules/Advertising/GrowingAdvertising.m b/Modules/Advertising/GrowingAdvertising.m index 3ecdda70..cb1b3823 100644 --- a/Modules/Advertising/GrowingAdvertising.m +++ b/Modules/Advertising/GrowingAdvertising.m @@ -173,7 +173,7 @@ - (BOOL)growingHandleURL:(NSURL *)url isManual:(BOOL)isManual callback:(GrowingA if ([self SDKDoNotTrack]) { return NO; } - + [GrowingCAIDFetcher startFetch]; // Universal Link 短链 @@ -302,7 +302,7 @@ - (void)loadClipboard { if ([self SDKDoNotTrack]) { return; } - + [GrowingCAIDFetcher startFetch]; GrowingTrackConfiguration *trackConfiguration = GrowingConfigurationManager.sharedInstance.trackConfiguration; diff --git a/Modules/Advertising/Public/GrowingAdvertising.h b/Modules/Advertising/Public/GrowingAdvertising.h index 56841cf6..ba6bb44f 100644 --- a/Modules/Advertising/Public/GrowingAdvertising.h +++ b/Modules/Advertising/Public/GrowingAdvertising.h @@ -35,7 +35,7 @@ typedef void (^_Nullable GrowingAdDeepLinkCallback)(NSDictionary *_Nullable para NSTimeInterval processTime, NSError *_Nullable error); -typedef void (^_Nullable GrowingAdCAIDFetchBlock)(void(^didCompleteBlock)(NSString *CAID)); +typedef void (^_Nullable GrowingAdCAIDFetchBlock)(void (^didCompleteBlock)(NSString *CAID)); NS_EXTENSION_UNAVAILABLE("Advertising is not supported for iOS extensions.") NS_SWIFT_NAME(Advertising)