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
aaa5c3ea
Commit
aaa5c3ea
authored
Nov 03, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ModuleMap] Dont specify private headers
parent
f5a5ad7b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
21 deletions
+4
-21
module_map.rb
lib/cocoapods/generator/module_map.rb
+3
-18
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+1
-3
No files found.
lib/cocoapods/generator/module_map.rb
View file @
aaa5c3ea
...
...
@@ -10,17 +10,12 @@ module Pod
#
attr_reader
:target
# @return [Array<#to_s>] the private headers of the module
#
attr_accessor
:private_headers
# Initialize a new instance
#
# @param [PodTarget] target @see target
#
def
initialize
(
target
)
@target
=
target
@private_headers
=
[]
end
# Generates and saves the Info.plist to the given path.
...
...
@@ -42,24 +37,14 @@ module Pod
# @return [String]
#
def
generate
result
=
<<-
eos
.
strip_heredoc
<<-
MODULE_MAP
.
strip_heredoc
framework module
#{
target
.
product_module_name
}
{
umbrella header "
#{
target
.
umbrella_header_path
.
basename
}
"
export *
module * { export * }
eos
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
}
MODULE_MAP
end
end
end
...
...
lib/cocoapods/installer/target_installer/pod_target_installer.rb
View file @
aaa5c3ea
...
...
@@ -22,9 +22,7 @@ module Pod
create_xcconfig_file
if
target
.
requires_frameworks?
create_info_plist_file
create_module_map
do
|
generator
|
generator
.
private_headers
+=
target
.
file_accessors
.
flat_map
(
&
:private_headers
).
map
(
&
:basename
)
end
create_module_map
create_umbrella_header
do
|
generator
|
if
header_mappings_dir
generator
.
imports
+=
target
.
file_accessors
.
flat_map
(
&
:public_headers
).
map
do
|
pathname
|
...
...
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