Skip to content

Commit

Permalink
style: code format
Browse files Browse the repository at this point in the history
  • Loading branch information
GIOSDK committed Oct 17, 2024
1 parent b56f0ec commit f60ce8d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Modules/Advertising/CAID/GrowingCAIDFetcher.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ - (NSArray *)growingEventManagerEventsWillSend:(NSArray<id<GrowingEventPersisten
return events;
}

NSMutableArray<id <GrowingEventPersistenceProtocol>> *activates = @[].mutableCopy;
NSMutableArray<id<GrowingEventPersistenceProtocol>> *activates = @[].mutableCopy;
for (id<GrowingEventPersistenceProtocol> event in events) {
if ([event.eventType isEqualToString:GrowingEventTypeActivate]) {
[activates addObject:event];
Expand Down Expand Up @@ -106,7 +106,7 @@ + (void)startFetch {
self.status = GrowingCAIDFetcherStatusDenied;
return;
}

Check warning on line 108 in Modules/Advertising/CAID/GrowingCAIDFetcher.m

View check run for this annotation

Codecov / codecov/patch

Modules/Advertising/CAID/GrowingCAIDFetcher.m#L105-L108

Added lines #L105 - L108 were not covered by tests

if (!trackConfiguration.CAIDFetchBlock) {
GIOLogDebug(@"[GrowingAdvertising] CAIDFetcher - CAIDFetchBlock is nil");
self.status = GrowingCAIDFetcherStatusDenied;
Expand All @@ -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) {
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions Modules/Advertising/GrowingAdvertising.m
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ - (BOOL)growingHandleURL:(NSURL *)url isManual:(BOOL)isManual callback:(GrowingA
if ([self SDKDoNotTrack]) {
return NO;
}

[GrowingCAIDFetcher startFetch];

// Universal Link 短链
Expand Down Expand Up @@ -302,7 +302,7 @@ - (void)loadClipboard {
if ([self SDKDoNotTrack]) {
return;
}

[GrowingCAIDFetcher startFetch];

GrowingTrackConfiguration *trackConfiguration = GrowingConfigurationManager.sharedInstance.trackConfiguration;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Advertising/Public/GrowingAdvertising.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f60ce8d

Please sign in to comment.