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
44b88a1d
Commit
44b88a1d
authored
Oct 25, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Installer] Set APPLICATION_EXTENSION_API_ONLY for TV Extension targets
parent
7e7c3d72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
installer.rb
lib/cocoapods/installer.rb
+1
-1
installer_spec.rb
spec/unit/installer_spec.rb
+4
-0
No files found.
lib/cocoapods/installer.rb
View file @
44b88a1d
...
@@ -641,7 +641,7 @@ module Pod
...
@@ -641,7 +641,7 @@ module Pod
frameworks_group
=
pods_project
.
frameworks_group
frameworks_group
=
pods_project
.
frameworks_group
aggregate_targets
.
each
do
|
aggregate_target
|
aggregate_targets
.
each
do
|
aggregate_target
|
is_app_extension
=
!
(
aggregate_target
.
user_targets
.
map
(
&
:symbol_type
)
&
is_app_extension
=
!
(
aggregate_target
.
user_targets
.
map
(
&
:symbol_type
)
&
[
:app_extension
,
:watch_extension
,
:watch2_extension
]).
empty?
[
:app_extension
,
:watch_extension
,
:watch2_extension
,
:tv_extension
]).
empty?
is_app_extension
||=
aggregate_target
.
user_targets
.
any?
{
|
ut
|
ut
.
common_resolved_build_setting
(
'APPLICATION_EXTENSION_API_ONLY'
)
==
'YES'
}
is_app_extension
||=
aggregate_target
.
user_targets
.
any?
{
|
ut
|
ut
.
common_resolved_build_setting
(
'APPLICATION_EXTENSION_API_ONLY'
)
==
'YES'
}
aggregate_target
.
pod_targets
.
each
do
|
pod_target
|
aggregate_target
.
pod_targets
.
each
do
|
pod_target
|
...
...
spec/unit/installer_spec.rb
View file @
44b88a1d
...
@@ -629,6 +629,10 @@ module Pod
...
@@ -629,6 +629,10 @@ module Pod
test_extension_target
(
:watch2_extension
)
test_extension_target
(
:watch2_extension
)
end
end
it
'configures APPLICATION_EXTENSION_API_ONLY for tvOS extension targets'
do
test_extension_target
(
:tv_extension
)
end
it
'configures APPLICATION_EXTENSION_API_ONLY for targets where the user target has it set'
do
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
=
mock
(
'UserTarget'
,
:symbol_type
=>
:application
)
mock_user_target
.
expects
(
:common_resolved_build_setting
).
with
(
'APPLICATION_EXTENSION_API_ONLY'
).
returns
(
'YES'
)
mock_user_target
.
expects
(
:common_resolved_build_setting
).
with
(
'APPLICATION_EXTENSION_API_ONLY'
).
returns
(
'YES'
)
...
...
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