-
Notifications
You must be signed in to change notification settings - Fork 130
/
Podfile
82 lines (65 loc) · 1.65 KB
/
Podfile
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# This podfile is intended for development on libPusher.
#
# If you are working on libPusher, you do not need to have CocoaPods installed
# unless you want to install new development dependencies as the Pods directory
# is part of the source tree.
inhibit_all_warnings!
def import_pods
pod 'Reachability', '~> 3.1'
pod 'SocketRocket', '~> 0.5.0'
pod 'ReactiveCocoa', '~> 2.1'
end
def import_test_pods
pod 'Kiwi', '~> 2.4'
pod 'OHHTTPStubs', '~> 5.0'
end
target 'libPusher' do
platform :ios, '6.0'
import_pods
end
target 'libPusher-OSX' do
platform :osx, '10.9'
import_pods
end
target 'libPusher_ReactiveExtensions.a' do
platform :ios, '6.0'
import_pods
end
target 'SampleApp' do
platform :ios, '6.0'
import_pods
end
target 'SampleAppOSX' do
platform :osx, '10.9'
import_pods
end
target 'UnitTests' do
platform :ios, '6.0'
import_pods
import_test_pods
end
target 'UnitTests-OSX' do
platform :osx, '10.9'
import_pods
import_test_pods
end
target 'Functional Specs' do
platform :ios, '6.0'
import_pods
import_test_pods
end
post_install do |installer|
# we don't want to link static lib to the icucore dylib or it will fail to build
builds = ['debug', 'release']
builds.each do |build|
installer.pods_project.targets.each do |target|
config_file_path = File.join("Pods", "Target Support Files", "#{target.name}", "#{target.name}.#{build}.xcconfig")
if File.file? config_file_path
File.open("#{build}_config.tmp", "w") do |io|
io << File.read(config_file_path).gsub(/-l"icucore"/, '')
end
FileUtils.mv("#{build}_config.tmp", config_file_path)
end
end
end
end