Commit 8b5c0110 authored by Marius Rackwitz's avatar Marius Rackwitz

[UmbrellaHeader] Access platform directly over the target

parent 8200fdc8
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment