No commit activity in last 3 years
No release in over 3 years
Takes the screenshots from devices which match the specified names and puts them in a new directory for frameit to process. The screenshot files can then be cleaned up after the device images are created.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

device_image_selector plugin

fastlane Plugin Badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-device_image_selector, add it to your project by running:

fastlane add_plugin device_image_selector

About device_image_selector

After creating hundreds of screenshots for the AppStore you probably want to use only a few of them with device frames, i.e. to put them on your website. Instead of running 'frameit' on the whole screenshots directory this plugin selects only the screenshots you want to use and puts them into the output directory. Running 'frameit' on that directory produces the device images. After that, the screenshot files can automatically be deleted by running the cleanup action. So the Fastfile may look like this:

desc "Generate device images"
lane :device_images do
  device_image_selector(name_prefixes: ["iPhone X","iPad Pro (12.9-inch)"])
  frame_screenshots(path: "fastlane/screenshots/device_images")
  device_image_selector_cleanup
end

Actions

device_image_selector

Selects only the screenshot files which matches the specified name prefixes and copys them into the output directory.

# iPhone X screenshots only
device_image_selector(name_prefixes: "iPhone X")   

# iPhone 8 Plus and iPad Pro (9.7-inch) screenshots
device_image_selector(name_prefixes: ["iPhone 8 Plus","iPad Pro (9.7-inch)"])

# specify the screenshots directory (default: ./fastlane/screenshots)
device_image_selector(screenshot_directory: "path/to/screenshots",  name_prefixes: "iPhone X")   

# specify the output directory (default: ./fastlane/screenshots/device_images)
device_image_selector(output_directory: "~/device_images",  name_prefixes: "iPhone X")       

device_image_selector_cleanup

Cleans up the output directory by deleting the previously selected screenshot files. This leaves only the generated device images in the output directory.

# cleanup after the device images are created
device_image_selector_cleanup

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.