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
ed3d3e78
Commit
ed3d3e78
authored
May 10, 2015
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Refactor] Move AnalysisResult into an own file
parent
6bd6e636
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
41 deletions
+44
-41
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+2
-41
analysis_result.rb
lib/cocoapods/installer/analyzer/analysis_result.rb
+42
-0
No files found.
lib/cocoapods/installer/analyzer.rb
View file @
ed3d3e78
...
@@ -6,8 +6,8 @@ module Pod
...
@@ -6,8 +6,8 @@ module Pod
class
Analyzer
class
Analyzer
include
Config
::
Mixin
include
Config
::
Mixin
autoload
:
SandboxAnalyzer
,
'cocoapods/installer/analyzer/sandbox_analyzer
'
autoload
:
AnalysisResult
,
'cocoapods/installer/analyzer/analysis_result
'
autoload
:SandboxAnalyzer
,
'cocoapods/installer/analyzer/sandbox_analyzer'
autoload
:LockingDependencyAnalyzer
,
'cocoapods/installer/analyzer/locking_dependency_analyzer'
autoload
:LockingDependencyAnalyzer
,
'cocoapods/installer/analyzer/locking_dependency_analyzer'
# @return [Sandbox] The sandbox where the Pods should be installed.
# @return [Sandbox] The sandbox where the Pods should be installed.
...
@@ -770,45 +770,6 @@ module Pod
...
@@ -770,45 +770,6 @@ module Pod
#-----------------------------------------------------------------------#
#-----------------------------------------------------------------------#
class
AnalysisResult
# @return [SpecsState] the states of the Podfile specs.
#
attr_accessor
:podfile_state
# @return [Hash{TargetDefinition => Array<Spec>}] the specifications
# grouped by target.
#
attr_accessor
:specs_by_target
# @return [Array<Specification>] the specifications of the resolved
# version of Pods that should be installed.
#
attr_accessor
:specifications
# @return [SpecsState] the states of the {Sandbox} respect the resolved
# specifications.
#
attr_accessor
:sandbox_state
# @return [Array<Target>] The Podfile targets containing library
# dependencies.
#
attr_accessor
:targets
# @return [Hash{String=>Symbol}] A hash representing all the user build
# configurations across all integration targets. Each key
# corresponds to the name of a configuration and its value to
# its type (`:debug` or `:release`).
#
def
all_user_build_configurations
targets
.
reduce
({})
do
|
result
,
target
|
result
.
merge
(
target
.
user_build_configurations
)
end
end
end
#-----------------------------------------------------------------------#
# This class represents the state of a collection of Pods.
# This class represents the state of a collection of Pods.
#
#
# @note The names of the pods stored by this class are always the **root**
# @note The names of the pods stored by this class are always the **root**
...
...
lib/cocoapods/installer/analyzer/analysis_result.rb
0 → 100644
View file @
ed3d3e78
module
Pod
class
Installer
class
Analyzer
class
AnalysisResult
# @return [SpecsState] the states of the Podfile specs.
#
attr_accessor
:podfile_state
# @return [Hash{TargetDefinition => Array<Spec>}] the specifications
# grouped by target.
#
attr_accessor
:specs_by_target
# @return [Array<Specification>] the specifications of the resolved
# version of Pods that should be installed.
#
attr_accessor
:specifications
# @return [SpecsState] the states of the {Sandbox} respect the resolved
# specifications.
#
attr_accessor
:sandbox_state
# @return [Array<Target>] The Podfile targets containing library
# dependencies.
#
attr_accessor
:targets
# @return [Hash{String=>Symbol}] A hash representing all the user build
# configurations across all integration targets. Each key
# corresponds to the name of a configuration and its value to
# its type (`:debug` or `:release`).
#
def
all_user_build_configurations
targets
.
reduce
({})
do
|
result
,
target
|
result
.
merge
(
target
.
user_build_configurations
)
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