Automatically copy all PNG assets to the correct Android drawable folder. Very helpful when exporting assets with @?x
-suffix from, for example, Sketch and putting them into the correct folder without human interaction.
- Copy the AppleScript file to
~/Library/Workflows/Applications/Folder Actions
- Create a export folder where you'll put all exported PNGs
- Right click the folder, choose configure folder actions, check the "Enable folder actions" checkbox and attach the
android_assets.scpt
to your folder - Open the terminal and create a symbolic link by typing
ln -s /path/to/android-project/app/src/main/res /path/to/export-folder-you-just-created