Class: Fastlane::Actions::AdbAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES
Class Method Summary
collapse
action_name, author, deprecated_notes, lane_context, method_missing, other_action, sample_return_value, shell_out_should_use_bundle_exec?, step_text
Class Method Details
.authors ⇒ Object
69
70
71
|
# File 'fastlane/lib/fastlane/actions/adb.rb', line 69
def self.authors
["hjanuschka"]
end
|
.available_options ⇒ Object
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# 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",
is_string: true,
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,
is_string: 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 environment variable is set)",
is_string: true,
default_value: "adb")
]
end
|
.category ⇒ Object
49
50
51
|
# File 'fastlane/lib/fastlane/actions/adb.rb', line 49
def self.category
:building
end
|
.description ⇒ Object
17
18
19
|
# File 'fastlane/lib/fastlane/actions/adb.rb', line 17
def self.description
"Run ADB Actions"
end
|
.details ⇒ Object
21
22
23
|
# File 'fastlane/lib/fastlane/actions/adb.rb', line 21
def self.details
"see adb --help for more details"
end
|
.example_code ⇒ Object
53
54
55
56
57
58
59
|
# File 'fastlane/lib/fastlane/actions/adb.rb', line 53
def self.example_code
[
'adb(
command: "shell ls"
)'
]
end
|
.is_supported?(platform) ⇒ Boolean
73
74
75
|
# File 'fastlane/lib/fastlane/actions/adb.rb', line 73
def self.is_supported?(platform)
platform == :android
end
|
.output ⇒ Object
46
47
|
# File 'fastlane/lib/fastlane/actions/adb.rb', line 46
def self.output
end
|
.return_type ⇒ Object
65
66
67
|
# File 'fastlane/lib/fastlane/actions/adb.rb', line 65
def self.return_type
:string
end
|
.return_value ⇒ Object
61
62
63
|
# File 'fastlane/lib/fastlane/actions/adb.rb', line 61
def self.return_value
"The output of the adb command"
end
|
.run(params) ⇒ Object
7
8
9
10
11
|
# 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
|