-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPodfile
119 lines (99 loc) · 5.8 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
source "https://github.com/CocoaPods/Specs.git"
platform :ios, '11.0'
###
### --- CONFIG ---
# ███╗ ███╗ █████╗ ██╗███╗ ██╗ █████╗ ██████╗ ██████╗
# ████╗ ████║██╔══██╗██║████╗ ██║██╔══██╗██╔══██╗██╔══██╗
# ██╔████╔██║███████║██║██╔██╗ ██║███████║██████╔╝██████╔╝
# ██║╚██╔╝██║██╔══██║██║██║╚██╗██║██╔══██║██╔═══╝ ██╔═══╝
# ██║ ╚═╝ ██║██║ ██║██║██║ ╚████║██║ ██║██║ ██║
# ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝
###
#Use this variable to change pod install from local_pods, develop_pods, master_pods, feature_pods
pods_environment = "develop" # <- HERE: Change this line, options are: 'local', develop', 'master', 'feature' or 'release'
###
### --- METHODS ---
###
#Use this funcion to compile PRIVATE pods as development in local
def local_pods
color(32) { puts "Installing Local Pods..." }
pod 'BasicCommons', :path => '../BasicCommons/'
pod 'BasicUIElements', :path => '../BasicUIElements/'
pod 'CuotasModule', :path => '../CuotasModule/'
end
#Use this funcion to compile feature pods as development in featue
def feature_pods
### ONLY FOR DEVELOP PURPOSES ###
feature_branch = "master" # <- HERE: Change this line to setup ALL the pods repository from another branch WHEN pods_environment = "develop"
### ONLY FOR DEVELOP PURPOSES ###
color(32) { puts "Installing Develop Pods from branch: #{feature_branch}" }
pod 'BasicCommons', :git => '[email protected]:kevinOlivet/BasicCommons.git', :branch => "#{feature_branch}"
pod 'BasicUIElements', :git => '[email protected]:kevinOlivet/BasicUIElements.git', :branch => "#{feature_branch}"
pod 'CuotasModule', :git => '[email protected]:kevinOlivet/CuotasModule.git', :branch => "#{feature_branch}"
end
#Use this funcion to compile develop pods as development in develop
def develop_pods
color(32) { puts "Installing Develop Pods..." }
pod 'BasicCommons', :git => '[email protected]:kevinOlivet/BasicCommons.git', :branch => 'develop'
pod 'BasicUIElements', :git => '[email protected]:kevinOlivet/BasicUIElements.git', :branch => 'develop'
pod 'CuotasModule', :git => '[email protected]:kevinOlivet/CuotasModule.git', :branch => 'develop'
end
#Use this funcion to compile master pods as development in master
def master_pods
color(32) { puts "Installing Develop Pods..." }
pod 'BasicCommons', :git => '[email protected]:kevinOlivet/BasicCommons.git', :branch => 'master'
pod 'BasicUIElements', :git => '[email protected]:kevinOlivet/BasicUIElements.git', :branch => 'master'
pod 'CuotasModule', :git => '[email protected]:kevinOlivet/CuotasModule.git', :branch => 'master'
end
## This should be changed on every release! Check the branch
def release_pods
pod 'BasicCommons', :git => '[email protected]:kevinOlivet/BasicCommons.git', :branch => 'master'
pod 'BasicUIElements', :git => '[email protected]:kevinOlivet/BasicUIElements.git', :branch => 'master'
pod 'CuotasModule', :git => '[email protected]:kevinOlivet/CuotasModule.git', :branch => 'master'
end
###
### --- Utils ---
###
###
#Load commons methods.
require "./configurations/Commons.rb"
#Load podfile extensions, for post-pre instalations, etc.
require "./configurations/Extensions.rb"
color(32) {
puts "--------------------------------------------------------------------------------"
puts ""
puts "███╗ ███╗ █████╗ ██╗███╗ ██╗ █████╗ ██████╗ ██████╗ "
puts "████╗ ████║██╔══██╗██║████╗ ██║██╔══██╗██╔══██╗██╔══██╗"
puts "██╔████╔██║███████║██║██╔██╗ ██║███████║██████╔╝██████╔╝"
puts "██║╚██╔╝██║██╔══██║██║██║╚██╗██║██╔══██║██╔═══╝ ██╔═══╝ "
puts "██║ ╚═╝ ██║██║ ██║██║██║ ╚████║██║ ██║██║ ██║ "
puts "╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝ "
puts ""
puts "--------------------------------------------------------------------------------"
puts " Executing Pod Install #{pods_environment} For BasicMainApp"
puts "--------------------------------------------------------------------------------"
puts ""
}
###
### --- PROCESSING ---
###
target 'BasicMainApp' do
color(32) { puts "\nFetching Modules Pods..." }
use_frameworks!
inhibit_all_warnings!
#MainApp Pods
pod_selector(pods_environment)
#Scripts
# script_phase :name => "Swiftlint",
# :script => "$SRCROOT/configurations/Build-Phases/swiftlint_personas.sh",
# :show_env_vars_in_log => true,
# :execution_position => :before_compile
end
# Workaround for Cocoapods issue #7606
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end
use_modular_headers!