Skip to content

Commit

Permalink
style: code format
Browse files Browse the repository at this point in the history
  • Loading branch information
GIOSDK committed May 6, 2024
1 parent ba7e48e commit 5ce7635
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 109 deletions.
2 changes: 1 addition & 1 deletion GrowingAutotracker-cdp/GrowingAutotracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// limitations under the License.

@import UIKit;
#if __has_include(<GrowingAnalytics/GrowingTrackConfiguration.h>) // Cocoapods or Manual
#if __has_include(<GrowingAnalytics/GrowingTrackConfiguration.h>) // Cocoapods or Manual
@import GrowingAnalytics;
#else
#import "GrowingAttributesBuilder.h"
Expand Down
4 changes: 2 additions & 2 deletions GrowingTracker-cdp/GrowingTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#if __has_include(<GrowingAnalytics/GrowingTrackConfiguration.h>) // Cocoapods or Manual
#if __has_include(<GrowingAnalytics/GrowingTrackConfiguration.h>) // Cocoapods or Manual
@import GrowingAnalytics;
#else
#import "GrowingAttributesBuilder.h"
#import "GrowingTrackConfiguration.h"
#import "GrowingDynamicProxy.h"
#import "GrowingTrackConfiguration.h"
#endif

NS_ASSUME_NONNULL_BEGIN
Expand Down
3 changes: 1 addition & 2 deletions GrowingTrackerCore/Event/GrowingEventChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ NS_ASSUME_NONNULL_BEGIN
isCustomEvent:(BOOL)isCustomEvent
isUploading:(BOOL)isUploading;

+ (instancetype)eventChannelWithEventTypes:(NSArray<NSString *> *_Nullable)eventTypes
isCustomEvent:(BOOL)isCustomEvent;
+ (instancetype)eventChannelWithEventTypes:(NSArray<NSString *> *_Nullable)eventTypes isCustomEvent:(BOOL)isCustomEvent;
/// 所有的channels集合
+ (NSMutableArray<GrowingEventChannel *> *)eventChannels;
/// 深拷贝Channels集合,并自动添加一个EventType为nil的Channels
Expand Down
10 changes: 3 additions & 7 deletions GrowingTrackerCore/Event/GrowingEventChannel.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,8 @@ - (instancetype)initWithTypes:(NSArray<NSString *> *)eventTypes
return self;
}

+ (instancetype)eventChannelWithEventTypes:(NSArray<NSString *> *)eventTypes
isCustomEvent:(BOOL)isCustomEvent {
return [[GrowingEventChannel alloc] initWithTypes:eventTypes
isCustomEvent:isCustomEvent
isUploading:NO];
+ (instancetype)eventChannelWithEventTypes:(NSArray<NSString *> *)eventTypes isCustomEvent:(BOOL)isCustomEvent {
return [[GrowingEventChannel alloc] initWithTypes:eventTypes isCustomEvent:isCustomEvent isUploading:NO];
}

static NSMutableArray *eventChannels = nil;
Expand Down Expand Up @@ -65,8 +62,7 @@ + (instancetype)eventChannelWithEventTypes:(NSArray<NSString *> *)eventTypes
+ (NSArray<GrowingEventChannel *> *)buildAllEventChannels {
NSMutableArray *channels = [[self eventChannels] mutableCopy];
eventChannels = nil;
[channels addObject:[GrowingEventChannel eventChannelWithEventTypes:nil
isCustomEvent:NO]];
[channels addObject:[GrowingEventChannel eventChannelWithEventTypes:nil isCustomEvent:NO]];
return channels;
}

Expand Down
3 changes: 1 addition & 2 deletions Modules/Advert/GrowingAdvertising.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ - (BOOL)growingHandlerUrl:(NSURL *)url {
#pragma mark - GrowingEventInterceptor

- (void)growingEventManagerChannels:(NSMutableArray<GrowingEventChannel *> *)channels {
[channels addObject:[GrowingEventChannel eventChannelWithEventTypes:@[GrowingEventTypeActivate]
isCustomEvent:NO]];
[channels addObject:[GrowingEventChannel eventChannelWithEventTypes:@[GrowingEventTypeActivate] isCustomEvent:NO]];
}

#pragma mark - GrowingULAppLifecycleDelegate
Expand Down
Loading

0 comments on commit 5ce7635

Please sign in to comment.