-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pre-integrate hook #643
Add pre-integrate hook #643
Conversation
lib/cocoapods-core/podfile/dsl.rb
Outdated
# [`Pod::Installer`](http://rubydoc.info/gems/cocoapods/Pod/Installer/) | ||
# as its only argument. | ||
# | ||
# @example Customising the dependencies before integration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit "Customizing"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
followed the other definitions in this file.. I've updated them all to use proper americanism.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dcvz thanks, I hadn't noticed the rest of these entries. I havent written the whole code here to be aware of this.
lib/cocoapods-core/podfile/dsl.rb
Outdated
# to disk. | ||
# | ||
# It receives the | ||
# [`Pod::Installer`](http://rubydoc.info/gems/cocoapods/Pod/Installer/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think classes are linked like this style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've followed the format of the other def
's in this file.. should I change them all?
@dcvz can you please rebase this PR to latest master? |
lib/cocoapods-core/podfile.rb
Outdated
# @param [Pod::Installer] installer | ||
# the installer that is performing the installation. | ||
# | ||
# @return [Bool] whether a pre install callback was specified and it was |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be "pre integrate callback"
I've implemented the requested changes @dnkoutso and rebased against the latest |
Add support for a
pre-integrate
hook that will allow plugins to make changes to downloaded pods before the integration into projects.This is useful for a plugin such as a
cocoapods-patch
that allows users to create patch files for pod dependencies.. whose changes might include a file deletion (which needs to happen before the integration to not cause problems).CocoaPods PR: CocoaPods/CocoaPods#9935