Sha256: 6da6fe7f26b47ef6c168edbf7d52bf58c0757f0bf75f26856b81d748f5e51ae9

Contents?: true

Size: 1.34 KB

Versions: 39

Compression:

Stored size: 1.34 KB

Contents

module Fastlane
  module Actions
    module SharedValues
      SCREENGRAB_OUTPUT_DIRECTORY = :SCREENGRAB_OUTPUT_DIRECTORY
    end

    class ScreengrabAction < Action
      def self.run(params)
        require 'screengrab'

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

          Screengrab.config = params
          Screengrab.android_environment = Screengrab::AndroidEnvironment.new(params[:android_home],
                                                                              params[:build_tools_version])
          Screengrab::DependencyChecker.check(Screengrab.android_environment)
          Screengrab::Runner.new.run

          Actions.lane_context[SharedValues::SCREENGRAB_OUTPUT_DIRECTORY] = File.expand_path(params[:output_directory])

          true
        ensure
          FastlaneCore::UpdateChecker.show_update_status('screengrab', Screengrab::VERSION)
        end
      end

      def self.description
        'Automated localized screenshots of your Android app on every device'
      end

      def self.available_options
        require 'screengrab'
        Screengrab::Options.available_options
      end

      def self.author
        ['asfalcone', 'i2amsam', 'mfurtak']
      end

      def self.is_supported?(platform)
        platform == :android
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
fastlane-1.104.0 lib/fastlane/actions/screengrab.rb
fastlane-1.103.0 lib/fastlane/actions/screengrab.rb
fastlane-1.102.0 lib/fastlane/actions/screengrab.rb
fastlane-1.101.0 lib/fastlane/actions/screengrab.rb
fastlane-1.100.0 lib/fastlane/actions/screengrab.rb
fastlane-1.99.0 lib/fastlane/actions/screengrab.rb
fastlane-1.98.0 lib/fastlane/actions/screengrab.rb
fastlane-1.97.2 lib/fastlane/actions/screengrab.rb
fastlane-1.97.1 lib/fastlane/actions/screengrab.rb
fastlane-1.97.0 lib/fastlane/actions/screengrab.rb
fastlane-1.96.0 lib/fastlane/actions/screengrab.rb
fastlane-1.95.0 lib/fastlane/actions/screengrab.rb
fastlane-1.94.1 lib/fastlane/actions/screengrab.rb
fastlane-1.94.0 lib/fastlane/actions/screengrab.rb
fastlane-1.93.1 lib/fastlane/actions/screengrab.rb
fastlane-1.93.0 lib/fastlane/actions/screengrab.rb
fastlane-1.92.0 lib/fastlane/actions/screengrab.rb
fastlane-1.92.0.beta2 lib/fastlane/actions/screengrab.rb
fastlane-1.92.0.beta1 lib/fastlane/actions/screengrab.rb
fastlane-1.91.0 lib/fastlane/actions/screengrab.rb