2016-07-27 21:04:12 +00:00
|
|
|
Pod::Spec.new do |s|
|
|
|
|
|
s.name = 'Mixpanel-swift'
|
2026-03-16 18:31:48 +00:00
|
|
|
s.version = '6.0.0'
|
2017-11-14 23:34:13 +00:00
|
|
|
s.module_name = 'Mixpanel'
|
2016-07-27 21:04:12 +00:00
|
|
|
s.license = 'Apache License, Version 2.0'
|
2016-09-29 03:28:17 +00:00
|
|
|
s.summary = 'Mixpanel tracking library for iOS (Swift)'
|
2019-03-29 22:01:49 +00:00
|
|
|
s.swift_version = '5.0'
|
2016-07-27 21:04:12 +00:00
|
|
|
s.homepage = 'https://mixpanel.com'
|
|
|
|
|
s.author = { 'Mixpanel, Inc' => 'support@mixpanel.com' }
|
2017-03-02 22:23:59 +00:00
|
|
|
s.source = { :git => 'https://github.com/mixpanel/mixpanel-swift.git',
|
2026-04-02 13:00:20 +00:00
|
|
|
:tag => "#{s.version}" }
|
2024-03-27 18:34:38 +00:00
|
|
|
s.resource_bundles = {'Mixpanel' => ['Sources/Mixpanel/PrivacyInfo.xcprivacy']}
|
2026-03-13 21:32:42 +00:00
|
|
|
s.dependency 'jsonlogic', '~> 1.2.0'
|
2025-04-24 22:49:54 +00:00
|
|
|
s.ios.deployment_target = '12.0'
|
2016-09-27 19:14:42 +00:00
|
|
|
s.ios.frameworks = 'UIKit', 'Foundation', 'CoreTelephony'
|
2019-03-22 23:22:15 +00:00
|
|
|
s.ios.pod_target_xcconfig = {
|
|
|
|
|
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) IOS'
|
|
|
|
|
}
|
2017-10-17 23:59:30 +00:00
|
|
|
s.default_subspec = 'Complete'
|
2020-10-15 17:33:07 +00:00
|
|
|
base_source_files = ['Sources/Network.swift', 'Sources/FlushRequest.swift', 'Sources/PrintLogging.swift', 'Sources/FileLogging.swift',
|
2025-01-30 21:39:49 +00:00
|
|
|
'Sources/MixpanelLogger.swift', 'Sources/JSONHandler.swift', 'Sources/Error.swift', 'Sources/AutomaticProperties.swift',
|
2020-10-15 17:33:07 +00:00
|
|
|
'Sources/Constants.swift', 'Sources/MixpanelType.swift', 'Sources/Mixpanel.swift', 'Sources/MixpanelInstance.swift',
|
2025-05-28 20:49:38 +00:00
|
|
|
'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']
|
2026-03-16 18:11:39 +00:00
|
|
|
s.tvos.deployment_target = '12.0'
|
2016-09-27 19:14:42 +00:00
|
|
|
s.tvos.frameworks = 'UIKit', 'Foundation'
|
2017-03-02 22:23:59 +00:00
|
|
|
s.tvos.pod_target_xcconfig = {
|
2022-06-23 18:01:26 +00:00
|
|
|
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) TV_OS'
|
2017-03-02 22:23:59 +00:00
|
|
|
}
|
2022-12-14 18:19:34 +00:00
|
|
|
s.osx.deployment_target = '10.13'
|
2017-03-02 22:23:59 +00:00
|
|
|
s.osx.frameworks = 'Cocoa', 'Foundation'
|
|
|
|
|
s.osx.pod_target_xcconfig = {
|
2019-03-22 23:22:15 +00:00
|
|
|
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) MAC_OS'
|
|
|
|
|
}
|
|
|
|
|
|
2022-12-14 18:41:03 +00:00
|
|
|
s.watchos.deployment_target = '4.0'
|
2019-03-22 23:22:15 +00:00
|
|
|
s.watchos.pod_target_xcconfig = {
|
|
|
|
|
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) WATCH_OS'
|
2017-03-02 22:23:59 +00:00
|
|
|
}
|
2017-10-17 23:59:30 +00:00
|
|
|
|
|
|
|
|
s.subspec 'Complete' do |ss|
|
2020-10-15 17:33:07 +00:00
|
|
|
ss.ios.source_files = ['Sources/*.swift']
|
2017-10-17 23:59:30 +00:00
|
|
|
ss.tvos.source_files = base_source_files
|
|
|
|
|
ss.osx.source_files = base_source_files
|
2019-03-22 23:22:15 +00:00
|
|
|
ss.watchos.source_files = base_source_files
|
2017-10-17 23:59:30 +00:00
|
|
|
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
|
2019-03-22 23:22:15 +00:00
|
|
|
ss.watchos.source_files = base_source_files
|
2017-10-17 23:59:30 +00:00
|
|
|
end
|
2017-11-14 23:34:13 +00:00
|
|
|
end
|