Commit 07c804de authored by Samuel E. Giddins's avatar Samuel E. Giddins

[PodTargetInstaller] Mark all headers with availability levels

parent 5955c55f
......@@ -89,15 +89,13 @@ module Pod
header_file_refs = headers.map { |sf| project.reference_for_path(sf) }
native_target.add_file_references(header_file_refs) do |build_file|
# Set added headers as public if needed
if target.requires_frameworks?
build_file.settings ||= {}
if public_headers.include?(build_file.file_ref.real_path)
build_file.settings['ATTRIBUTES'] = ['Public']
elsif private_headers.include?(build_file.file_ref.real_path)
build_file.settings['ATTRIBUTES'] = ['Private']
else
build_file.settings['ATTRIBUTES'] = ['Project']
end
build_file.settings ||= {}
if public_headers.include?(build_file.file_ref.real_path)
build_file.settings['ATTRIBUTES'] = ['Public']
elsif private_headers.include?(build_file.file_ref.real_path)
build_file.settings['ATTRIBUTES'] = ['Private']
else
build_file.settings['ATTRIBUTES'] = ['Project']
end
end
......
Subproject commit 748ad0dac4f5660eba1d191efa89e0fc8d791b0e
Subproject commit b5177d3ef2ee0dcc7fdab26f7dcfb9486f2207f1
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