From 7cc4ad4d9da8841365dd68aa8f62a189e5c651c5 Mon Sep 17 00:00:00 2001 From: runner Date: Tue, 27 Jun 2023 09:21:01 +0000 Subject: [PATCH] style: code format --- Modules/V2Adapter/GrowingAutoTrackKit.m | 4 ++-- Modules/V2AdapterTrackOnly/GrowingCoreKit.m | 8 +++----- .../V2AdapterTrackOnly/Public/GrowingCoreKit.h | 15 +++++++++------ 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/Modules/V2Adapter/GrowingAutoTrackKit.m b/Modules/V2Adapter/GrowingAutoTrackKit.m index 57b0b38ef..c1e4dd485 100644 --- a/Modules/V2Adapter/GrowingAutoTrackKit.m +++ b/Modules/V2Adapter/GrowingAutoTrackKit.m @@ -19,13 +19,13 @@ #if __has_include() #import "Modules/V2Adapter/Public/GrowingAutoTrackKit.h" -#import "Modules/V2AdapterTrackOnly/Public/GrowingV2Adapter.h" #import #import #import "GrowingAutotrackerCore/Public/GrowingAutotrackConfiguration.h" #import "GrowingTrackerCore/GrowingRealTracker.h" #import "GrowingTrackerCore/Manager/GrowingConfigurationManager.h" #import "GrowingTrackerCore/Thirdparty/Logger/GrowingLogger.h" +#import "Modules/V2AdapterTrackOnly/Public/GrowingV2Adapter.h" @interface UIView (Internal) @@ -169,7 +169,7 @@ @implementation UIView (Deprecated) - (double)growingImpScale { GIOLogDebug(@"[V2Adapter] %s 已废弃", __FUNCTION__); - + GrowingTrackConfiguration *configuration = GrowingConfigurationManager.sharedInstance.trackConfiguration; if ([configuration isKindOfClass:[GrowingAutotrackConfiguration class]]) { return ((GrowingAutotrackConfiguration *)configuration).impressionScale; diff --git a/Modules/V2AdapterTrackOnly/GrowingCoreKit.m b/Modules/V2AdapterTrackOnly/GrowingCoreKit.m index 01d0b31a2..c156416f2 100644 --- a/Modules/V2AdapterTrackOnly/GrowingCoreKit.m +++ b/Modules/V2AdapterTrackOnly/GrowingCoreKit.m @@ -18,7 +18,6 @@ // limitations under the License. #import "Modules/V2AdapterTrackOnly/Public/GrowingCoreKit.h" -#import "Modules/V2AdapterTrackOnly/Public/GrowingV2Adapter.h" #import #import #import "GrowingTrackerCore/GrowingRealTracker.h" @@ -26,6 +25,7 @@ #import "GrowingTrackerCore/Manager/GrowingSession.h" #import "GrowingTrackerCore/Thirdparty/Logger/GrowingLogger.h" #import "GrowingTrackerCore/Utils/GrowingDeviceInfo.h" +#import "Modules/V2AdapterTrackOnly/Public/GrowingV2Adapter.h" static id growing_getTracker(void) { Class class = NSClassFromString(@"GrowingAutotracker") ?: NSClassFromString(@"GrowingTracker"); @@ -114,9 +114,7 @@ + (void)track:(NSString *)eventId withVariable:(NSDictionary *)variable { ++ (void)track:(NSString *)eventId withNumber:(NSNumber *)number andVariable:(NSDictionary *)variable { [self track:eventId withVariable:variable]; } @@ -174,7 +172,7 @@ + (void)setPeopleVariableWithKey:(NSString *)key andNumberValue:(NSNumber *)numb [self setPeopleVariable:@{key: numberValue.stringValue}]; } -+ (void)setUserAttributes:(NSDictionary*)attributes { ++ (void)setUserAttributes:(NSDictionary *)attributes { [self setPeopleVariable:attributes]; } diff --git a/Modules/V2AdapterTrackOnly/Public/GrowingCoreKit.h b/Modules/V2AdapterTrackOnly/Public/GrowingCoreKit.h index c7e790f44..8949c7e43 100644 --- a/Modules/V2AdapterTrackOnly/Public/GrowingCoreKit.h +++ b/Modules/V2AdapterTrackOnly/Public/GrowingCoreKit.h @@ -40,15 +40,13 @@ typedef NS_ENUM(NSInteger, GrowingAspectMode) { + (void)track:(NSString *)eventId; + (void)track:(NSString *)eventId withNumber:(NSNumber *)number; + (void)track:(NSString *)eventId withVariable:(NSDictionary *)variable; -+ (void)track:(NSString *)eventId - withNumber:(NSNumber *)number - andVariable:(NSDictionary *)variable; ++ (void)track:(NSString *)eventId withNumber:(NSNumber *)number andVariable:(NSDictionary *)variable; + (void)setUserId:(NSString *)userId; + (void)clearUserId; + (void)setPeopleVariable:(NSDictionary *)variable; + (void)setPeopleVariableWithKey:(NSString *)key andStringValue:(NSString *)stringValue; + (void)setPeopleVariableWithKey:(NSString *)key andNumberValue:(NSNumber *)numberValue; -+ (void)setUserAttributes:(NSDictionary*)attributes; // cdp ++ (void)setUserAttributes:(NSDictionary *)attributes; // cdp #pragma mark - Configuration @@ -116,10 +114,15 @@ typedef NS_ENUM(NSInteger, GrowingAspectMode) { + (void)startWithAccountId:(NSString *)accountId NS_UNAVAILABLE; // cdp -+ (void)startWithAccountId:(NSString *)accountId dataSourceId:(NSString *)dataSourceId withSampling:(CGFloat)sampling NS_UNAVAILABLE; ++ (void)startWithAccountId:(NSString *)accountId + dataSourceId:(NSString *)dataSourceId + withSampling:(CGFloat)sampling NS_UNAVAILABLE; + (void)startWithAccountId:(NSString *)accountId dataSourceId:(NSString *)dataSourceId NS_UNAVAILABLE; + (void)track:(NSString *)eventId withItem:(NSString *)itemId itemKey:(NSString *)itemKey NS_UNAVAILABLE; -+ (void)track:(NSString *)eventId withVariable:(NSDictionary *)variable forItem:(NSString *)itemId itemKey:(NSString *)itemKey NS_UNAVAILABLE; ++ (void)track:(NSString *)eventId + withVariable:(NSDictionary *)variable + forItem:(NSString *)itemId + itemKey:(NSString *)itemKey NS_UNAVAILABLE; + (void)trackPage:(NSString *)pageName NS_UNAVAILABLE; + (void)trackPage:(NSString *)pageName withVariable:(NSDictionary *)variable NS_UNAVAILABLE;