-
Notifications
You must be signed in to change notification settings - Fork 7
/
Podfile
47 lines (35 loc) · 938 Bytes
/
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
source 'https://github.com/CocoaPods/Specs.git'
iOS_version = '12.0'
platform :ios, iOS_version
inhibit_all_warnings!
use_frameworks!
workspace 'Marvel.xcworkspace'
## Scripts
def scripts
script_phase :name => 'GitHooks', :script => "$SRCROOT/Settings/GitHooks/install.sh"
script_phase :name => 'SwiftLint', :script => "$SRCROOT/Settings/SwiftLint/lint.sh"
script_phase :name => 'SwiftGen', :script => "$SRCROOT/Settings/SwiftGen/generate.sh"
end
## Pods
def toolsPods
pod 'SwiftLint'
pod 'SwiftGen'
pod 'SwiftFormat/CLI'
end
## Application
target 'Marvel' do
project 'Marvel.project'
toolsPods
scripts
target 'MarvelTests' do
inherit! :search_paths
end
end
## Post Install
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = iOS_version
end
end
end