forked from mixpanel/mixpanel-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mixpanel-swift.podspec
57 lines (54 loc) · 2.54 KB
/
Mixpanel-swift.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Pod::Spec.new do |s|
s.name = 'Mixpanel-swift'
s.version = '2.7.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' => '[email protected]' }
s.source = { :git => 'https://github.com/mixpanel/mixpanel-swift.git',
:tag => "v#{s.version}" }
s.ios.deployment_target = '8.0'
s.ios.resources = ['Mixpanel/**/*.{png,xib,storyboard}']
s.ios.frameworks = 'UIKit', 'Foundation', 'CoreTelephony'
s.ios.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) IOS'
}
s.default_subspec = 'Complete'
base_source_files = ['Mixpanel/Network.swift', 'Mixpanel/FlushRequest.swift', 'Mixpanel/PrintLogging.swift', 'Mixpanel/FileLogging.swift',
'Mixpanel/Logger.swift', 'Mixpanel/JSONHandler.swift', 'Mixpanel/Error.swift', 'Mixpanel/AutomaticProperties.swift',
'Mixpanel/Constants.swift', 'Mixpanel/MixpanelType.swift', 'Mixpanel/Mixpanel.swift', 'Mixpanel/MixpanelInstance.swift',
'Mixpanel/Persistence.swift', 'Mixpanel/Flush.swift','Mixpanel/Track.swift', 'Mixpanel/People.swift', 'Mixpanel/AutomaticEvents.swift',
'Mixpanel/Group.swift',
'Mixpanel/ReadWriteLock.swift', 'Mixpanel/SessionMetadata.swift', 'Mixpanel/ExceptionWrapper.m', 'Mixpanel/ExceptionWrapper.h', 'Mixpanel/Mixpanel.h']
s.tvos.deployment_target = '9.0'
s.tvos.frameworks = 'UIKit', 'Foundation'
s.tvos.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) TV_OS TV_AUTO_EVENTS'
}
s.osx.deployment_target = '10.10'
s.osx.frameworks = 'Cocoa', 'Foundation'
s.osx.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) MAC_OS'
}
s.watchos.deployment_target = '3.0'
s.watchos.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) WATCH_OS'
}
s.subspec 'Complete' do |ss|
ss.ios.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => '$(inherited) -D DECIDE'
}
ss.ios.source_files = ['Mixpanel/*.swift', 'Mixpanel/ExceptionWrapper.m', 'Mixpanel/ExceptionWrapper.h', 'Mixpanel/Mixpanel.h']
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