Add handlers for lock/unlock in iOS#799
Add handlers for lock/unlock in iOS#799TikhomirovSergey merged 5 commits intoappium:masterappium/java-client:masterfrom
Conversation
| @@ -27,11 +29,30 @@ public interface LocksIOSDevice extends ExecutesMethod { | ||
|
|
There was a problem hiding this comment.
@mykola-mokhnach Code LGTM. Have few suggestions though,
-
Can we deprecate both
LocksIOSDeviceandLocksAndroidDevice. HaveLocksDeviceinterface instead. Currently based on this PR both android and iOS both does supports the API except this method in android doesn't accept duration. May be a server fix will make the API work like iOS. -
https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/android/AndroidMobileCommandHelper.java#L182 can be removed since
MobileCommandwill have it. -
isDeviceLockedas like in this PR makes more sense to me instead ofisLockedas in android now. So we might need to deprecate that and rename in android to make it consistent.
Your thoughts?
There was a problem hiding this comment.
Can we deprecate both LocksIOSDevice and LocksAndroidDevice. Have LocksDevice interface instead. Currently based on this PR both android and iOS both does supports the API except this method in android doesn't accept duration. May be a server fix will make the API work like iOS.
Done
https://github.com/appium/java-client/blob/master/src/main/java/io/appium/java_client/android/AndroidMobileCommandHelper.java#L182 can be removed since MobileCommand will have it.
Done
isDeviceLocked as like in this PR makes more sense to me instead of isLocked as in android now. So we might need to deprecate that and rename in android to make it consistent.
Done
|
@mykola-mokhnach It is loking good. I will try it on Android soon |
TikhomirovSergey
left a comment
There was a problem hiding this comment.
I think it is necessary to replace isLocked with isDeviceLocked method.
Also I think that new methods should be covered with iOS tests.
As soon as we are waiting for merge of appium/appium-xcuitest-driver#595 so let this message be somethng like reminder
… into lock # Conflicts: # src/main/java/io/appium/java_client/android/AndroidMobileCommandHelper.java # src/main/java/io/appium/java_client/android/LocksAndroidDevice.java
|
@TikhomirovSergey I've added integration tests for iOS. The isLocked method has been marked as deprecated. |
Change list
Please do not merge it unless appium/appium-xcuitest-driver#595 is published
Types of changes