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
30d8b91e
Commit
30d8b91e
authored
Sep 11, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actually commit resolver.rb
parent
701db816
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
resolver.rb
lib/cocoa_pods/resolver.rb
+30
-0
No files found.
lib/cocoa_pods/resolver.rb
0 → 100644
View file @
30d8b91e
module
Pod
class
Resolver
def
initialize
(
specification
)
@specification
=
specification
end
def
resolve
@sets
=
[]
find_dependency_sets
(
@specification
)
specs
=
@sets
.
map
(
&
:podspec
)
p
specs
end
def
find_dependency_sets
(
specification
)
specification
.
read
(
:dependencies
).
each
do
|
dependency
|
Source
.
search
(
dependency
).
each
do
|
set
|
# TODO ultimately this compatibility check should be used to try and
# resolve the conflicts, but for now we'll keep it simple.
if
existing_set
=
@sets
.
find
{
|
s
|
s
==
set
}
existing_set
.
required_by
(
specification
,
dependency
)
else
set
.
required_by
(
specification
,
dependency
)
@sets
<<
set
find_dependency_sets
(
set
.
podspec
)
end
end
end
end
end
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