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
9cac4b54
Commit
9cac4b54
authored
Mar 27, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some documentation to Podfile#link_with and cleanup.
parent
e1f9b5d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
podfile.rb
lib/cocoapods/podfile.rb
+17
-2
No files found.
lib/cocoapods/podfile.rb
View file @
9cac4b54
...
...
@@ -86,8 +86,23 @@ module Pod
platform
?
@platform
=
Platform
.
new
(
platform
,
options
)
:
@platform
end
def
link_with
(
targets
=
nil
)
targets
?
@target_definition
.
link_with
=
targets
:
@target_definition
.
link_with
# Specifies the target(s) in the user’s project that this Pods library
# should be linked in.
#
# @example
#
# # Link with a target in the user’s project called ‘MyApp’.
# link_with 'MyApp'
#
# # Link with the targets in the user’s project called ‘MyApp’ and ‘MyOtherApp’.
# link_with ['MyApp', 'MyOtherApp']
#
# # You can also specify this inline when specifying a new Pods target:
# target :test, :exclusive => true, :link_with => 'TestRunner' do
# dependency 'Kiwi'
# end
def
link_with
(
targets
)
@target_definition
.
link_with
=
targets
end
# Specifies a dependency of the project.
...
...
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