Skip to content
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

How to use icon that are part of module resources ? #77

Closed
afaucogney opened this issue Sep 21, 2020 · 5 comments · Fixed by #86
Closed

How to use icon that are part of module resources ? #77

afaucogney opened this issue Sep 21, 2020 · 5 comments · Fixed by #86
Labels
information needed Further information is requested

Comments

@afaucogney
Copy link

I have an app where the icon is part of a module ui-kit. If the icon are not available in the main app module, easylauncher doesn't work.
This was the same for the version from Akaita : akaita/easylauncher-gradle-plugin#43

Do you have any way to do that ?

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.87. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the information needed Further information is requested label Sep 21, 2020
@afaucogney afaucogney changed the title How to use icon that are part of the module How to use icon that are part of module resources ? Sep 21, 2020
@mateuszkwiecinski
Copy link
Member

mateuszkwiecinski commented Sep 22, 2020

Just to make sure I understand the case correctly:

  1. :app is main module that contains AndroidManifest.xml which has a android:icon reference to resource placed in :ui-kit module.
  2. ui-kit is a android library which has only resource, but doesn't reference it in its AndroidManifest.xml file.

Does that describe your case? Would you be able to provide minimal repro that would serve as a test project?

@afaucogney
Copy link
Author

You well understood. I will try to do a example project in the next days.

@mateuszkwiecinski
Copy link
Member

Ok, so most probably after I #78 is fixed you should be able to apply the plugin to your library module and pass iconNames you would like add ribbon to.
I'd appreciate a sample project as that's the most convenient way of making sure it works and will work in the future plugin version, thanks!

by the way, which AndroidManifest references your icon resource? Does that take place in your :app AndroidManifest or in the ui-kit's which gets merged later? I started wondering if I could detect such case and add out-of-the box support 🤔

@mateuszkwiecinski
Copy link
Member

FYI: I just released version 3.5.0 which can be applied to your ui-kit library (instead of the app one) and it should either automatically dicover the icon (if referenced in library AndroidManifest file) or you can reference your launcher icons using the new iconNames property.

If there are still any problems I'd appreciate sample project that reproduces the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
information needed Further information is requested
Development

Successfully merging a pull request may close this issue.

2 participants