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
48f4d3a9
Commit
48f4d3a9
authored
Mar 06, 2018
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix documentation
parent
bb81dffc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
podfile_dependency_cache.rb
lib/cocoapods/installer/analyzer/podfile_dependency_cache.rb
+6
-0
podfile_validator.rb
lib/cocoapods/installer/podfile_validator.rb
+4
-0
project.rb
lib/cocoapods/project.rb
+10
-2
No files found.
lib/cocoapods/installer/analyzer/podfile_dependency_cache.rb
View file @
48f4d3a9
...
...
@@ -30,6 +30,12 @@ module Pod
# Creates a {PodfileDependencyCache} from the given {Podfile}
#
# @param [Podfile] podfile
# The {Podfile} from which dependencies should be cached
#
# @return [PodfileDependencyCache]
# A warmed, immutable cache of all the dependencies in the {Podfile}
#
def
self
.
from_podfile
(
podfile
)
podfile_dependencies
=
[]
dependencies_by_target_definition
=
{}
...
...
lib/cocoapods/installer/podfile_validator.rb
View file @
48f4d3a9
...
...
@@ -17,9 +17,13 @@ module Pod
attr_reader
:warnings
# Initialize a new instance
#
# @param [Podfile] podfile
# The podfile to validate
#
# @param [Analyzer::PodfileDependencyCache] podfile_dependency_cache
# An (optional) cache of all the dependencies in the podfile
#
def
initialize
(
podfile
,
podfile_dependency_cache
=
Analyzer
::
PodfileDependencyCache
.
from_podfile
(
podfile
))
@podfile
=
podfile
@podfile_dependency_cache
=
podfile_dependency_cache
...
...
lib/cocoapods/project.rb
View file @
48f4d3a9
...
...
@@ -40,8 +40,16 @@ module Pod
#
attr_reader
:development_pods
# Overridden to generate UUIDs in a much faster way, since we don't need to check for collisions
# (as the Pods project is regenerated each time, and thus all UUIDs will have come from this method)
# Generates a list of new UUIDs that created objects can be assigned.
#
# @note Overridden to generate UUIDs in a much faster way, since we don't need to check for collisions
# (as the Pods project is regenerated each time, and thus all UUIDs will have come from this method)
#
# @param [Integer] count
# The number of UUIDs to generate
#
# @return [Void]
#
def
generate_available_uuid_list
(
count
=
100
)
start
=
@generated_uuids
.
size
uniques
=
Array
.
new
(
count
)
{
|
i
|
format
(
'%011X0'
,
start
+
i
)
}
...
...
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