Commit 324b646
authored
feat: define device methods natively on Appium::Driver (#1109)
Adds explicit `def_delegators :driver, ...` for device-layer methods
(lock/unlock, hide_keyboard, push_file, pull_file, background_app,
shake, press_keycode, ime_*, context_*, app_strings, install_app, etc.)
that were previously wired up only implicitly by
`extend ::Appium::Core::Device` via a static compatibility list in
ruby_lib_core (lib/appium_lib_core/device.rb:26-42).
Defining them here lets ruby_lib_core drop that list
(appium/ruby_lib_core#97), which every new bridge endpoint currently
has to be added to by hand.
Native `Appium::Driver#execute_driver` (driver.rb:711) continues to
win over the class-level delegator since Ruby redefines methods in
source order.1 parent 5e60d97 commit 324b646
2 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
43 | 70 | | |
44 | 71 | | |
45 | 72 | | |
| |||
0 commit comments