Sha256: 408d146763f1e7bdf2e208c58ac95a65c0053a4c77aacd44df855f1e4459e6ca

Contents?: true

Size: 1.27 KB

Versions: 54

Compression:

Stored size: 1.27 KB

Contents

module Fastlane
  module Actions
    module SharedValues
      SNAPSHOT_SCREENSHOTS_PATH = :SNAPSHOT_SCREENSHOTS_PATH
    end

    class CaptureIosScreenshotsAction < Action
      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

      def self.description
        "Generate new localized screenshots on multiple devices (via _snapshot_)"
      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)
        [:ios, :mac].include? platform
      end

      def self.example_code
        [
          'capture_ios_screenshots',
          'snapshot # alias for "capture_ios_screenshots"',
          'capture_ios_screenshots(
            skip_open_summary: true,
            clean: true
          )'
        ]
      end

      def self.category
        :screenshots
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
fastlane-2.74.1 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.74.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.74.0.beta.20180108010004 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.74.0.beta.20180107010004 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.74.0.beta.20180106010004 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.73.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.73.0.beta.20180105010003 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.73.0.beta.20180104010004 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.73.0.beta.20180103010003 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.72.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.72.0.beta.20180102010003 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.72.0.beta.20180101010003 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.72.0.beta.20171231010003 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.71.1 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.72.0.beta.20171230010003 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.72.0.beta.20171229010003 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.72.0.beta.20171228010004 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.71.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.71.0.beta.20171227010004 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.71.0.beta.20171226010004 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb