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
8ed133c5
Commit
8ed133c5
authored
Feb 14, 2015
by
Samuel E. Giddins
Committed by
Marius Rackwitz
Apr 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodTargetInstaller] Properly set the attributes of private and project headers
parent
c7275414
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+6
-1
file_accessor.rb
lib/cocoapods/sandbox/file_accessor.rb
+6
-0
No files found.
lib/cocoapods/installer/target_installer/pod_target_installer.rb
View file @
8ed133c5
...
...
@@ -50,6 +50,7 @@ module Pod
headers
=
file_accessor
.
headers
public_headers
=
file_accessor
.
public_headers
private_headers
=
file_accessor
.
private_headers
other_source_files
=
file_accessor
.
source_files
.
select
{
|
sf
|
sf
.
extname
==
'.d'
}
{
...
...
@@ -66,9 +67,13 @@ module Pod
native_target
.
add_file_references
(
header_file_refs
)
do
|
build_file
|
# Set added headers as public if needed
if
target
.
requires_frameworks?
if
public_headers
.
include?
(
build_file
.
file_ref
.
real_path
)
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
end
...
...
lib/cocoapods/sandbox/file_accessor.rb
View file @
8ed133c5
...
...
@@ -124,6 +124,12 @@ module Pod
header_files
-
private_headers
end
# @return [Array<Pathname>] The private headers of the specification.
#
def
private_headers
private_header_files
end
# @return [Hash{ Symbol => Array<Pathname> }] the resources of the
# specification grouped by destination.
#
...
...
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