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
b81d8abc
Commit
b81d8abc
authored
Jan 20, 2015
by
Boris Bügling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rubocop]
🙊
parent
08cd5990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
installer.rb
lib/cocoapods/installer.rb
+5
-5
No files found.
lib/cocoapods/installer.rb
View file @
b81d8abc
...
@@ -467,8 +467,8 @@ module Pod
...
@@ -467,8 +467,8 @@ module Pod
def
set_target_dependencies
def
set_target_dependencies
frameworks_group
=
pods_project
.
frameworks_group
frameworks_group
=
pods_project
.
frameworks_group
aggregate_targets
.
each
do
|
aggregate_target
|
aggregate_targets
.
each
do
|
aggregate_target
|
app_extension
=
aggregate_target
.
user_targets
.
map
{
|
t
|
t
.
symbol_type
}
.
include?
(
:app_extension
)
app_extension
=
aggregate_target
.
user_targets
.
map
(
&
:symbol_type
)
.
include?
(
:app_extension
)
set
_app_extension_api_only_for_target
(
aggregate_target
)
if
app_extension
configure
_app_extension_api_only_for_target
(
aggregate_target
)
if
app_extension
aggregate_target
.
pod_targets
.
each
do
|
pod_target
|
aggregate_target
.
pod_targets
.
each
do
|
pod_target
|
unless
pod_target
.
should_build?
unless
pod_target
.
should_build?
...
@@ -480,7 +480,7 @@ module Pod
...
@@ -480,7 +480,7 @@ module Pod
end
end
aggregate_target
.
native_target
.
add_dependency
(
pod_target
.
native_target
)
aggregate_target
.
native_target
.
add_dependency
(
pod_target
.
native_target
)
set
_app_extension_api_only_for_target
(
pod_target
)
if
app_extension
configure
_app_extension_api_only_for_target
(
pod_target
)
if
app_extension
pod_target
.
dependencies
.
each
do
|
dep
|
pod_target
.
dependencies
.
each
do
|
dep
|
unless
dep
==
pod_target
.
pod_name
unless
dep
==
pod_target
.
pod_name
...
@@ -492,7 +492,7 @@ module Pod
...
@@ -492,7 +492,7 @@ module Pod
next
unless
pod_dependency_target
.
should_build?
next
unless
pod_dependency_target
.
should_build?
pod_target
.
native_target
.
add_dependency
(
pod_dependency_target
.
native_target
)
pod_target
.
native_target
.
add_dependency
(
pod_dependency_target
.
native_target
)
set
_app_extension_api_only_for_target
(
pod_dependency_target
)
if
app_extension
configure
_app_extension_api_only_for_target
(
pod_dependency_target
)
if
app_extension
if
pod_target
.
requires_frameworks?
if
pod_target
.
requires_frameworks?
product_ref
=
frameworks_group
.
files
.
find
{
|
f
|
f
.
path
==
pod_dependency_target
.
product_name
}
||
product_ref
=
frameworks_group
.
files
.
find
{
|
f
|
f
.
path
==
pod_dependency_target
.
product_name
}
||
...
@@ -703,7 +703,7 @@ module Pod
...
@@ -703,7 +703,7 @@ module Pod
# Sets the APPLICATION_EXTENSION_API_ONLY build setting to YES for all
# Sets the APPLICATION_EXTENSION_API_ONLY build setting to YES for all
# configurations of the given target
# configurations of the given target
#
#
def
set
_app_extension_api_only_for_target
(
target
)
def
configure
_app_extension_api_only_for_target
(
target
)
target
.
native_target
.
build_configurations
.
each
do
|
config
|
target
.
native_target
.
build_configurations
.
each
do
|
config
|
config
.
build_settings
[
'APPLICATION_EXTENSION_API_ONLY'
]
=
'YES'
config
.
build_settings
[
'APPLICATION_EXTENSION_API_ONLY'
]
=
'YES'
end
end
...
...
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