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

Sort icons Array before passing to exportIcons #224

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

niusounds
Copy link
Contributor

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
Copy link
Collaborator

subdan commented Nov 21, 2023

Thanks, @niusounds!

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

@subdan subdan merged commit 5e7dcd2 into RedMadRobot:master Nov 21, 2023
3 checks passed
@niusounds niusounds deleted the feature/icons-sort branch November 22, 2023 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants