20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/appium_lib_core/android/device/auth_finger_print.rb', line 20
def self.add_methods
::Appium::Core::Device.add_endpoint_method(:finger_print) do
def finger_print(finger_id)
::Appium::Logger.warn "[DEPRECATION] Please use 'mobile: fingerprint' extension instead"
unless (1..10).cover? finger_id.to_i
raise ::Appium::Core::Error::ArgumentError,
"finger_id should be integer between 1 to 10. Not #{finger_id}"
end
execute(:finger_print, {}, { fingerprintId: finger_id.to_i })
end
end
end
|