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
7ee5b4b1
Commit
7ee5b4b1
authored
Apr 01, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Combine dependencies of all targets, regardless of platform.
parent
89265242
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
TODO
TODO
+5
-1
podfile.rb
lib/cocoapods/podfile.rb
+1
-1
podfile_spec.rb
spec/unit/podfile_spec.rb
+1
-1
No files found.
TODO
View file @
7ee5b4b1
* The user *has* to specify the platform of the project in the Podfile.
* Resolve all dependencies together and write out all dependencies to Podfile.lock together.
* Add integration spec with multiple platforms.
* Validate platforms for each target definition.
* Validate that there are dependencies in a Podfile.
* Validate that the dependencies in the targets don't conflict. E.g. two different versions of the same pod.
lib/cocoapods/podfile.rb
View file @
7ee5b4b1
...
@@ -305,7 +305,7 @@ module Pod
...
@@ -305,7 +305,7 @@ module Pod
attr_reader
:target_definitions
attr_reader
:target_definitions
def
dependencies
def
dependencies
@target_definitions
.
values
.
map
(
&
:target_dependencies
).
flatten
@target_definitions
.
values
.
map
(
&
:target_dependencies
).
flatten
.
uniq
end
end
def
dependency_by_top_level_spec_name
(
name
)
def
dependency_by_top_level_spec_name
(
name
)
...
...
spec/unit/podfile_spec.rb
View file @
7ee5b4b1
...
@@ -97,7 +97,7 @@ describe "Pod::Podfile" do
...
@@ -97,7 +97,7 @@ describe "Pod::Podfile" do
end
end
end
end
x
it
"returns all dependencies of all targets combined, which is used during resolving to ensure compatible dependencies"
do
it
"returns all dependencies of all targets combined, which is used during resolving to ensure compatible dependencies"
do
@podfile
.
dependencies
.
map
(
&
:name
).
sort
.
should
==
%w{ ASIHTTPRequest JSONKit Reachability SSZipArchive }
@podfile
.
dependencies
.
map
(
&
:name
).
sort
.
should
==
%w{ ASIHTTPRequest JSONKit Reachability SSZipArchive }
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