Skip to content

Commit

Permalink
fix: rename registerDynamicGeneralPropsBlock when coding with swift l…
Browse files Browse the repository at this point in the history
…anguage
  • Loading branch information
YoloMao committed Apr 19, 2024
1 parent 7094ca7 commit 6a3a91e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GrowingAutotracker/GrowingAutotracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ NS_ASSUME_NONNULL_BEGIN

/// 设置埋点动态通用属性
/// @param dynamicGeneralPropsBlock 动态通用属性,其优先级大于通用属性
+ (void)registerDynamicGeneralPropsBlock:(NSDictionary<NSString *, id> * (^_Nullable)(void))dynamicGeneralPropsBlock;
+ (void)registerDynamicGeneralPropsBlock:(NSDictionary<NSString *, id> * (^_Nullable)(void))dynamicGeneralPropsBlock NS_SWIFT_NAME(registerDynamicGeneralProps(_:));

///-------------------------------
#pragma mark Autotrack Event
Expand Down
2 changes: 1 addition & 1 deletion GrowingTracker/GrowingTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ NS_ASSUME_NONNULL_BEGIN

/// 设置埋点动态通用属性
/// @param dynamicGeneralPropsBlock 动态通用属性,其优先级大于通用属性
+ (void)registerDynamicGeneralPropsBlock:(NSDictionary<NSString *, id> * (^_Nullable)(void))dynamicGeneralPropsBlock;
+ (void)registerDynamicGeneralPropsBlock:(NSDictionary<NSString *, id> * (^_Nullable)(void))dynamicGeneralPropsBlock NS_SWIFT_NAME(registerDynamicGeneralProps(_:));

///-------------------------------
#pragma mark Unavailable
Expand Down
2 changes: 1 addition & 1 deletion SwiftPM-Wrap/GrowingAutotracker/Exports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public struct Autotracker {
}

public static func registerDynamicGeneralProps(_ closure: (() -> [String: Any])?) {
GrowingAutotracker.registerDynamicGeneralPropsBlock(closure)
GrowingAutotracker.registerDynamicGeneralProps(closure)
}

public static func autotrackPage(_ viewController: UIViewController,
Expand Down
2 changes: 1 addition & 1 deletion SwiftPM-Wrap/GrowingTracker/Exports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@ public struct Tracker {
}

public static func registerDynamicGeneralProps(_ closure: (() -> [String: Any])?) {
GrowingTracker.registerDynamicGeneralPropsBlock(closure)
GrowingTracker.registerDynamicGeneralProps(closure)
}
}

0 comments on commit 6a3a91e

Please sign in to comment.