mirror of
https://github.com/mixpanel/mixpanel-swift
synced 2026-04-21 13:37:18 +00:00
Change the git source tag in Mixpanel-swift.podspec from "v#{s.version}" to "#{s.version}" so the podspec uses the raw version string (no leading 'v'). This ensures CocoaPods fetches the repository tag that matches the project's tag naming.
55 lines
2.4 KiB
Ruby
55 lines
2.4 KiB
Ruby
Pod::Spec.new do |s|
|
|
s.name = 'Mixpanel-swift'
|
|
s.version = '6.0.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 => "#{s.version}" }
|
|
s.resource_bundles = {'Mixpanel' => ['Sources/Mixpanel/PrivacyInfo.xcprivacy']}
|
|
s.dependency 'jsonlogic', '~> 1.2.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
|