Skip to content
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

Merged
merged 4 commits into from
Jan 8, 2021
Merged

Add pre-integrate hook #643

merged 4 commits into from
Jan 8, 2021

Conversation

dcvz
Copy link
Contributor

@dcvz dcvz commented Jul 23, 2020

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

# [`Pod::Installer`](http://rubydoc.info/gems/cocoapods/Pod/Installer/)
# as its only argument.
#
# @example Customising the dependencies before integration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit "Customizing"

Copy link
Contributor Author

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.

Copy link
Contributor

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.

# to disk.
#
# It receives the
# [`Pod::Installer`](http://rubydoc.info/gems/cocoapods/Pod/Installer/)
Copy link
Contributor

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.

Copy link
Contributor Author

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?

@dnkoutso
Copy link
Contributor

@dcvz can you please rebase this PR to latest master?

# @param [Pod::Installer] installer
# the installer that is performing the installation.
#
# @return [Bool] whether a pre install callback was specified and it was
Copy link
Contributor

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"

@dcvz
Copy link
Contributor Author

dcvz commented Jan 7, 2021

I've implemented the requested changes @dnkoutso and rebased against the latest main.

@dnkoutso dnkoutso merged commit adde2b8 into CocoaPods:master Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants