forked from mixpanel/mixpanel-iphone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mixpanel.podspec
44 lines (40 loc) · 2.02 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
Pod::Spec.new do |s|
s.name = 'Mixpanel'
s.version = '2.9.9'
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.platforms = { :ios => '7.0', :watchos => '2.0' }
s.subspec 'Mixpanel' do |ss|
ss.source_files = 'Mixpanel/**/*.{m,h}', 'Mixpanel/**/*.swift'
ss.exclude_files = 'Mixpanel/MixpanelWatchOS.{m,h}', 'Mixpanel/Mixpanel+HostWatchOS.{m,h}'
ss.resources = ['Mixpanel/**/*.{png,storyboard}']
ss.frameworks = 'UIKit', 'Foundation', 'SystemConfiguration', 'CoreTelephony', 'Accelerate', 'CoreGraphics', 'QuartzCore'
ss.libraries = 'icucore'
ss.platform = :ios
end
s.subspec 'MixpanelHostWatchOS' do |ss|
ss.source_files = 'Mixpanel/**/*.{m,h}', 'Mixpanel/**/*.swift'
ss.exclude_files = 'Mixpanel/MixpanelWatchOS.{m,h}'
ss.resources = ['Mixpanel/**/*.{png,storyboard}']
ss.frameworks = 'WatchConnectivity', 'UIKit', 'Foundation', 'SystemConfiguration', 'CoreTelephony', 'Accelerate', 'CoreGraphics', 'QuartzCore'
ss.libraries = 'icucore'
ss.platform = :ios
end
s.subspec 'WatchOS' do |ss|
ss.source_files = ['Mixpanel/MixpanelWatchOS.{m,h}', 'Mixpanel/MPLogger.h']
ss.frameworks = 'WatchConnectivity', 'Foundation'
ss.platform = :watchos
end
s.subspec 'AppExtension' do |ss|
ss.source_files = ['Mixpanel/Mixpanel.{m,h}', 'Mixpanel/MPLogger.h', 'Mixpanel/NSData+MPBase64.{m,h}', 'Mixpanel/MPFoundation.h', 'Mixpanel/Mixpanel+AutomaticEvents.h', 'Mixpanel/AutomaticEventsConstants.h']
ss.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) MIXPANEL_APP_EXTENSION'}
ss.frameworks = 'UIKit', 'Foundation', 'Accelerate', 'CoreGraphics', 'QuartzCore'
ss.libraries = 'icucore'
ss.platform = :ios
end
end