-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPodfile
53 lines (41 loc) · 1.44 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
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
inhibit_all_warnings!
use_frameworks!
workspace 'RBKmoneyPaymentsSDK.xcworkspace'
project 'RBKmoneyPaymentsSDK.xcodeproj'
target 'Example' do
# Target uses framework as dependency, install other dependencies explicitly
pod 'RxSwift', '~> 6.0'
pod 'RxCocoa', '~> 6.0'
pod 'R.swift.Library', '~> 5.0'
end
target 'Example+Pods' do
# Target uses framework as pod, other dependencies will be installed automatically by CocoaPods
pod 'RBKmoneyPaymentsSDK', :path => './'
end
target 'RBKmoneyPaymentsSDK' do
pod 'RxSwift', '~> 6.0'
pod 'RxCocoa', '~> 6.0'
pod 'R.swift', '~> 5.0'
pod 'SwiftLint'
end
post_install do |installer|
project = installer.pods_project
targets = project.targets
puts 'Post install: setting FATAL_SYNCHRONIZATION flag for RxSwift'
rxswift_target = targets.find do |x|
x.name == "RxSwift"
end
debug_configuration = rxswift_target.build_configuration_list["Debug"]
flags = debug_configuration.build_settings.fetch("OTHER_SWIFT_FLAGS", ['$(inherited)'])
flags.push("-D", "FATAL_SYNCHRONIZATION")
debug_configuration.build_settings["OTHER_SWIFT_FLAGS"] = flags
puts 'Post install: removing XCode complaints about lower deployment target than it supports'
targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
project.save
end