Sha256: e7eac6346abb699bcb23d0dadff32fc6347adc5c2929585ca68efd4f35b9c0ce
Contents?: true
Size: 1.8 KB
Versions: 1
Compression:
Stored size: 1.8 KB
Contents
module Fastlane module Actions module SharedValues end class AdbDevicesAction < Action def self.run(params) adb = Helper::AdbHelper.new(adb_path: params[:adb_path]) result = adb.load_all_devices return result end ##################################################### # @!group Documentation ##################################################### def self.description "Get an array of Connected android device serials" end def self.details "Fetches device list via adb, e.g. run an adb command on all connected devices." end def self.available_options [ FastlaneCore::ConfigItem.new(key: :adb_path, env_name: "FL_ADB_PATH", description: "The path to your `adb` binary (can be left blank if the ANDROID_SDK_ROOT environment variable is set)", optional: true, default_value: "adb") ] end def self.output end def self.example_code [ 'adb_devices.each do |device| model = adb(command: "shell getprop ro.product.model", serial: device.serial).strip puts "Model #{model} is connected" end' ] end def self.sample_return_value [] end def self.category :misc end def self.return_value "Returns an array of all currently connected android devices" end def self.authors ["hjanuschka"] end def self.is_supported?(platform) platform == :android end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastlane_hotfix-2.187.0 | fastlane/lib/fastlane/actions/adb_devices.rb |