-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Remove deprecated methods (#526)
BREAKING CHANGE: remove obsolute launch_app, close_app, reset, touch and multi actions
- Loading branch information
Showing
22 changed files
with
16 additions
and
616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -603,43 +603,6 @@ def long_press_keycode(key, metastate: [], flags: []) | |
@bridge.long_press_keycode(key, metastate: metastate, flags: flags) | ||
end | ||
|
||
# @deprecated Will be removed, or use 'windows: launchApp' extension instead for Windows. | ||
# Start the simulator and application configured with desired capabilities | ||
# | ||
# @example | ||
# | ||
# @driver.launch_app | ||
# | ||
def launch_app | ||
@bridge.launch_app | ||
end | ||
|
||
# @deprecated Will be removed, or use 'windows: closeApp' extension instead for Windows. | ||
# Close an app on device | ||
# | ||
# @example | ||
# | ||
# @driver.close_app | ||
# | ||
def close_app | ||
@bridge.close_app | ||
end | ||
|
||
# @deprecated | ||
# Reset the device, relaunching the application. | ||
# | ||
# @example | ||
# | ||
# @driver.reset | ||
# | ||
def reset | ||
::Appium::Logger.warn( | ||
'[DEPRECATION] reset is deprecated. Please use terminate_app and activate_app, ' \ | ||
'or quit and create a new session instead.' | ||
) | ||
@bridge.reset | ||
end | ||
|
||
# @deprecated Use 'mobile: getAppStrings' extension instead. | ||
# Return the hash of all localization strings. | ||
# @return [Hash] | ||
|
@@ -852,15 +815,6 @@ def device_time(format = nil) | |
@bridge.device_time(format) | ||
end | ||
|
||
# touch actions | ||
def touch_actions(actions) | ||
@bridge.touch_actions(actions) | ||
end | ||
|
||
def multi_touch(actions) | ||
@bridge.multi_touch(actions) | ||
end | ||
|
||
# | ||
# Send multiple W3C action chains to server. Use [email protected]+ for single action chain. | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.