Skip to content

Commit

Permalink
fix: add generalProps APIs to swift exports
Browse files Browse the repository at this point in the history
  • Loading branch information
YoloMao committed Nov 2, 2023
1 parent 5a0966f commit dc10c8a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: ab056def7c57fcd5747a7be922ee9fc2b5ce9783

COCOAPODS: 1.13.0
COCOAPODS: 1.14.2
12 changes: 12 additions & 0 deletions SwiftPM-Wrap/GrowingAutotracker/Exports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ public struct Autotracker {
public static func clearTimers() {
autotracker.clearTrackTimer()
}

public static func setGeneralProps(_ props: [String: String]) {
autotracker.setGeneralProps(props)
}

public static func removeGeneralProps(_ keys: [String]) {
autotracker.removeGeneralProps(keys)
}

public static func clearGeneralProps() {
autotracker.clearGeneralProps()
}

public static func autotrackPage(_ viewController: UIViewController,
alias: String,
Expand Down
12 changes: 12 additions & 0 deletions SwiftPM-Wrap/GrowingTracker/Exports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,16 @@ public struct Tracker {
public static func clearTimers() {
tracker.clearTrackTimer()
}

public static func setGeneralProps(_ props: [String: String]) {
tracker.setGeneralProps(props)
}

public static func removeGeneralProps(_ keys: [String]) {
tracker.removeGeneralProps(keys)
}

public static func clearGeneralProps() {
tracker.clearGeneralProps()
}
}

0 comments on commit dc10c8a

Please sign in to comment.