-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathGoSquared.podspec
45 lines (35 loc) · 1.75 KB
/
GoSquared.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
Pod::Spec.new do |s|
s.name = 'GoSquared'
s.version = '1.0.2'
s.summary = 'Tracking SDK for integrating GoSquared in your iOS app.'
s.homepage = 'https://gosquared.com/'
s.social_media_url = 'https://twitter.com/gosquared'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Giles Williams' => '[email protected]', 'Ed Wellbrook' => '[email protected]', 'Ben White' => '[email protected]' }
s.ios.deployment_target = '6.0'
s.tvos.deployment_target = '9.0'
s.requires_arc = true
s.source = { :git => 'https://github.com/gosquared/gosquared-ios.git', :tag => "v#{s.version}" }
s.default_subspec = 'Core'
s.prepare_command = 'curl -f -s -o GoSquared/Embed/chat.js.tmp "https://js.gs-chat.com/chat-embedded.js?$RANDOM" && mv GoSquared/Embed/chat.js.tmp GoSquared/Embed/chat.js'
s.subspec 'Core' do |ss|
ss.source_files = 'GoSquared/*.{h,m}'
ss.public_header_files = 'Gosquared/{GoSquared,GSTracker,GSTypes,GSTransaction,GSTransactionItem}.h'
ss.frameworks = 'Foundation', 'UIKit'
end
s.subspec 'Autoload' do |ss|
ss.dependency 'GoSquared/Core'
ss.source_files = 'GoSquared/Autoload/*.{h,m}'
ss.public_header_files = 'GoSquared/Autoload/*.h'
ss.frameworks = 'Foundation', 'UIKit'
end
s.subspec 'Chat' do |ss|
ss.dependency 'GoSquared/Core'
ss.ios.deployment_target = '8.0'
ss.source_files = 'GoSquared/Chat/*.{h,m}'
ss.public_header_files = 'Gosquared/Chat/{GoSquared+Chat,GSChatViewController,UIViewController+Chat}.h'
ss.frameworks = 'Foundation', 'UIKit', 'WebKit'
ss.weak_frameworks = 'SafariServices'
ss.resource_bundles = { 'GSChatEmbed' => 'GoSquared/Embed/**/*' }
end
end