{"push_id":3041690608,"size":1,"distinct_size":1,"ref":"refs/heads/hooks_master","head":"e4566723304948ad79a1cd9c72cbdaa16b56ba61","before":"d4f8f2294c81dbb45058cd727529613022c2b50e","commits":[{"sha":"e4566723304948ad79a1cd9c72cbdaa16b56ba61","author":{"name":"Vance Hu","email":"21bbc1e800f9e9cd8278a2bd0ea1d9984875e585@brandingbrand.com"},"message":"feat(flagship): lifecycle hooks\n\nRight now flagship's module patching scripts can only apply to a specific module in a fixed event (ios before link and android after link). And we cannot add project specific patches easily using current framework.\n\nReplaced the current design with a more extensible lifecycle hook design. So a user can:\n- Add project specific hooks by creating `./buildHooks` folder under project root path\n- Execute the script in any of supported lifecycle events. Currently supporting: 'beforeCopyBoilerplate' | 'beforeLink' | 'beforeIOSPodInstall' | 'afterLink' | 'failed';\n- Filter hooks by platforms / dependencies / dependency versions\n\nNo breaking change - all the current patches are restructured in a way that behaves exactly same as the previous commit. Still we should scrutiny all the current patches to make them more restrictive though (add dependency version conditions, etc)\n\n- Revisit exiting patches to apply them more appropriate conditions\n- Split some global fixes into separate hooks to make them more modular\n- Add more lifecycle events if needed","distinct":true,"url":"https://api.github.com/repos/VanceHubb/flagship/commits/e4566723304948ad79a1cd9c72cbdaa16b56ba61"}]}
{"actor":{"display_login":"VanceHubb"}}