how to add icons efficiently without using extended icon dependency and proguard ? (as i need only fews icons)
s
Stylianos Gakis
07/31/2023, 3:03 PM
Minification of your app should strip away all the icons that you don’t use anyway in production builds.
Otherwise if you don’t want that, copy paste the code from the extended icons library into your app directly.
With Compose you should always use R8/proguard with optimization.
☝️ 1
s
Stylianos Gakis
07/31/2023, 3:23 PM
With Compose you should always use R8/proguard with optimization.
m
MR3Y
07/31/2023, 3:26 PM
This is what I prefer always, especially because Proguard/R8 doesn't require any extra config from your side to strip those unnecessary icons but the OP for some reason avoids minification tools.
s
Stylianos Gakis
07/31/2023, 3:29 PM
No they didn’t say that, maybe they were not aware that they would be stripped anyway and was just worried about it, which is a perfect valid concern to have.
Or they don’t want their namespace to be polluted with all the icons when they do