Commit 71fc2bbf authored by Eloy Duran's avatar Eloy Duran

Small cleanup

parent b27e1d2c
dependency 'SSZipArchive', '>= 1' dependency 'SSZipArchive', '>= 1'
dependency 'ASIHTTPRequest', '1.8' #dependency 'ASIHTTPRequest', '1.8'
#dependency 'ASIWebPageRequest', '= 1.8' #dependency 'ASIWebPageRequest', '= 1.8'
# is part of ASIHTTPRequest 1.8 and 1.8.1 # is part of ASIHTTPRequest 1.8 and 1.8.1
......
...@@ -44,33 +44,17 @@ module Pod ...@@ -44,33 +44,17 @@ module Pod
@xcodeproj ||= Xcode::Project.ios_static_library @xcodeproj ||= Xcode::Project.ios_static_library
end end
def install!
unless config.silent?
puts "Installing dependencies defined in: #{@specification.defined_in_file}"
end
install_dependent_specifications!
generate_project
write_files!
end
def install_dependent_specifications!
dependent_specification_sets.each do |set|
# In case the set is only part of other pods we don't need to install
# the pod itself.
next if set.only_part_of_other_pod?
set.specification.install!
end
end
def generate_project def generate_project
puts "==> Creating Pods project files" unless config.silent?
source_files.each { |file| xcodeproj.add_source_file(file) } source_files.each { |file| xcodeproj.add_source_file(file) }
build_specification_sets.each do |set| build_specification_sets.each do |set|
xcconfig << set.specification.read(:xcconfig) xcconfig << set.specification.read(:xcconfig)
end end
end end
def write_files! def install!
puts "Installing dependencies of: #{@specification.defined_in_file}" unless config.silent?
generate_project
build_specification_sets.each { |set| set.specification.install! }
xcodeproj.create_in(config.project_pods_root) xcodeproj.create_in(config.project_pods_root)
xcconfig.create_in(config.project_pods_root) xcconfig.create_in(config.project_pods_root)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment