Sha256: a4ca34caefe419b9b5cc4c981ebd92d44598beb9096ba7d85a55f08e2c0f50ce

Contents?: true

Size: 1.15 KB

Versions: 279

Compression:

Stored size: 1.15 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'

        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 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)
        [:ios, :mac].include? platform
      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

279 entries across 279 versions & 1 rubygems

Version Path
fastlane-2.63.0.beta.20171025010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.63.0.beta.20171024010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.62.1 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.63.0.beta.20171023010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.63.0.beta.20171022010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.63.0.beta.20171021010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.63.0.beta.20171020010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.63.0.beta.20171019010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.63.0.beta.20171018010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.62.0 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.62.0.beta.20171017010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.62.0.beta.20171016010004 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.62.0.beta.20171015010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.62.0.beta.20171014010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.62.0.beta.20171011010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.62.0.beta.20171010010004 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.61.0 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.61.0.beta.20171009010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.61.0.beta.20171008010003 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.61.0.beta.20171007010004 fastlane/lib/fastlane/actions/snapshot.rb