Skip to content

Repository files navigation

mixpanel-swift-common

Shared common functionality for Mixpanel iOS SDKs.

Components

MixpanelEventBridge

Event bridge for multicasting Mixpanel events to external consumers via AsyncStream.

let bridge = MixpanelEventBridge.shared
let stream = bridge.eventStream()

// Consume events
for await event in stream {
    print("Event: \(event.eventName)")
}

JSONLogicEvaluator

Essential JSONLogic operators for targeting and filtering.

Supports 10 operators: ===, !==, <, <=, >, >=, in, and, or, var.

See OPERATORS.md for complete documentation and examples.

let evaluator = JSONLogicEvaluator()
let result = try evaluator.evaluate(
    [">": [["var": "score"], 50]],
    data: ["score": 75]
) // Returns true

Installation

This package is intended for use by Mixpanel SDK developers.

dependencies: [
    .package(url: "https://github.com/mixpanel/mixpanel-swift-common.git", from: "1.0.0")
]

License

Copyright © 2026 Mixpanel. All rights reserved.

About

Shared common functionality for Mixpanel iOS SDKs.

Resources

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages