mixpanel-swift/Mixpanel-swift.podspec
ketanmixpanel 3ad0fb8221
Integrate common SDK to use the Event bridge (#709)
* added code for communcation bridge

* removed the excess logging

* removed the MixpanelBridgeEvent class

* updated eventBridge code

* moved notifyListeners to track call

* use AsyncStream

* Merge branch 'master' into feature/communcation-bridge

* moved the bridge code to shared module

* Update Package.swift

* Use mixpanel-swift-common package

Replace mixpanel-swift-shared with mixpanel-swift-common across the project. Updated Package.swift (dependency URL and product name), changed import in Sources/Track.swift, and modified Mixpanel.xcodeproj entries to reference MixpanelSwiftCommon (XCRemoteSwiftPackageReference, XCSwiftPackageProductDependency, framework entries and groups). Also bumped the package requirement to upToNextMajor with minimumVersion 2.0.0.

* Update Package.swift

* Update Package.swift

* Lower mixpanel-swift-common min version and remove duplicate

Reduce the XCRemoteSwiftPackageReference minimumVersion for mixpanel-swift-common from 2.0.0 to 1.0.0 in Mixpanel.xcodeproj to allow older compatible releases. Also remove a duplicated flagManager.checkFirstTimeEvents(...) block in Sources/Track.swift to prevent the same first-time event check from running twice.

* Add MixpanelEventBridgeTests covering bridge notification on track and opt-out behavior

Agent-Logs-Url: https://github.com/mixpanel/mixpanel-swift/sessions/fa45ba33-c2bf-4811-9e91-829afdc858bf

Co-authored-by: ketanmixpanel <188901560+ketanmixpanel@users.noreply.github.com>

* Add MixpanelEventBridgeTests.swift to Mac test directory

Agent-Logs-Url: https://github.com/mixpanel/mixpanel-swift/sessions/fa45ba33-c2bf-4811-9e91-829afdc858bf

Co-authored-by: ketanmixpanel <188901560+ketanmixpanel@users.noreply.github.com>

* Add MixpanelEventBridgeTests.swift to tvOS test target

Agent-Logs-Url: https://github.com/mixpanel/mixpanel-swift/sessions/47b76ca2-86a7-4c28-9265-b72264c0d548

Co-authored-by: ketanmixpanel <188901560+ketanmixpanel@users.noreply.github.com>

* Update MixpanelEventBridgeTests.swift

* added pod dependency

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ketanmixpanel <188901560+ketanmixpanel@users.noreply.github.com>
2026-04-10 20:14:33 +05:30

56 lines
2.5 KiB
Ruby

Pod::Spec.new do |s|
s.name = 'Mixpanel-swift'
s.version = '6.2.0'
s.module_name = 'Mixpanel'
s.license = 'Apache License, Version 2.0'
s.summary = 'Mixpanel tracking library for iOS (Swift)'
s.swift_version = '5.0'
s.homepage = 'https://mixpanel.com'
s.author = { 'Mixpanel, Inc' => 'support@mixpanel.com' }
s.source = { :git => 'https://github.com/mixpanel/mixpanel-swift.git',
:tag => "v#{s.version}" }
s.resource_bundles = {'Mixpanel' => ['Sources/Mixpanel/PrivacyInfo.xcprivacy']}
s.dependency 'jsonlogic', '~> 1.2.0'
s.dependency 'MixpanelSwiftCommon', '~> 1.0.0'
s.ios.deployment_target = '12.0'
s.ios.frameworks = 'UIKit', 'Foundation', 'CoreTelephony'
s.ios.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) IOS'
}
s.default_subspec = 'Complete'
base_source_files = ['Sources/Network.swift', 'Sources/FlushRequest.swift', 'Sources/PrintLogging.swift', 'Sources/FileLogging.swift',
'Sources/MixpanelLogger.swift', 'Sources/JSONHandler.swift', 'Sources/Error.swift', 'Sources/AutomaticProperties.swift',
'Sources/Constants.swift', 'Sources/MixpanelType.swift', 'Sources/Mixpanel.swift', 'Sources/MixpanelInstance.swift',
'Sources/Flush.swift', 'Sources/Track.swift', 'Sources/People.swift', 'Sources/AutomaticEvents.swift',
'Sources/Group.swift', 'Sources/ReadWriteLock.swift', 'Sources/SessionMetadata.swift', 'Sources/MPDB.swift', 'Sources/MixpanelPersistence.swift',
'Sources/Data+Compression.swift', 'Sources/MixpanelOptions.swift', 'Sources/FeatureFlags.swift']
s.tvos.deployment_target = '12.0'
s.tvos.frameworks = 'UIKit', 'Foundation'
s.tvos.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) TV_OS'
}
s.osx.deployment_target = '10.13'
s.osx.frameworks = 'Cocoa', 'Foundation'
s.osx.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) MAC_OS'
}
s.watchos.deployment_target = '4.0'
s.watchos.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) WATCH_OS'
}
s.subspec 'Complete' do |ss|
ss.ios.source_files = ['Sources/*.swift']
ss.tvos.source_files = base_source_files
ss.osx.source_files = base_source_files
ss.watchos.source_files = base_source_files
end
s.subspec 'Core' do |ss|
ss.ios.source_files = base_source_files
ss.tvos.source_files = base_source_files
ss.osx.source_files = base_source_files
ss.watchos.source_files = base_source_files
end
end