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
0ec2185c
Commit
0ec2185c
authored
May 11, 2018
by
Takeru Chuganji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Calculate relative path if header_dir is specified
parent
a72ce8bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
pod_target_installer.rb
...ller/xcode/pods_project_generator/pod_target_installer.rb
+16
-6
No files found.
lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb
View file @
0ec2185c
...
...
@@ -58,13 +58,23 @@ module Pod
generator
.
headers
.
concat
module_map_additional_headers
end
create_umbrella_header
(
native_target
)
do
|
generator
|
generator
.
imports
+=
if
header_mappings_dir
file_accessors
.
flat_map
(
&
:public_headers
).
map
do
|
pathname
|
pathname
.
relative_path_from
(
header_mappings_dir
)
end
else
file_accessors
.
flat_map
(
&
:public_headers
).
map
(
&
:basename
)
generator
.
imports
+=
file_accessors
.
flat_map
do
|
file_accessor
|
header_dir
=
if
!
target
.
requires_frameworks?
&&
dir
=
file_accessor
.
spec_consumer
.
header_dir
Pathname
.
new
(
dir
)
end
file_accessor
.
public_headers
.
map
do
|
public_header
|
public_header
=
if
header_mappings_dir
public_header
.
relative_path_from
(
header_mappings_dir
)
else
public_header
.
basename
end
if
header_dir
public_header
=
header_dir
.
join
(
public_header
)
end
public_header
end
end
end
end
...
...
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