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
a2f4b5f8
Commit
a2f4b5f8
authored
Oct 08, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodTargetInstaller] Hot fix for resources bundles
parent
50925405
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+0
-7
pod_target_installer_spec.rb
...t/installer/target_installer/pod_target_installer_spec.rb
+5
-3
No files found.
lib/cocoapods/installer/target_installer/pod_target_installer.rb
View file @
a2f4b5f8
...
...
@@ -42,7 +42,6 @@ module Pod
source_files
=
file_accessor
.
source_files
file_refs
=
source_files
.
map
{
|
sf
|
project
.
reference_for_path
(
sf
)
}
target
.
add_file_references
(
file_refs
,
flags
)
end
end
end
...
...
@@ -64,7 +63,6 @@ module Pod
next
end
file_references
=
paths
.
map
{
|
sf
|
project
.
reference_for_path
(
sf
)
}
group
=
project
.
group_for_spec
(
file_accessor
.
spec
.
name
,
:products
)
bundle_target
=
project
.
new_resources_bundle
(
bundle_name
,
file_accessor
.
spec_consumer
.
platform_name
)
bundle_target
.
add_resources
(
file_references
)
...
...
@@ -87,12 +85,7 @@ module Pod
public_gen
=
Generator
::
XCConfig
::
PublicPodXCConfig
.
new
(
library
)
UI
.
message
"- Generating public xcconfig file at
#{
UI
.
path
(
path
)
}
"
do
public_gen
.
save_as
(
path
)
#
# TODO
add_file_to_support_group
(
path
)
# relative_path = path.relative_path_from(sandbox.root)
# group = project.group_for_spec(library.root_spec.name, :support_files)
# group.new_file(relative_path)
end
path
=
library
.
xcconfig_private_path
...
...
spec/unit/installer/target_installer/pod_target_installer_spec.rb
View file @
a2f4b5f8
...
...
@@ -47,7 +47,7 @@ module Pod
it
'adds the target for the static library to the project'
do
@installer
.
install!
@project
.
targets
.
count
.
should
==
1
@project
.
targets
.
first
.
name
.
should
==
'Pods-BananaLib'
@project
.
targets
.
first
.
name
.
should
==
'Pods-BananaLib'
end
it
"sets VALIDATE_PRODUCT to YES for the Release configuration for iOS targets"
do
...
...
@@ -102,8 +102,10 @@ module Pod
#--------------------------------------#
xit
'adds the resource bundle targets'
do
it
'adds the resource bundle targets'
do
@pod_target
.
file_accessors
.
first
.
stubs
(
:resource_bundles
).
returns
({
'banana_bundle'
=>
[]})
@installer
.
install!
@project
.
targets
.
map
(
&
:name
).
should
==
[
"Pods-BananaLib"
,
"banana_bundle"
]
end
xit
'adds the build configurations to the resources bundle targets'
do
...
...
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