Commit aaa5c3ea authored by Samuel Giddins's avatar Samuel Giddins

[ModuleMap] Dont specify private headers

parent f5a5ad7b
...@@ -10,17 +10,12 @@ module Pod ...@@ -10,17 +10,12 @@ module Pod
# #
attr_reader :target attr_reader :target
# @return [Array<#to_s>] the private headers of the module
#
attr_accessor :private_headers
# Initialize a new instance # Initialize a new instance
# #
# @param [PodTarget] target @see target # @param [PodTarget] target @see target
# #
def initialize(target) def initialize(target)
@target = target @target = target
@private_headers = []
end end
# Generates and saves the Info.plist to the given path. # Generates and saves the Info.plist to the given path.
...@@ -42,24 +37,14 @@ module Pod ...@@ -42,24 +37,14 @@ module Pod
# @return [String] # @return [String]
# #
def generate def generate
result = <<-eos.strip_heredoc <<-MODULE_MAP.strip_heredoc
framework module #{target.product_module_name} { framework module #{target.product_module_name} {
umbrella header "#{target.umbrella_header_path.basename}" umbrella header "#{target.umbrella_header_path.basename}"
export * export *
module * { export * } module * { export * }
eos }
MODULE_MAP
result << "\n#{generate_private_header_exports}" unless private_headers.empty?
result << "}\n"
end
private
def generate_private_header_exports
private_headers.reduce('') do |string, header|
string << %( private header "#{header}"\n)
end
end end
end end
end end
......
...@@ -22,9 +22,7 @@ module Pod ...@@ -22,9 +22,7 @@ module Pod
create_xcconfig_file create_xcconfig_file
if target.requires_frameworks? if target.requires_frameworks?
create_info_plist_file create_info_plist_file
create_module_map do |generator| create_module_map
generator.private_headers += target.file_accessors.flat_map(&:private_headers).map(&:basename)
end
create_umbrella_header do |generator| create_umbrella_header do |generator|
if header_mappings_dir if header_mappings_dir
generator.imports += target.file_accessors.flat_map(&:public_headers).map do |pathname| generator.imports += target.file_accessors.flat_map(&:public_headers).map do |pathname|
......
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