{"action":"created","issue":{"url":"https://api.github.com/repos/dpa99c/cordova-custom-config/issues/2","labels_url":"https://api.github.com/repos/dpa99c/cordova-custom-config/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dpa99c/cordova-custom-config/issues/2/comments","events_url":"https://api.github.com/repos/dpa99c/cordova-custom-config/issues/2/events","html_url":"https://github.com/dpa99c/cordova-custom-config/issues/2","id":111396644,"number":2,"title":"Optimize hook names for setup and removal","user":{"login":"regnete","id":3276866,"avatar_url":"https://avatars.githubusercontent.com/u/3276866?v=3","gravatar_id":"","url":"https://api.github.com/users/regnete","html_url":"https://github.com/regnete","followers_url":"https://api.github.com/users/regnete/followers","following_url":"https://api.github.com/users/regnete/following{/other_user}","gists_url":"https://api.github.com/users/regnete/gists{/gist_id}","starred_url":"https://api.github.com/users/regnete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regnete/subscriptions","organizations_url":"https://api.github.com/users/regnete/orgs","repos_url":"https://api.github.com/users/regnete/repos","events_url":"https://api.github.com/users/regnete/events{/privacy}","received_events_url":"https://api.github.com/users/regnete/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-14T13:19:35Z","updated_at":"2015-10-14T19:26:28Z","closed_at":null,"body":"Hi Dave,\r\n\r\nwhat about using the special hooknames 'before_plugin_install' and 'before_plugin_uninstall' for setup/removal of your plugin? (see http://cordova.apache.org/docs/en/5.1.1/guide/appdev/hooks/)\r\n\r\nCurrently you are using 'before_plugin_rm' and 'after_plugin_add'. These will fire each time **any** plugin is added/removed.\r\n\r\nThe hooks names mentioned above should only fire, when **your** plugin is added or removed. This could have massive perfomance impacts on your users cordova build process."},"comment":{"url":"https://api.github.com/repos/dpa99c/cordova-custom-config/issues/comments/148167850","html_url":"https://github.com/dpa99c/cordova-custom-config/issues/2#issuecomment-148167850","issue_url":"https://api.github.com/repos/dpa99c/cordova-custom-config/issues/2","id":148167850,"user":{"login":"dpa99c","id":2345062,"avatar_url":"https://avatars.githubusercontent.com/u/2345062?v=3","gravatar_id":"","url":"https://api.github.com/users/dpa99c","html_url":"https://github.com/dpa99c","followers_url":"https://api.github.com/users/dpa99c/followers","following_url":"https://api.github.com/users/dpa99c/following{/other_user}","gists_url":"https://api.github.com/users/dpa99c/gists{/gist_id}","starred_url":"https://api.github.com/users/dpa99c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpa99c/subscriptions","organizations_url":"https://api.github.com/users/dpa99c/orgs","repos_url":"https://api.github.com/users/dpa99c/repos","events_url":"https://api.github.com/users/dpa99c/events{/privacy}","received_events_url":"https://api.github.com/users/dpa99c/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T19:26:28Z","updated_at":"2015-10-14T19:26:28Z","body":"Thanks for clarifying these - didn't realize  'before_plugin_rm' and 'after_plugin_add' fired on _any_ plugin - the docs are not very clear on this. I'll swap these to 'before_plugin_install' and 'before_plugin_uninstall' when I get a bit of time."}}