Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
71fc2bbf
Commit
71fc2bbf
authored
Sep 16, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small cleanup
parent
b27e1d2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
21 deletions
+5
-21
Podfile
examples/Podfile
+1
-1
installer.rb
lib/cocoa_pods/installer.rb
+4
-20
No files found.
examples/Podfile
View file @
71fc2bbf
dependency
'SSZipArchive'
,
'>= 1'
dependency
'ASIHTTPRequest'
,
'1.8'
#
dependency 'ASIHTTPRequest', '1.8'
#dependency 'ASIWebPageRequest', '= 1.8'
# is part of ASIHTTPRequest 1.8 and 1.8.1
...
...
lib/cocoa_pods/installer.rb
View file @
71fc2bbf
...
...
@@ -44,33 +44,17 @@ module Pod
@xcodeproj
||=
Xcode
::
Project
.
ios_static_library
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
puts
"==> Creating Pods project files"
unless
config
.
silent?
source_files
.
each
{
|
file
|
xcodeproj
.
add_source_file
(
file
)
}
build_specification_sets
.
each
do
|
set
|
xcconfig
<<
set
.
specification
.
read
(
:xcconfig
)
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
)
xcconfig
.
create_in
(
config
.
project_pods_root
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment