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.24.0.beta.20170327010009 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.24.0.beta.20170326010023 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.24.0.beta.20170325010032 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.23.0 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.23.0.beta.20170322010036 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.22.0 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.22.0.beta.20170321010023 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.21.0 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.21.0.beta.20170320010043 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.21.0.beta.20170319010027 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.21.0.beta.20170318010107 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.21.0.beta.20170317010039 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.21.0.beta.20170316010039 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170315010053 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170314010029 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170313010048 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170312010035 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170311010030 fastlane/lib/fastlane/actions/snapshot.rb
fastlane-2.20.0.beta.20170310010058 fastlane/lib/fastlane/actions/snapshot.rb