Based on zmtalker/sketch-android-assets
This plugin for Bohemian Coding's Sketch app will generate iOS and Android assets for slices on your current page. Assets are automatically created at mdpi/hdpi/xhdpi/xxhdpi/xxxhdpi for Android and @1x/@2x/@3x for iOS, then named and organized according to platform conventions.
NOTE: This plugin is designed for Sketch 3.2. It will overwrite any previously generated assets without prompting.
- Copy the
Generate Mobile Assets.jstalk
file and/library
folder into your Sketch plugins folder - You can find your plugins folder by going to 'Plugins' > 'Reveal plugins folder'
- Update
library/config.js
with your preferred naming conventions & DPI size
- Create & name slices for each of your assets
- Run Plugins > Generate Android Assets, or hit ⌘⇧A
- Choose a destination folder
- Magic!
- Now works with Sketch 3.2.
- None that I’m aware of; please let me know if you find any!