lib/appium_lib/driver.rb in appium_lib-0.24.0 vs lib/appium_lib/driver.rb in appium_lib-0.24.1
- old
+ new
@@ -300,16 +300,13 @@
@device_orientation = opts.fetch :device_orientation, 'portrait'
@full_reset = opts.fetch :full_reset, true
@no_reset = opts.fetch :no_reset, false
- # handle reset dependencies
- # when full reset is requested, then "no reset" should not be true
+ # no_reset/full_reset are mutually exclusive
@no_reset = false if @full_reset
@full_reset = false if @no_reset
- @fastReset = ! @full_reset && ! @no_reset
- @skipUninstall = @fastReset || @no_reset
# load common methods
extend Appium::Common
if @device.downcase == 'android'
# load Android specific methods
@@ -380,12 +377,10 @@
{
compressXml: @compress_xml,
platform: 'Linux',
platformName: @device,
fullReset: @full_reset,
- fastReset: @fast_reset,
noReset: @no_reset,
- skipUninstall: @skip_uninstall,
:'device-type' => @device_type,
:'device-orientation' => @device_orientation,
name: @app_name || 'Ruby Console Android Appium',
:'app-package' => @app_package,
:'app-activity' => @app_activity,
\ No newline at end of file