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
2ca31f8f
Commit
2ca31f8f
authored
Mar 27, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load only required podspecs for external dependencies [see 15c4ca3]
parent
80809dc0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
resolver.rb
lib/cocoapods/resolver.rb
+0
-0
sandbox.rb
lib/cocoapods/sandbox.rb
+8
-4
No files found.
lib/cocoapods/resolver.rb
View file @
2ca31f8f
lib/cocoapods/sandbox.rb
View file @
2ca31f8f
...
@@ -46,14 +46,18 @@ module Pod
...
@@ -46,14 +46,18 @@ module Pod
headers_root
.
rmtree
if
headers_root
.
exist?
headers_root
.
rmtree
if
headers_root
.
exist?
end
end
def
installed_pods
def
podspec_for_name
(
name
)
Dir
[
root
+
"**/*.podspec"
].
map
do
|
podspec
|
if
spec_path
=
Dir
[
root
+
"
#{
name
}
/*.podspec"
].
first
LocalPod
.
from_podspec
(
Pathname
.
new
(
podspec
),
self
)
Pathname
.
new
(
spec_path
)
elsif
spec_path
=
Dir
[
root
+
"Local Podspecs/
#{
name
}
.podspec"
].
first
Pathname
.
new
(
spec_path
)
end
end
end
end
def
installed_pod_named
(
name
)
def
installed_pod_named
(
name
)
installed_pods
.
find
{
|
pod
|
pod
.
name
==
name
}
if
spec_path
=
podspec_for_name
(
name
)
LocalPod
.
from_podspec
(
spec_path
,
self
)
end
end
end
end
end
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