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
6e69aff6
Commit
6e69aff6
authored
Jul 02, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Installer] Allow disabling default plugins
[Validator] Disable default plugins when installing
parent
08d3a04b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
installer.rb
lib/cocoapods/installer.rb
+12
-0
validator.rb
lib/cocoapods/validator.rb
+1
-0
No files found.
lib/cocoapods/installer.rb
View file @
6e69aff6
...
...
@@ -67,6 +67,8 @@ module Pod
@sandbox
=
sandbox
@podfile
=
podfile
@lockfile
=
lockfile
@use_default_plugins
=
true
end
# @return [Hash, Boolean, nil] Pods that have been requested to be
...
...
@@ -76,6 +78,12 @@ module Pod
#
attr_accessor
:update
# @return [Boolean] Whether default plugins should be used during
# installation. Defaults to true.
#
attr_accessor
:use_default_plugins
alias_method
:use_default_plugins?
,
:use_default_plugins
# Installs the Pods.
#
# The installation process is mostly linear with a few minor complications
...
...
@@ -461,7 +469,11 @@ module Pod
# @return [Hash<String, Hash>] The plugins to be used
#
def
plugins
if
use_default_plugins?
DEFAULT_PLUGINS
.
merge
(
podfile
.
plugins
)
else
podfile
.
plugins
end
end
# Prints a warning for any pods that are deprecated
...
...
lib/cocoapods/validator.rb
View file @
6e69aff6
...
...
@@ -342,6 +342,7 @@ module Pod
podfile
=
podfile_from_spec
(
consumer
.
platform_name
,
deployment_target
,
use_frameworks
)
sandbox
=
Sandbox
.
new
(
config
.
sandbox_root
)
installer
=
Installer
.
new
(
sandbox
,
podfile
)
installer
.
use_default_plugins
=
false
installer
.
install!
file_accessors
=
installer
.
aggregate_targets
.
map
do
|
target
|
...
...
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