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
# @see target
#
def initialize(target)
super(target.target_definition.platform)
super(target.platform)
@target = target
end
......
......@@ -110,12 +110,6 @@ module Pod
#
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.
#
attr_accessor :archs
......
......@@ -30,6 +30,12 @@ module Pod
c99ext_identifier(label)
end
# @return [Platform] the platform for this target.
#
def platform
@platform ||= target_definition.platform
end
# @return [Podfile] The podfile which declares the dependency
#
def podfile
......
......@@ -48,6 +48,12 @@ module Pod
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.
#
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