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.18.2 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.19.0.beta.20170222010016 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.18.1 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.18.0 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.18.0.beta.20170221010026 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.18.0.beta.20170220010017 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.18.0.beta.20170219010032 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.18.0.beta.20170218010103 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.18.0.beta.20170217010035 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.18.0.beta.20170216184940 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.17.1 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.17.0 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.16.0 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.15.1 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.16.0.beta.20170214010051 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.15.0 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.15.0.beta.20170213032052 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.14.2 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.14.1 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.14.0 fastlane/lib/fastlane/actions/snapshot.rb