Class: Fastlane::Actions::AdbDevicesAction
Class Method Summary
collapse
action_name, author, method_missing, other_action, sh, step_text
Class Method Details
.authors ⇒ Object
46
47
48
|
# File 'lib/fastlane/actions/adb_devices.rb', line 46
def self.authors
["hjanuschka"]
end
|
.available_options ⇒ Object
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/fastlane/actions/adb_devices.rb', line 27
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :adb_path,
env_name: "FL_ADB_PATH",
description: "The path to your `adb` binary",
is_string: true,
optional: true,
default_value: "adb"
)
]
end
|
.description ⇒ Object
17
18
19
|
# File 'lib/fastlane/actions/adb_devices.rb', line 17
def self.description
"Get an Array of Connected android device serials"
end
|
.details ⇒ Object
21
22
23
24
25
|
# File 'lib/fastlane/actions/adb_devices.rb', line 21
def self.details
[
"fetches device list via adb"
].join("\n")
end
|
.is_supported?(platform) ⇒ Boolean
50
51
52
|
# File 'lib/fastlane/actions/adb_devices.rb', line 50
def self.is_supported?(platform)
platform == :android
end
|
.output ⇒ Object
39
40
|
# File 'lib/fastlane/actions/adb_devices.rb', line 39
def self.output
end
|
.return_value ⇒ Object
42
43
44
|
# File 'lib/fastlane/actions/adb_devices.rb', line 42
def self.return_value
"Array of devices"
end
|
.run(params) ⇒ Object
7
8
9
10
11
|
# File 'lib/fastlane/actions/adb_devices.rb', line 7
def self.run(params)
adb = Helper::AdbHelper.new(adb_path: params[:adb_path])
result = adb.load_all_devices
return result
end
|