Sha256: 6323e2be0aa8b6dd4f0acea75e2c52352bce0d5ba3fff3441975a4c658949e46

Contents?: true

Size: 1.27 KB

Versions: 334

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

334 entries across 334 versions & 1 rubygems

Version Path
fastlane-2.120.0.beta.20190407200059 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190406200021 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190405200012 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190404200009 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190403200039 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190402200013 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190401200056 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190331200023 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190330200100 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190329200012 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190328200010 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190327200117 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190326200014 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.120.0.beta.20190325200020 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.119.0 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.119.0.beta.20190324200014 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.119.0.beta.20190323200019 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.119.0.beta.20190322200024 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.119.0.beta.20190321200022 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb
fastlane-2.119.0.beta.20190320200107 fastlane/lib/fastlane/actions/capture_ios_screenshots.rb