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
8b5c0110
Commit
8b5c0110
authored
May 09, 2015
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[UmbrellaHeader] Access platform directly over the target
parent
8200fdc8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
umbrella_header.rb
lib/cocoapods/generator/umbrella_header.rb
+1
-1
target.rb
lib/cocoapods/target.rb
+0
-6
aggregate_target.rb
lib/cocoapods/target/aggregate_target.rb
+6
-0
pod_target.rb
lib/cocoapods/target/pod_target.rb
+6
-0
No files found.
lib/cocoapods/generator/umbrella_header.rb
View file @
8b5c0110
...
@@ -18,7 +18,7 @@ module Pod
...
@@ -18,7 +18,7 @@ module Pod
# @see target
# @see target
#
#
def
initialize
(
target
)
def
initialize
(
target
)
super
(
target
.
target_definition
.
platform
)
super
(
target
.
platform
)
@target
=
target
@target
=
target
end
end
...
...
lib/cocoapods/target.rb
View file @
8b5c0110
...
@@ -110,12 +110,6 @@ module Pod
...
@@ -110,12 +110,6 @@ module Pod
#
#
attr_accessor
:native_target
attr_accessor
:native_target
# @return [Platform] the platform for this library.
#
def
platform
@platform
||=
target_definition
.
platform
end
# @return [String] The value for the ARCHS build setting.
# @return [String] The value for the ARCHS build setting.
#
#
attr_accessor
:archs
attr_accessor
:archs
...
...
lib/cocoapods/target/aggregate_target.rb
View file @
8b5c0110
...
@@ -30,6 +30,12 @@ module Pod
...
@@ -30,6 +30,12 @@ module Pod
c99ext_identifier
(
label
)
c99ext_identifier
(
label
)
end
end
# @return [Platform] the platform for this target.
#
def
platform
@platform
||=
target_definition
.
platform
end
# @return [Podfile] The podfile which declares the dependency
# @return [Podfile] The podfile which declares the dependency
#
#
def
podfile
def
podfile
...
...
lib/cocoapods/target/pod_target.rb
View file @
8b5c0110
...
@@ -48,6 +48,12 @@ module Pod
...
@@ -48,6 +48,12 @@ module Pod
end
end
end
end
# @return [Platform] the platform for this target.
#
def
platform
@platform
||=
target_definitions
.
first
.
platform
end
# @return [Podfile] The podfile which declares the dependency.
# @return [Podfile] The podfile which declares the dependency.
#
#
def
podfile
def
podfile
...
...
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