Sha256: 9af680889989ce86db4c4719365578054b1549393a402f6f73fdf705d483344a
Contents?: true
Size: 1.99 KB
Versions: 13
Compression:
Stored size: 1.99 KB
Contents
module Fastlane module Actions module SharedValues end class AdbAction < Action 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 ##################################################### # @!group Documentation ##################################################### def self.description "Run ADB Actions" end def self.details [ "see adb --help for more details" ].join("\n") end def self.available_options [ FastlaneCore::ConfigItem.new(key: :serial, env_name: "FL_ANDROID_SERIAL", description: "Android serial, which device should be used 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", is_string: true, default_value: "adb") ] end def self.output end def self.return_value "The output of the adb command" end def self.authors ["hjanuschka"] end def self.is_supported?(platform) platform == :android end end end end
Version data entries
13 entries across 13 versions & 1 rubygems