lib/appium_lib/android/common/helper.rb in appium_lib-9.7.2 vs lib/appium_lib/android/common/helper.rb in appium_lib-9.7.3
- old
+ new
@@ -120,9 +120,12 @@
# example line:
# "mFocusedApp=AppWindowToken{b1420058 token=Token{b128add0
# ActivityRecord{b1264d10 u0 com.example.android.apis/.ApiDemos t23}}}"
def current_app
+ warn '[DEPRECATION] current_app will be removed since it work only local.' \
+ 'Please use current_activity and current_app to know package and activity for current app'
+
line = `adb shell dumpsys window windows`.each_line.grep(/mFocusedApp/).first.strip
_parse_current_app_line line
end