class Fastlane::Actions::CaptureIosScreenshotsAction
Public Class Methods
available_options()
click to toggle source
# File fastlane/lib/fastlane/actions/capture_ios_screenshots.rb, line 25 def self.available_options return [] unless Helper.mac? require 'snapshot' Snapshot::Options.available_options end
category()
click to toggle source
# File fastlane/lib/fastlane/actions/capture_ios_screenshots.rb, line 56 def self.category :screenshots end
description()
click to toggle source
# File fastlane/lib/fastlane/actions/capture_ios_screenshots.rb, line 21 def self.description "Generate new localized screenshots on multiple devices (via _snapshot_)" end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/capture_ios_screenshots.rb, line 45 def self.example_code [ 'capture_ios_screenshots', 'snapshot # alias for "capture_ios_screenshots"', 'capture_ios_screenshots( skip_open_summary: true, clean: true )' ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/capture_ios_screenshots.rb, line 41 def self.is_supported?(platform) [:ios, :mac].include?(platform) end
output()
click to toggle source
# File fastlane/lib/fastlane/actions/capture_ios_screenshots.rb, line 31 def self.output [ ['SNAPSHOT_SCREENSHOTS_PATH', 'The path to the screenshots'] ] end
run(params)
click to toggle source
# File fastlane/lib/fastlane/actions/capture_ios_screenshots.rb, line 8 def self.run(params) return nil unless Helper.mac? require 'snapshot' Snapshot.config = params Snapshot::DependencyChecker.check_simulators Snapshot::Runner.new.work Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH] = File.expand_path(params[:output_directory]) # absolute URL true end