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
a1717fb1
Commit
a1717fb1
authored
Apr 27, 2012
by
Francis Chong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the generated dummy file under "Target Support Files/Pods"
parent
bc9ee744
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
target_installer.rb
lib/cocoapods/installer/target_installer.rb
+8
-3
No files found.
lib/cocoapods/installer/target_installer.rb
View file @
a1717fb1
...
@@ -53,7 +53,7 @@ module Pod
...
@@ -53,7 +53,7 @@ module Pod
end
end
def
target_support_files
def
target_support_files
[
:copy_resources_script_name
,
:prefix_header_name
,
:xcconfig_name
].
map
{
|
file
|
@target_definition
.
send
(
file
)
}
[
:copy_resources_script_name
,
:prefix_header_name
,
:xcconfig_name
,
:dummy_source_name
].
map
{
|
file
|
@target_definition
.
send
(
file
)
}
end
end
# TODO move xcconfig related code into the xcconfig method, like copy_resources_script and generate_bridge_support.
# TODO move xcconfig related code into the xcconfig method, like copy_resources_script and generate_bridge_support.
...
@@ -79,7 +79,7 @@ module Pod
...
@@ -79,7 +79,7 @@ module Pod
xcconfig_file
=
support_files_group
.
files
.
where
(
:path
=>
@target_definition
.
xcconfig_name
)
xcconfig_file
=
support_files_group
.
files
.
where
(
:path
=>
@target_definition
.
xcconfig_name
)
configure_build_configurations
(
xcconfig_file
)
configure_build_configurations
(
xcconfig_file
)
create_files
(
pods
,
sandbox
)
create_files
(
pods
,
sandbox
)
@target
.
add_source_file
(
Pathname
.
new
(
@target_definition
.
dummy_source_name
)
)
add_dummy_file
(
support_files_group
)
end
end
def
configure_build_configurations
(
xcconfig_file
)
def
configure_build_configurations
(
xcconfig_file
)
...
@@ -91,6 +91,11 @@ module Pod
...
@@ -91,6 +91,11 @@ module Pod
end
end
end
end
def
add_dummy_file
(
support_files_group
)
dummy
=
Pathname
.
new
(
@target_definition
.
dummy_source_name
)
@target
.
add_source_file
(
dummy
)
end
def
create_files
(
pods
,
sandbox
)
def
create_files
(
pods
,
sandbox
)
if
@podfile
.
generate_bridge_support?
if
@podfile
.
generate_bridge_support?
bridge_support_metadata_path
=
sandbox
.
root
+
@target_definition
.
bridge_support_name
bridge_support_metadata_path
=
sandbox
.
root
+
@target_definition
.
bridge_support_name
...
@@ -105,7 +110,7 @@ module Pod
...
@@ -105,7 +110,7 @@ module Pod
puts
"* Generating copy resources script at `
#{
sandbox
.
root
+
@target_definition
.
copy_resources_script_name
}
'"
if
config
.
verbose?
puts
"* Generating copy resources script at `
#{
sandbox
.
root
+
@target_definition
.
copy_resources_script_name
}
'"
if
config
.
verbose?
copy_resources_script_for
(
pods
).
save_as
(
sandbox
.
root
+
@target_definition
.
copy_resources_script_name
)
copy_resources_script_for
(
pods
).
save_as
(
sandbox
.
root
+
@target_definition
.
copy_resources_script_name
)
puts
"* Generating dummy source at `
#{
sandbox
.
root
+
@target_definition
.
dummy_source_name
}
'"
if
config
.
verbose?
puts
"* Generating dummy source at `
#{
sandbox
.
root
+
@target_definition
.
dummy_source_name
}
'"
if
config
.
verbose?
Generator
::
DummySource
.
new
(
@target_definition
.
label
).
save_as
(
Pathname
.
new
(
sandbox
.
root
+
@target_definition
.
dummy_source_name
)
)
Generator
::
DummySource
.
new
(
@target_definition
.
label
).
save_as
(
sandbox
.
root
+
@target_definition
.
dummy_source_name
)
end
end
private
private
...
...
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