{"action":"created","issue":{"url":"https://api.github.com/repos/avianey/androidsvgdrawable-plugin/issues/23","labels_url":"https://api.github.com/repos/avianey/androidsvgdrawable-plugin/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/avianey/androidsvgdrawable-plugin/issues/23/comments","events_url":"https://api.github.com/repos/avianey/androidsvgdrawable-plugin/issues/23/events","html_url":"https://github.com/avianey/androidsvgdrawable-plugin/issues/23","id":68847713,"number":23,"title":"how to execute for flavors in gradle?","user":{"login":"wintersandroid","id":2851384,"avatar_url":"https://avatars.githubusercontent.com/u/2851384?v=3","gravatar_id":"","url":"https://api.github.com/users/wintersandroid","html_url":"https://github.com/wintersandroid","followers_url":"https://api.github.com/users/wintersandroid/followers","following_url":"https://api.github.com/users/wintersandroid/following{/other_user}","gists_url":"https://api.github.com/users/wintersandroid/gists{/gist_id}","starred_url":"https://api.github.com/users/wintersandroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wintersandroid/subscriptions","organizations_url":"https://api.github.com/users/wintersandroid/orgs","repos_url":"https://api.github.com/users/wintersandroid/repos","events_url":"https://api.github.com/users/wintersandroid/events{/privacy}","received_events_url":"https://api.github.com/users/wintersandroid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/avianey/androidsvgdrawable-plugin/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/avianey/androidsvgdrawable-plugin/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-16T05:21:14Z","updated_at":"2015-04-20T13:15:12Z","closed_at":null,"body":"I have a project with multiple flavors and a main - most of the svg files live in main, but the main app icons are in each flavour\r\n\r\nI create a configuration for each flavour and the main, but the plugin executes for all flavours not just the one being built..\r\n\r\nIs there a way with this plugin to link each configuration to a flavour?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/avianey/androidsvgdrawable-plugin/issues/comments/94448404","html_url":"https://github.com/avianey/androidsvgdrawable-plugin/issues/23#issuecomment-94448404","issue_url":"https://api.github.com/repos/avianey/androidsvgdrawable-plugin/issues/23","id":94448404,"user":{"login":"avianey","id":1625652,"avatar_url":"https://avatars.githubusercontent.com/u/1625652?v=3","gravatar_id":"","url":"https://api.github.com/users/avianey","html_url":"https://github.com/avianey","followers_url":"https://api.github.com/users/avianey/followers","following_url":"https://api.github.com/users/avianey/following{/other_user}","gists_url":"https://api.github.com/users/avianey/gists{/gist_id}","starred_url":"https://api.github.com/users/avianey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avianey/subscriptions","organizations_url":"https://api.github.com/users/avianey/orgs","repos_url":"https://api.github.com/users/avianey/repos","events_url":"https://api.github.com/users/avianey/events{/privacy}","received_events_url":"https://api.github.com/users/avianey/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T13:15:12Z","updated_at":"2015-04-20T13:15:12Z","body":"At this point I have to solution (and I think both will be implemented) :\r\n# have a new parameter to specify the task to bind to (each SvgDrawableTask could be bound to anything, 'preBuild' will stay the default)\r\n# have a new parameter to say to the SvgDrawable plugin not to execute a given SvgDrawableTask automatically... this task should be executed by an explicit closure in the build file\r\n\r\nWorking on it...\r\nThis might fix #24 by specifying  something else than `preBuild`"}}