Sha256: 2d4c1b9b3a8129cf21661a674091dc9f3391d25d83df45aeffd61eb1076697f0

Contents?: true

Size: 1.13 KB

Versions: 82

Compression:

Stored size: 1.13 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)
        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

82 entries across 82 versions & 1 rubygems

Version Path
fastlane-2.20.0.beta.20170309010049 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170308010036 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.19.3 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170307010029 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.19.2 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170306010752 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170305010057 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170304010023 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170303010054 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170302010029 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.19.1 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.19.0 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.19.0.beta.20170301010932 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.19.0.beta.20170228010016 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.19.0.beta.20170227010016 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.19.0.beta.20170226010028 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.19.0.beta.20170225010031 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.19.0.beta.20170224010025 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.18.3 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.19.0.beta.20170223010028 fastlane/lib/fastlane/actions/snapshot.rb