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
951905b8
Commit
951905b8
authored
Sep 01, 2017
by
Dimitris Koutsogiorgas
Committed by
GitHub
Sep 01, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6997 from paulb777/fix-xcconfig-boolean-merging
Fix xcconfig boolean merging
parents
89d2091d
82da9411
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
CHANGELOG.md
CHANGELOG.md
+3
-0
aggregate_xcconfig.rb
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
+1
-1
aggregate_xcconfig_spec.rb
spec/unit/generator/xcconfig/aggregate_xcconfig_spec.rb
+7
-0
No files found.
CHANGELOG.md
View file @
951905b8
...
...
@@ -38,6 +38,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Danielle Tomlinson
](
https://github.com/dantoml
)
[
#6971
](
https://github.com/CocoaPods/CocoaPods/issue/6971
)
*
Fix xcconfig boolean merging when substrings include yes or no
[
Paul Beusterien
](
https://github.com/paulb777
)
[
#6997
](
https://github.com/CocoaPods/CocoaPods/pull/6997
)
## 1.3.1 (2017-08-02)
...
...
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
View file @
951905b8
...
...
@@ -218,7 +218,7 @@ module Pod
settings
=
user_target_xcconfig_values_by_consumer_by_key
settings
.
each_with_object
({})
do
|
(
key
,
values_by_consumer
),
xcconfig
|
uniq_values
=
values_by_consumer
.
values
.
uniq
values_are_bools
=
uniq_values
.
all?
{
|
v
|
v
=~
/
(yes|no)
/i
}
values_are_bools
=
uniq_values
.
all?
{
|
v
|
v
=~
/
^(yes|no)$
/i
}
if
values_are_bools
# Boolean build settings
if
uniq_values
.
count
>
1
...
...
spec/unit/generator/xcconfig/aggregate_xcconfig_spec.rb
View file @
951905b8
...
...
@@ -412,6 +412,13 @@ module Pod
'["BananaLib", "OrangeFramework"]. Boolean build setting '
\
'ENABLE_HEADER_DEPENDENCIES has different values.'
end
it
'make sure "no" or "yes" substring doesnt get treated as boolean'
do
@consumer_a
.
stubs
(
:user_target_xcconfig
).
returns
(
'GCC_PREPROCESSOR_DEFINITIONS'
=>
'-DNOWAY'
)
@consumer_b
.
stubs
(
:user_target_xcconfig
).
returns
(
'GCC_PREPROCESSOR_DEFINITIONS'
=>
'-DYESWAY'
)
@xcconfig
=
@generator
.
generate
@xcconfig
.
to_hash
[
'GCC_PREPROCESSOR_DEFINITIONS'
].
should
==
'$(inherited) COCOAPODS=1 -DNOWAY -DYESWAY'
end
end
describe
'with list build settings'
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