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
7e7c3d72
Commit
7e7c3d72
authored
Oct 25, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Installer] Add spec for setting APPLICATION_EXTENSION_API_ONLY when the user target has it set
parent
2dd621d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
installer_spec.rb
spec/unit/installer_spec.rb
+14
-0
No files found.
spec/unit/installer_spec.rb
View file @
7e7c3d72
...
...
@@ -629,6 +629,20 @@ module Pod
test_extension_target
(
:watch2_extension
)
end
it
'configures APPLICATION_EXTENSION_API_ONLY for targets where the user target has it set'
do
mock_user_target
=
mock
(
'UserTarget'
,
:symbol_type
=>
:application
)
mock_user_target
.
expects
(
:common_resolved_build_setting
).
with
(
'APPLICATION_EXTENSION_API_ONLY'
).
returns
(
'YES'
)
@target
.
stubs
(
:user_targets
).
returns
([
mock_user_target
])
build_settings
=
{}
mock_configuration
=
mock
(
'BuildConfiguration'
,
:build_settings
=>
build_settings
)
@mock_target
.
stubs
(
:build_configurations
).
returns
([
mock_configuration
])
@installer
.
send
(
:set_target_dependencies
)
build_settings
.
should
==
{
'APPLICATION_EXTENSION_API_ONLY'
=>
'YES'
}
end
it
'does not try to set APPLICATION_EXTENSION_API_ONLY if there are no pod targets'
do
lambda
do
mock_user_target
=
mock
(
'UserTarget'
,
:symbol_type
=>
:app_extension
)
...
...
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