From 4d933d2eafb9d27a0ac00b268e1bbc9fbd4aeb27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=9C=A3=E7=BF=94=C2=B2=E2=81=B0=E2=82=82?= =?UTF-8?q?=E2=82=81?= Date: Mon, 2 Sep 2024 14:05:41 +0800 Subject: [PATCH] update u2.jar to fix exist objInfo not working on pdd --- uiautomator2/__main__.py | 4 ++-- uiautomator2/assets/sync.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/uiautomator2/__main__.py b/uiautomator2/__main__.py index 9f98c51..1ebaeb2 100644 --- a/uiautomator2/__main__.py +++ b/uiautomator2/__main__.py @@ -112,7 +112,7 @@ def cmd_version(args): def cmd_console(args): import code import platform - + d = u2.connect(args.serial) model = d.shell("getprop ro.product.model").output.strip() serial = d.serial @@ -122,7 +122,7 @@ def cmd_console(args): c = get_config() c.InteractiveShellEmbed.colors = "neutral" - IPython.embed(config=c, header="IPython -- d.info is ready") + IPython.embed(config=c, header=f"IPython is ready, uiautomator2: {__version__}, try d.info") except ImportError: _vars = globals().copy() _vars.update(locals()) diff --git a/uiautomator2/assets/sync.sh b/uiautomator2/assets/sync.sh index 1739cc1..46efedc 100755 --- a/uiautomator2/assets/sync.sh +++ b/uiautomator2/assets/sync.sh @@ -5,7 +5,7 @@ set -e APK_VERSION=$(cat ../version.py| grep apk_version | awk '{print $NF}') APK_VERSION=${APK_VERSION//[\"\']} -JAR_VERSION="0.1.2" +JAR_VERSION="0.1.3" cd "$(dirname $0)"