Sha256: f200250b3fdb5d9562e770a6168b298fbbdaf00635cd68d7bed46fe7db58cdfa

Contents?: true

Size: 1.14 KB

Versions: 76

Compression:

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

        begin
          FastlaneCore::UpdateChecker.start_looking_for_update('snapshot') unless Helper.is_test?

          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
        ensure
          FastlaneCore::UpdateChecker.show_update_status('snapshot', Snapshot::VERSION)
        end
      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
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
fastlane-1.45.0 lib/fastlane/actions/snapshot.rb
fastlane-1.44.0 lib/fastlane/actions/snapshot.rb
fastlane-1.43.0 lib/fastlane/actions/snapshot.rb
fastlane-1.42.0 lib/fastlane/actions/snapshot.rb
fastlane-1.41.1 lib/fastlane/actions/snapshot.rb
fastlane-1.41.0 lib/fastlane/actions/snapshot.rb
fastlane-1.40.0 lib/fastlane/actions/snapshot.rb
fastlane-1.39.0 lib/fastlane/actions/snapshot.rb
fastlane-1.38.1 lib/fastlane/actions/snapshot.rb
fastlane-1.38.0 lib/fastlane/actions/snapshot.rb
fastlane-1.37.0 lib/fastlane/actions/snapshot.rb
fastlane-1.36.4 lib/fastlane/actions/snapshot.rb
fastlane-1.36.3 lib/fastlane/actions/snapshot.rb
fastlane-1.36.2 lib/fastlane/actions/snapshot.rb
fastlane-1.36.1 lib/fastlane/actions/snapshot.rb
fastlane-1.36.0 lib/fastlane/actions/snapshot.rb