appium/appium-uiautomator2-server

API_LEVEL_ACTUAL field removed in newer version of androidx.test.uiautomator

xiaoPierre opened this issue · 3 comments

Would you mind creating a PR for it?

@mykola-mokhnach
Sure I'd love to help, just want to confirm, removing the usage of API_LEVEL_ACTUAL will make it not support android api level 23 anymore because I plan to simplify the following code. Does it look good for you ?

https://github.com/appium/appium-uiautomator2-server/blob/master/app/src/main/java/io/appium/uiautomator2/utils/AXWindowHelpers.java#L106

I would rather simply change the used constant to Build.VERSION.SDK_INT, like Google did. There is no reason for me to cut lower APIs support