Skip to content

Script to move exported from figma png pictures to android drawable folders

Notifications You must be signed in to change notification settings

ArtemMikhaylov/AndroidFigmaHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

AndroidFigmaHelper

Script to move exported .png pictures from figma to android drawable folders.

You export pictures for mobile in all required densities into one directory. If you need, you also can export pictures for tablets the same way into another directory.

Specify those directories and your project directory, and just run the script.

General script flow goes this way:

1) changes names to newNames, if there's any specified
2) replaces all " "  with "_" in names
3) converts names to lowercase
4) changes prefixesToChange to newPrefixes, if there's any specified
5) attaches a newNamePrefix to each name if specified
6) if file already exists, overwrite/skip question will be asked in console

For more info, please investigate the code.

You also can run it as java module from Android Studio https://stackoverflow.com/questions/16626810/can-android-studio-be-used-to-run-standard-java-projects

About

Script to move exported from figma png pictures to android drawable folders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages