-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPodfile
32 lines (27 loc) · 1 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
platform :ios, '15.0'
target 'BallPark' do
use_frameworks!
pod 'ReachabilitySwift', '~> 5.0'
pod 'Kingfisher', '~> 7.0', :inhibit_warnings => true
pod 'Alamofire', '~> 5.7'
pod 'Swinject', '~> 2.8'
target 'BallParkTests' do
inherit! :search_paths
end
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 " #{config.name}: #{old_target.yellow} -> #{new_target.green}"
#config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = new_target
end
end
end