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
405a41d7
Commit
405a41d7
authored
Jun 25, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LocalPod] Store the platform.
The specification class only stores the active platform symbol.
parent
5334e67b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
local_pod.rb
lib/cocoapods/local_pod.rb
+5
-7
No files found.
lib/cocoapods/local_pod.rb
View file @
405a41d7
...
@@ -34,6 +34,10 @@ module Pod
...
@@ -34,6 +34,10 @@ module Pod
#
#
attr_reader
:sandbox
attr_reader
:sandbox
# @return [Platform] The platform that will be used to build the pod.
#
attr_reader
:platform
# @param [Specification] specification
# @param [Specification] specification
# The first activated specification of the pod.
# The first activated specification of the pod.
# @param [Sandbox] sandbox
# @param [Sandbox] sandbox
...
@@ -46,7 +50,7 @@ module Pod
...
@@ -46,7 +50,7 @@ module Pod
# computed values. In other words, it should be immutable.
# computed values. In other words, it should be immutable.
#
#
def
initialize
(
specification
,
sandbox
,
platform
)
def
initialize
(
specification
,
sandbox
,
platform
)
@top_specification
,
@sandbox
=
specification
.
top_level_parent
,
sandbox
@top_specification
,
@sandbox
,
@platform
=
specification
.
top_level_parent
,
sandbox
,
platform
@top_specification
.
activate_platform
(
platform
)
@top_specification
.
activate_platform
(
platform
)
@specifications
=
[]
<<
specification
@specifications
=
[]
<<
specification
end
end
...
@@ -96,12 +100,6 @@ module Pod
...
@@ -96,12 +100,6 @@ module Pod
top_specification
.
name
top_specification
.
name
end
end
# @return [Platform] The platform that will be used to build the pod.
#
def
platform
top_specification
.
active_platform
end
# @!group Installation
# @!group Installation
# Creates the root path of the pod.
# Creates the root path of the pod.
...
...
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