Sha256: e4778b89995fbf18394983c909f4ca121b098131fabb04133def08d64312ecb6

Contents?: true

Size: 1.39 KB

Versions: 322

Compression:

Stored size: 1.39 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.output
        [
          ['SNAPSHOT_SCREENSHOTS_PATH', 'The path to the screenshots']
        ]
      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

322 entries across 322 versions & 5 rubygems

Version Path
fastlane-2.225.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.224.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.223.1 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.223.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.222.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.221.1 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.221.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.220.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.219.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.218.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-security-patched-2.216.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.217.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.216.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.215.1 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.215.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-mercafacil-2.214.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.214.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.213.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.212.2 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane_pricing_fix-2.212.1 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb