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
7c344bdd
Commit
7c344bdd
authored
Sep 28, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Refactor] Extract #generate_target from Analyzer#generate_targets
parent
ef070a7f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+19
-4
No files found.
lib/cocoapods/installer/analyzer.rb
View file @
7c344bdd
...
...
@@ -180,9 +180,24 @@ module Pod
def
generate_targets
targets
=
[]
result
.
specs_by_target
.
each
do
|
target_definition
,
specs
|
# Setup the aggregate target
targets
<<
generate_target
(
target_definition
,
specs
)
end
targets
end
# Setup the aggregate target for a single user target
#
# @param [TargetDefinition] target_definition
# the target definition for the user target.
#
# @param [Array<Specification>] specs
# the specifications that need to be installed grouped by the
# given target definition.
#
# @return [AggregateTarget]
#
def
generate_target
(
target_definition
,
specs
)
target
=
AggregateTarget
.
new
(
target_definition
,
sandbox
)
targets
<<
target
if
config
.
integrate_targets?
project_path
=
compute_user_project_path
(
target_definition
)
...
...
@@ -224,8 +239,8 @@ module Pod
end
target
.
pod_targets
<<
pod_target
end
end
target
s
target
end
# Generates dependencies that require the specific version of the Pods
...
...
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