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