Sha256: 12dd7db5a92533a3646b31e636b093876a0d411209945732c3e66a476fc68d2c
Contents?: true
Size: 1.37 KB
Versions: 12
Compression:
Stored size: 1.37 KB
Contents
module Fastlane module Actions module SharedValues SNAPSHOT_SCREENSHOTS_PATH = :SNAPSHOT_SCREENSHOTS_PATH end class SnapshotAction < Action def self.run(params) return nil unless Helper.mac? require 'snapshot' begin FastlaneCore::UpdateChecker.start_looking_for_update('snapshot') unless Helper.is_test? 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 ensure FastlaneCore::UpdateChecker.show_update_status('snapshot', Snapshot::VERSION) end end def self.description "Generate new localised screenshots on multiple devices" end def self.available_options return [] unless Helper.mac? require 'snapshot' Snapshot::Options.available_options end def self.author "KrauseFx" end def self.is_supported?(platform) platform == :ios end def self.example_code [ 'snapshot', 'snapshot( skip_open_summary: true, clean: true )' ] end def self.category :screenshots end end end end
Version data entries
12 entries across 12 versions & 1 rubygems