Skip to content

Commit 4dc92b0

Browse files
authored
update jar version (#1144)
1 parent 7555745 commit 4dc92b0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

uiautomator2/assets/sync.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55

66
APK_VERSION=$(cat ../version.py| grep apk_version | awk '{print $NF}')
77
APK_VERSION=${APK_VERSION//[\"\']}
8-
JAR_VERSION="0.1.5"
8+
JAR_VERSION="0.2.2"
99

1010
cd "$(dirname $0)"
1111

@@ -28,6 +28,12 @@ function download_apk(){
2828
function download_jar() {
2929
local URL="https://public.uiauto.devsleep.com/u2jar/$JAR_VERSION/u2.jar"
3030
https_proxy= download "$URL" "u2.jar"
31+
if test -s u2.jar; then
32+
echo "Download Jar sucessfully"
33+
else
34+
echo "Download Jar failed"
35+
exit 1
36+
fi
3137
}
3238

3339
echo "APK_VERSION: $APK_VERSION"

0 commit comments

Comments
 (0)