-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPodfile
59 lines (43 loc) · 1.39 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
source 'https://github.com/CocoaPods/Specs.git'
workspace 'Shopify-ITI.xcworkspace'
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
project 'Shopify-ITI.xcodeproj'
project 'Shopify-ITI-SDK/Shopify-ITI-SDK.xcodeproj'
def shared_pods
pod 'Apollo'
end
target 'Shopify-ITI' do
project 'Shopify-ITI'
use_frameworks!
shared_pods
pod 'Swinject', '~> 2.8'
target 'Shopify-ITI-Tests' do
inherit! :search_paths
end
end
target 'Shopify-ITI-SDK' do
project 'Shopify-ITI-SDK/Shopify-ITI-SDK'
use_frameworks!
shared_pods
end
target 'Shopify-Admin-ITI-SDK' do
project 'Shopify-ITI-SDK/Shopify-ITI-SDK'
use_frameworks!
shared_pods
end
post_install do |installer|
return if !installer
project = installer.pods_project
project_deployment_target = project.build_configurations.first.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
installer.pods_project.targets.each do |target|
puts "#{target.name}"
target.build_configurations.each do |config|
old_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
new_target = project_deployment_target
next if old_target == new_target || old_target == nil || new_target == nil
puts "#{target.name} > #{config.name}: #{old_target.yellow} -> #{new_target.green}"
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = new_target
end
end
end