-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
89 lines (69 loc) · 2.89 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
83
84
85
86
87
88
89
source 'https://cdn.cocoapods.org/'
source 'https://github.com/grigorye/podspecs.git'
use_frameworks!
platform :osx, '10.13'
project "SimulatorRecorder/SimulatorRecorder.xcodeproj"
pod 'GEContinuousIntegration'#, :path => '../GEContinuousIntegration'
###
$injected_pod_dir_as_xcconfig_vars = Hash.new
def inject_pod_dir_as_xcconfig_var(var_name, pod_name)
$injected_pod_dir_as_xcconfig_vars[var_name] = pod_name
end
def post_install_inject_pod_dir_in_aggregate_xcconfig_var(installer, var_name, pod_name)
sandbox = installer.sandbox
installer.aggregate_targets.each do |target|
pod_dir = sandbox.pod_dir(pod_name)
path_in_xcconfig = sandbox.local_path_was_absolute?(pod_name) ? pod_dir : "#{target.relative_pods_root}/#{pod_dir.relative_path_from(Pathname.new(sandbox.root))}"
target.xcconfigs.each do |config_name, xcconfig|
xcconfig_path = target.user_project_path.dirname.join(target.xcconfig_relative_path(config_name))
xcconfig_path.exist? && warn
xcconfig.merge!(var_name => path_in_xcconfig)
xcconfig.save_as(xcconfig_path)
end
end
end
###
target 'SimulatorRecorder' do
use_frameworks!
# Embed sources
pod 'SimulatorRecorder', :path => '.'
pod 'MASShortcut'
pod 'Fabric'
pod 'Crashlytics'
pod 'GEAppConfig', :subspecs => ['Core', 'Crashlytics', 'Answers']#, :path => '../GEAppConfig'
pod 'GEFoundation'#, :path => '../GEFoundation'
pod 'GETracing'#, :path => '../GETracing'
pod 'GEXcodeScripts'#, :path => '../GEXcodeScripts'
inject_pod_dir_as_xcconfig_var('GE_XCODE_SCRIPTS_POD_ROOT', 'GEXcodeScripts')
pod 'GEXcodeBuildPhases'#, :path => '../GEXcodeBuildPhases'
inject_pod_dir_as_xcconfig_var('GE_XCODE_BUILD_PHASES_POD_ROOT', 'GEXcodeBuildPhases')
script_phase :name => 'Integrate Fabric', :shell_path => '/bin/sh -e', :script => <<~END
"${GE_XCODE_BUILD_PHASES:?}/IntegrateFabric"
END
script_phase :name => 'Embed Source Version into Bundle', :shell_path => '/bin/sh -e', :script => <<~END
"${GE_XCODE_BUILD_PHASES:?}/EmbedSourceVersionIntoBundle"
END
target 'SimulatorRecorderTests' do
inherit! :search_paths
pod 'SimulatorRecorder', :subspecs => ['Tests-Sources'], :path => '.'
end
target 'SimulatorRecorderUITests' do
inherit! :search_paths
end
end
post_install do |installer|
$injected_pod_dir_as_xcconfig_vars.each do |var_name, pod_name|
post_install_inject_pod_dir_in_aggregate_xcconfig_var(installer, var_name, pod_name)
end
installer.pods_project.targets.each do |target|
if target.name == 'MASShortcut'
target.build_configurations.each do |configuration|
configuration.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.9'
end
end
target.build_configurations.each do |configuration|
configuration.build_settings['OTHER_CFLAGS'] = '$(inherited) -Wno-comma'
configuration.build_settings['CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF'] = 'NO'
end
end
end