maskarade / gradle-android-ribbonizer-plugin

Modifies launcher icons on debug build
https://bintray.com/gfx/maven/ribbonizer-plugin
MIT License
355 stars 37 forks source link

confused about iconNames #8

Closed pellyadolfo closed 7 years ago

pellyadolfo commented 9 years ago

Hi, I open this issue basically to ask for some explanation about your examples.

I tried to include ribbonizer in my project but nothing happens, no even errors. As a basic example, I did 3 things:

I did not add any iconNames as I would expect it would take the declared in my AplicationManifest.as you comment in your example:

// "manifest application[android:icon]" is automatically added to the list

The result is that nothing happens, no errors and normal app icon.

So I wonder what I am doing wrong. I see in your example declared iconNames

iconNames "@drawable/ic_notification", "@drawable/widget_preview"

but I am not able to find these files your the project resources. So I wonder if they are created on the fly.

Could you please assess with that?

Thanks

aluxian commented 9 years ago

You need to add debuggable in your flavour/buildType config. I added it in debug: android.buildTypes.debug.debuggable true.

https://github.com/gfx/gradle-android-ribbonizer-plugin/blob/master/plugin/src/main/groovy/com/github/gfx/ribbonizer/plugin/RibbonizerPlugin.groovy#L50

aluxian commented 9 years ago

And iconNames, I believe, is an array with the drawables you want the ribbon to be added to. E.g. you might want to add a ribbon to your notification icon not just the launcher icon.

mensly commented 7 years ago

I think this has been resolved since the issue has raised, with more detailed example in the README.

Please raise a new issue if there is still some confusion.