forked from mixpanel/mixpanel-iphone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMixpanel.podspec
59 lines (54 loc) · 3.51 KB
/
Mixpanel.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
58
59
Pod::Spec.new do |s|
s.name = 'Mixpanel'
s.version = '3.0.0'
s.summary = 'iPhone tracking library for Mixpanel Analytics'
s.homepage = 'https://mixpanel.com'
s.license = 'Apache License, Version 2.0'
s.author = { 'Mixpanel, Inc' => '[email protected]' }
s.source = { :git => 'https://github.com/mixpanel/mixpanel-iphone.git', :tag => "v#{s.version}" }
s.requires_arc = true
s.default_subspec = 'Mixpanel'
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.osx.deployment_target = ''
s.subspec 'Mixpanel' do |ss|
ss.source_files = 'Mixpanel/**/*.{m,h}'
ss.exclude_files = 'Mixpanel/MixpanelWatchOS.{m,h}', 'Mixpanel/Mixpanel+HostWatchOS.{m,h}'
ss.private_header_files = 'Mixpanel/MixpanelPrivate.h', 'Mixpanel/MixpanelPeoplePrivate.h', 'Mixpanel/MPNetworkPrivate.h'
ss.resources = ['Mixpanel/**/*.{png,storyboard}']
ss.frameworks = 'UIKit', 'Foundation', 'SystemConfiguration', 'CoreTelephony', 'Accelerate', 'CoreGraphics', 'QuartzCore'
ss.libraries = 'icucore'
ss.ios.deployment_target = '8.0'
end
s.subspec 'MixpanelHostWatchOS' do |ss|
ss.source_files = 'Mixpanel/**/*.{m,h}', 'Mixpanel/**/*.swift'
ss.exclude_files = 'Mixpanel/MixpanelWatchOS.{m,h}'
ss.private_header_files = 'Mixpanel/MixpanelPrivate.h', 'Mixpanel/MixpanelPeoplePrivate.h', 'Mixpanel/MPNetworkPrivate.h'
ss.resources = ['Mixpanel/**/*.{png,storyboard}']
ss.frameworks = 'WatchConnectivity', 'WatchKit', 'UIKit', 'Foundation', 'SystemConfiguration', 'CoreTelephony', 'Accelerate', 'CoreGraphics', 'QuartzCore'
ss.libraries = 'icucore'
ss.ios.deployment_target = '8.0'
end
s.subspec 'tvOS' do |ss|
ss.source_files = 'Mixpanel/NSInvocation+MPHelpers.{m,h}', 'Mixpanel/UIColor+MPColor.{m,h}', 'Mixpanel/MixpanelPrivate.h', 'Mixpanel/MixpanelPeoplePrivate.h', 'Mixpanel/Mixpanel.{m,h}', 'Mixpanel/UIImage+MPAverageColor.{m,h}', 'Mixpanel/MPNetwork.{m,h}', 'Mixpanel/MixpanelExceptionHandler.{m,h}', 'Mixpanel/UIImage+MPImageEffects.{m,h}', 'Mixpanel/MixpanelPeople.{m,h}', 'Mixpanel/MPLogger.h', 'Mixpanel/MPNetworkPrivate.h', 'Mixpanel/MPFoundation.h'
ss.private_header_files = 'Mixpanel/MixpanelPrivate.h', 'Mixpanel/MixpanelPeoplePrivate.h', 'Mixpanel/MPNetworkPrivate.h'
ss.frameworks = 'UIKit', 'Foundation', 'SystemConfiguration', 'Accelerate', 'CoreGraphics', 'QuartzCore'
ss.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) MIXPANEL_TVOS_EXTENSION' }
ss.libraries = 'icucore'
ss.tvos.deployment_target = '9.0'
end
s.subspec 'WatchOS' do |ss|
ss.source_files = ['Mixpanel/MixpanelWatchOS.{m,h}', 'Mixpanel/MPLogger.h']
ss.frameworks = 'WatchConnectivity', 'Foundation'
ss.watchos.deployment_target = '2.0'
end
s.subspec 'AppExtension' do |ss|
ss.source_files = ['Mixpanel/Mixpanel.{m,h}', 'Mixpanel/MixpanelPrivate.h', 'Mixpanel/MixpanelPeople.{h,m}', 'Mixpanel/MixpanelPeoplePrivate.h', 'Mixpanel/MPNetwork.{h,m}', 'Mixpanel/MPNetworkPrivate.h', 'Mixpanel/MPLogger.h', 'Mixpanel/MPFoundation.h', 'Mixpanel/Mixpanel+AutomaticEvents.h', 'Mixpanel/AutomaticEventsConstants.h']
ss.private_header_files = 'Mixpanel/MixpanelPrivate.h', 'Mixpanel/MixpanelPeoplePrivate.h', 'Mixpanel/MPNetworkPrivate.h'
ss.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) MIXPANEL_APP_EXTENSION'}
ss.frameworks = 'UIKit', 'Foundation', 'Accelerate', 'CoreGraphics', 'QuartzCore'
ss.libraries = 'icucore'
ss.ios.deployment_target = '8.0'
end
end