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

Move Before prepare and After prepare hooks to after plugin install, add #334

Merged
merged 2 commits into from
Jun 16, 2017
Merged

Conversation

harshabonthu
Copy link
Contributor

@harshabonthu harshabonthu commented Jun 14, 2017

This would fix the bug mentioned in #333

When you remove platforms and plugins folder and do cordova prepare -> hooks would be executed in below order.
==before_prepare
adds platforms
==after_prepare
detects config.xml plugins
==before_plugin_add
==before_plugin_install
installs the plugin
==after_plugin_install
==after_plugin_add

So based on the above flow, code in after_prepare and before_prepare hooks in the plugin will not be executed if you do a cordova prepare on clean slate env.

@ethanneff
Copy link
Contributor

Thank you for contributing.

This pull request passed all my test devices. Please email me at eneff@branch.io. I would love to give you a free t-shirt for helping me out.

Thanks,

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.

2 participants