Skip to content

Commit

Permalink
Reduce issues to 96
Browse files Browse the repository at this point in the history
  • Loading branch information
aguspe committed Nov 3, 2024
1 parent 79cc58c commit 1fc1122
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions sig/interfaces/bridge.rbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
interface _Bridge
def bridge: -> untyped

def execute: (untyped command, ?Hash[untyped, untyped] opts, ?untyped? command_hash) -> untyped
end
2 changes: 2 additions & 0 deletions sig/lib/appium_lib_core/common/base/screenshot.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module Appium
module Core
class Base
module TakesScreenshot
include _Bridge

def save_screenshot: (untyped png_path) -> untyped

def screenshot_as: (untyped format) -> untyped
Expand Down
8 changes: 4 additions & 4 deletions sig/lib/appium_lib_core/common/device/image_comparison.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ module Appium
class Base
module Device
module ImageComparison
MODE: ::Array[:matchFeatures | :getSimilarity | :matchTemplate]
MODE: Array[Symbol]

MATCH_FEATURES: { detector_name: ::Array["AKAZE" | "AGAST" | "BRISK" | "FAST" | "GFTT" | "KAZE" | "MSER" | "SIFT" | "ORB"], match_func: ::Array["FlannBased" | "BruteForce" | "BruteForceL1" | "BruteForceHamming" | "BruteForceHammingLut" | "BruteForceSL2"], goodMatchesFactor: nil, visualize: ::Array[true | false] }
MATCH_FEATURES: { detector_name: untyped }

MATCH_TEMPLATE: { visualize: ::Array[true | false] }
MATCH_TEMPLATE: { visualize: Array[bool] }

GET_SIMILARITY: { visualize: ::Array[true | false] }
GET_SIMILARITY: { visualize: Array[bool] }

def match_images_features: (first_image: untyped, second_image: untyped, ?detector_name: ::String, ?match_func: ::String, ?good_matches_factor: untyped?, ?visualize: bool) -> untyped

Expand Down
2 changes: 2 additions & 0 deletions sig/lib/appium_lib_core/common/device/ime_actions.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ module Appium
class Base
module Device
module ImeActions
include _Bridge

def ime_activate: (untyped ime_name) -> untyped

def ime_available_engines: () -> untyped
Expand Down
4 changes: 4 additions & 0 deletions sig/lib/appium_lib_core/ios/device/clipboard.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ module Appium
module Ios
module Device
module Clipboard
include _Bridge

def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped

def self.add_methods: () -> untyped

def self.touch_id: -> untyped
end
end
end
Expand Down

0 comments on commit 1fc1122

Please sign in to comment.