Publish Score iOS SDK 0.5.0

This commit is contained in:
bdot
2026-10-07 12:59:18 -04:00
parent 540823aac1
commit 84b3a4cb20
6 changed files with 54 additions and 13 deletions

View File

@@ -17,3 +17,6 @@ public typealias DeliveryMode = ScoreTrackerKit.DeliveryMode
public typealias PiiOptions = ScoreTrackerKit.PiiOptions
public typealias PiiRule = ScoreTrackerKit.PiiRule
public typealias PiiAction = ScoreTrackerKit.PiiAction
/// The support snapshot returned by `ScoreClient.inspect()` (#490); its nested
/// types are reached through it (`snapshot.identity.hasToken`).
public typealias InspectSnapshot = ScoreTrackerKit.InspectSnapshot

View File

@@ -120,6 +120,13 @@ public final class ScoreClient {
public var anonymousId: String { tracker.anonymousId }
public var pending: Int { Int(tracker.pending()) }
/// The tracker's state for support (#490): consent, queue depth and oldest
/// event, identity (the token only as `hasToken`), the last flush, and the
/// link and replay state. Attach `inspectJson()` to any bug report.
public func inspect() -> InspectSnapshot { tracker.inspect() }
/// `inspect()` as JSON, ready to paste into a bug report.
public func inspectJson() -> String { tracker.inspectJson() }
// MARK: - Tracking
/// Track a typed loyalty event — the preferred form (#485). `Events` is