-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPodfile
51 lines (44 loc) · 1.12 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
platform :ios, '11.0'
inhibit_all_warnings!
def di_pods
pod 'Swinject', '~> 2.1.1'
pod 'SwinjectAutoregistration', '~> 2.1.1'
end
def helper_pods
pod 'PromiseKit', '~> 4.5.0'
pod 'SwiftLint', '~> 0.27'
end
def test_pods
pod 'Nimble-Snapshots', :git => 'https://github.com/ashfurrow/Nimble-Snapshots.git', :branch => 'master'
pod 'Nimble', '~> 7.3.1'
pod 'Quick', '~> 1.3.2'
end
def ui_pods
pod 'IHKeyboardAvoiding', '~> 4.1'
pod 'Pastel', '~> 0.4'
pod 'Reveal-SDK', :configurations => ['Debug']
pod 'SnapKit', '~> 4.0.0'
end
target 'CCNumberValidator' do
use_frameworks!
di_pods
helper_pods
ui_pods
target 'CCNumberValidatorTests' do
inherit! :search_paths
test_pods
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
case target.name
when 'IHKeyboardAvoiding', 'PromiseKit', 'SnapKit', 'Pastel'
swift_version = '4.0'
else
swift_version = '4.2'
end
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = swift_version
end
end
end