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
1697d901
Commit
1697d901
authored
Sep 06, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TargetInstaller] Cleanup
parent
78c006a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
23 deletions
+22
-23
target_installer.rb
...pods/installer/pods_project_generator/target_installer.rb
+2
-2
aggregate_target_installer.rb
..._generator/target_installer/aggregate_target_installer.rb
+11
-11
pod_target_installer.rb
...roject_generator/target_installer/pod_target_installer.rb
+9
-10
No files found.
lib/cocoapods/installer/pods_project_generator/target_installer.rb
View file @
1697d901
...
...
@@ -74,8 +74,8 @@ module Pod
# @return [void]
#
def
create_dummy_source
path
=
target
.
dummy_source_path
UI
.
message
"- Generating dummy source file at
#{
UI
.
path
(
path
)
}
"
do
UI
.
message
"- Generating dummy source file"
do
path
=
target
.
dummy_source_path
generator
=
Generator
::
DummySource
.
new
(
target
.
label
)
generator
.
save_as
(
path
)
file_reference
=
add_file_to_support_group
(
path
)
...
...
lib/cocoapods/installer/pods_project_generator/target_installer/aggregate_target_installer.rb
View file @
1697d901
...
...
@@ -33,8 +33,8 @@ module Pod
# @return [void]
#
def
create_xcconfig_file
path
=
target
.
xcconfig_path
UI
.
message
"- Generating xcconfig file at
#{
UI
.
path
(
path
)
}
"
do
UI
.
message
"- Generating xcconfig file"
do
path
=
target
.
xcconfig_path
gen
=
Generator
::
XCConfig
::
AggregateXCConfig
.
new
(
target
)
gen
.
save_as
(
path
)
target
.
xcconfig
=
gen
.
xcconfig
...
...
@@ -50,8 +50,8 @@ module Pod
# pods and the installed specifications of a pod.
#
def
create_target_environment_header
path
=
target
.
target_environment_header_path
UI
.
message
"- Generating target environment header at
#{
UI
.
path
(
path
)
}
"
do
UI
.
message
"- Generating target environment header"
do
path
=
target
.
target_environment_header_path
generator
=
Generator
::
TargetEnvironmentHeader
.
new
(
target
.
pod_targets
.
map
{
|
l
|
l
.
specs
}.
flatten
)
generator
.
save_as
(
path
)
add_file_to_support_group
(
path
)
...
...
@@ -68,8 +68,8 @@ module Pod
#
def
create_bridge_support_file
if
target_definition
.
podfile
.
generate_bridge_support?
path
=
target
.
bridge_support_path
UI
.
message
"- Generating BridgeSupport metadata at
#{
UI
.
path
(
path
)
}
"
do
UI
.
message
"- Generating BridgeSupport metadata"
do
path
=
target
.
bridge_support_path
headers
=
target
.
target
.
headers_build_phase
.
files
.
map
{
|
bf
|
sandbox
.
root
+
bf
.
file_ref
.
path
}
generator
=
Generator
::
BridgeSupport
.
new
(
headers
)
generator
.
save_as
(
path
)
...
...
@@ -88,8 +88,8 @@ module Pod
# @return [void]
#
def
create_copy_resources_script
path
=
target
.
copy_resources_script_path
UI
.
message
"- Generating copy resources script at
#{
UI
.
path
(
path
)
}
"
do
UI
.
message
"- Generating copy resources script"
do
path
=
target
.
copy_resources_script_path
file_accessors
=
target
.
pod_targets
.
map
(
&
:file_accessors
).
flatten
resource_paths
=
file_accessors
.
map
{
|
accessor
|
accessor
.
resources
.
flatten
.
map
{
|
res
|
res
.
relative_path_from
(
project
.
path
.
dirname
)
}}.
flatten
resource_bundles
=
file_accessors
.
map
{
|
accessor
|
accessor
.
resource_bundles
.
keys
.
map
{
|
name
|
"${BUILT_PRODUCTS_DIR}/
#{
name
}
.bundle"
}
}.
flatten
...
...
@@ -108,10 +108,10 @@ module Pod
# @return [void]
#
def
create_acknowledgements
basepath
=
target
.
acknowledgements_basepath
Generator
::
Acknowledgements
.
generators
.
each
do
|
generator_class
|
path
=
generator_class
.
path_from_basepath
(
basepath
)
UI
.
message
"- Generating acknowledgements at
#{
UI
.
path
(
path
)
}
"
do
UI
.
message
"- Generating acknowledgements"
do
basepath
=
target
.
acknowledgements_basepath
path
=
generator_class
.
path_from_basepath
(
basepath
)
file_accessors
=
target
.
pod_targets
.
map
(
&
:file_accessors
).
flatten
generator
=
generator_class
.
new
(
file_accessors
)
generator
.
save_as
(
path
)
...
...
lib/cocoapods/installer/pods_project_generator/target_installer/pod_target_installer.rb
View file @
1697d901
...
...
@@ -38,14 +38,13 @@ module Pod
# @return [void]
#
def
add_files_to_build_phases
UI
.
message
"- Adding
B
uild files"
do
UI
.
message
"- Adding
b
uild files"
do
target
.
file_accessors
.
each
do
|
file_accessor
|
consumer
=
file_accessor
.
spec_consumer
flags
=
compiler_flags_for_consumer
(
consumer
)
source_files
=
file_accessor
.
source_files
file_refs
=
source_files
.
map
{
|
sf
|
project
.
reference_for_path
(
sf
)
}
target
.
target
.
add_file_references
(
file_refs
,
flags
)
end
end
end
...
...
@@ -64,7 +63,7 @@ module Pod
# @return [void]
#
def
add_resources_bundle_targets
UI
.
message
"- Adding resource bundles
to Pods project
"
do
UI
.
message
"- Adding resource bundles"
do
target
.
file_accessors
.
each
do
|
file_accessor
|
file_accessor
.
resource_bundles
.
each
do
|
bundle_name
,
paths
|
file_references
=
paths
.
map
{
|
sf
|
project
.
reference_for_path
(
sf
)
}
...
...
@@ -88,9 +87,9 @@ module Pod
# @return [void]
#
def
create_xcconfig_file
path
=
target
.
xcconfig_path
public_gen
=
Generator
::
XCConfig
::
PublicPodXCConfig
.
new
(
target
)
UI
.
message
"- Generating public xcconfig file at
#{
UI
.
path
(
path
)
}
"
do
UI
.
message
"- Generating public xcconfig file"
do
path
=
target
.
xcconfig_path
public_gen
.
save_as
(
path
)
#
# TODO
...
...
@@ -100,9 +99,9 @@ module Pod
# group.new_file(relative_path)
end
path
=
target
.
xcconfig_private_path
private_gen
=
Generator
::
XCConfig
::
PrivatePodXCConfig
.
new
(
target
,
public_gen
.
xcconfig
)
UI
.
message
"- Generating private xcconfig file at
#{
UI
.
path
(
path
)
}
"
do
UI
.
message
"- Generating private xcconfig file"
do
path
=
target
.
xcconfig_private_path
private_gen
=
Generator
::
XCConfig
::
PrivatePodXCConfig
.
new
(
target
,
public_gen
.
xcconfig
)
private_gen
.
save_as
(
path
)
xcconfig_file_ref
=
add_file_to_support_group
(
path
)
...
...
@@ -119,8 +118,8 @@ module Pod
# @return [void]
#
def
create_prefix_header
path
=
target
.
prefix_header_path
UI
.
message
"- Generating prefix header at
#{
UI
.
path
(
path
)
}
"
do
UI
.
message
"- Generating prefix header"
do
path
=
target
.
prefix_header_path
generator
=
Generator
::
PrefixHeader
.
new
(
target
.
file_accessors
,
target
.
platform
)
generator
.
imports
<<
target
.
target_environment_header_path
.
basename
generator
.
save_as
(
path
)
...
...
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