class Fastlane::Actions::CaptureAndroidScreenshotsAction
Public Class Methods
available_options()
click to toggle source
# File fastlane/lib/fastlane/actions/capture_android_screenshots.rb, line 26 def self.available_options require 'screengrab' Screengrab::Options.available_options end
category()
click to toggle source
# File fastlane/lib/fastlane/actions/capture_android_screenshots.rb, line 58 def self.category :screenshots end
description()
click to toggle source
# File fastlane/lib/fastlane/actions/capture_android_screenshots.rb, line 22 def self.description 'Automated localized screenshots of your Android app (via _screengrab_)' end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/capture_android_screenshots.rb, line 45 def self.example_code [ 'capture_android_screenshots', 'screengrab # alias for "capture_android_screenshots"', 'capture_android_screenshots( locales: ["en-US", "fr-FR", "ja-JP"], clear_previous_screenshots: true, app_apk_path: "build/outputs/apk/example-debug.apk", tests_apk_path: "build/outputs/apk/example-debug-androidTest-unaligned.apk" )' ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/capture_android_screenshots.rb, line 41 def self.is_supported?(platform) platform == :android end
output()
click to toggle source
# File fastlane/lib/fastlane/actions/capture_android_screenshots.rb, line 31 def self.output [ ['SCREENGRAB_OUTPUT_DIRECTORY', 'The path to the output directory'] ] end
run(params)
click to toggle source
# File fastlane/lib/fastlane/actions/capture_android_screenshots.rb, line 8 def self.run(params) require 'screengrab' 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 end