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
f5cd3f12
Commit
f5cd3f12
authored
Nov 17, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only embed declared public headers in the framework
As pointed out by @neonichu.
parent
b07945b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+3
-0
No files found.
lib/cocoapods/installer/target_installer/pod_target_installer.rb
View file @
f5cd3f12
...
@@ -49,6 +49,7 @@ module Pod
...
@@ -49,6 +49,7 @@ module Pod
consumer
=
file_accessor
.
spec_consumer
consumer
=
file_accessor
.
spec_consumer
headers
=
file_accessor
.
headers
headers
=
file_accessor
.
headers
public_headers
=
file_accessor
.
public_headers
other_source_files
=
file_accessor
.
source_files
.
select
{
|
sf
|
sf
.
extname
==
'.d'
}
other_source_files
=
file_accessor
.
source_files
.
select
{
|
sf
|
sf
.
extname
==
'.d'
}
{
{
...
@@ -65,10 +66,12 @@ module Pod
...
@@ -65,10 +66,12 @@ module Pod
native_target
.
add_file_references
(
header_file_refs
)
do
|
build_file
|
native_target
.
add_file_references
(
header_file_refs
)
do
|
build_file
|
# Set added headers as public if needed
# Set added headers as public if needed
if
target
.
requires_framework?
if
target
.
requires_framework?
if
public_headers
.
include?
(
build_file
.
file_ref
.
real_path
)
build_file
.
settings
||=
{}
build_file
.
settings
||=
{}
build_file
.
settings
[
'ATTRIBUTES'
]
=
[
'Public'
]
build_file
.
settings
[
'ATTRIBUTES'
]
=
[
'Public'
]
end
end
end
end
end
other_file_refs
=
other_source_files
.
map
{
|
sf
|
project
.
reference_for_path
(
sf
)
}
other_file_refs
=
other_source_files
.
map
{
|
sf
|
project
.
reference_for_path
(
sf
)
}
native_target
.
add_file_references
(
other_file_refs
,
nil
)
native_target
.
add_file_references
(
other_file_refs
,
nil
)
...
...
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