class Fastlane::Actions::AdbAction
Public Class Methods
available_options()
click to toggle source
# File fastlane/lib/fastlane/actions/adb.rb, line 25 def self.available_options [ FastlaneCore::ConfigItem.new(key: :serial, env_name: "FL_ANDROID_SERIAL", description: "Android serial of the device to use for this command", default_value: ""), FastlaneCore::ConfigItem.new(key: :command, env_name: "FL_ADB_COMMAND", description: "All commands you want to pass to the adb command, e.g. `kill-server`", optional: true), FastlaneCore::ConfigItem.new(key: :adb_path, env_name: "FL_ADB_PATH", optional: true, description: "The path to your `adb` binary (can be left blank if the ANDROID_SDK_ROOT, ANDROID_HOME or ANDROID_SDK environment variable is set)", default_value: "adb") ] end
category()
click to toggle source
# File fastlane/lib/fastlane/actions/adb.rb, line 46 def self.category :building end
description()
click to toggle source
@!group Documentation
# File fastlane/lib/fastlane/actions/adb.rb, line 17 def self.description "Run ADB Actions" end
details()
click to toggle source
# File fastlane/lib/fastlane/actions/adb.rb, line 21 def self.details "see adb --help for more details" end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/adb.rb, line 50 def self.example_code [ 'adb( command: "shell ls" )' ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/adb.rb, line 70 def self.is_supported?(platform) platform == :android end
output()
click to toggle source
# File fastlane/lib/fastlane/actions/adb.rb, line 43 def self.output end
return_type()
click to toggle source
# File fastlane/lib/fastlane/actions/adb.rb, line 62 def self.return_type :string end
return_value()
click to toggle source
# File fastlane/lib/fastlane/actions/adb.rb, line 58 def self.return_value "The output of the adb command" end
run(params)
click to toggle source
# File fastlane/lib/fastlane/actions/adb.rb, line 7 def self.run(params) adb = Helper::AdbHelper.new(adb_path: params[:adb_path]) result = adb.trigger(command: params[:command], serial: params[:serial]) return result end