RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
718 stars 114 forks source link

Sort icons Array before passing to exportIcons #224

Closed niusounds closed 7 months ago

niusounds commented 7 months ago

Hi, I'm using figma-export in our Android team. I'm very satisfied with this tool. Thank you!

But I'm worried about that every time executing figma-export producing different output of Icons.kt because icons in Icons.kt.stencil contains different ordered items. So I added .sorted() before passing Array to icons.

This will produce constant Icons.kt file every time.

I will hope you to merge this PR. Thank you.

subdan commented 7 months ago

Thanks, @niusounds!

The new version released — https://github.com/RedMadRobot/figma-export/releases/tag/0.37.3