-
Notifications
You must be signed in to change notification settings - Fork 110
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
Changing hook type #3
Comments
Hello, Once this plugin installed, it executes a script to check the presence of bridging headers in the other plugins of your project. An after_plugin_add hook would be executed once after adding this plugin. So it won't guaranteed the presence of bridging headers in all other plugins if it is added before them. In your case, I think the best solution at the moment would be to directly add the |
Thank you very much for the quick response. This is pretty much what I expected, and It seems that calling the script directly works. Thanks! |
Hi @akofman an after_prepare hook seems to work but only when you give explicitly the platform to the command
does it make sense? is there a way to fix that? Thank you |
Hey @becvert ! Very helpful comment. Thanks for that. Thanks again. |
My guess is that you shoudn't wrap the hook inside the |
Sounds good ! I just have to check if it doesn't throw any error messages in case of a non-ios platform. |
@becvert it's fine to me. If you could have a try with this last commit and confirm everything is also right to you, I'll merge it. |
It's fine to me too |
Thanks ! Merged in version 1.1.0. |
@akofman which is probably not a problem if you do but in some instances you install plugins from config.xml by calling I believe now that this hook is better:
sorry for the confusion... |
Hmm indeed, I think we could keep both hooks. We'll do that layer.
|
that will do 👍 |
OK from this branch I added some hooks and updated the script. I tested multiple cases :
Any objections ? |
none 👍 |
Would there be any adverse or unexpected effects of changing the hook type from after_platform_add to after_plugin_add? We have an app with a sizeable amount of code on the native side and its not practical to generate the ios platform on each checkout.
The text was updated successfully, but these errors were encountered: