From f65faa484a66e2d3fe8aa510150fbeb01454153d Mon Sep 17 00:00:00 2001 From: Diego Torres Milano Date: Fri, 23 Dec 2022 19:36:32 -0800 Subject: [PATCH] Bump - Version 22.4.0 --- examples/helper/get-uiobject-class-name | 12 ++++++++++++ setup.py | 4 ++-- sphinx/conf.py | 2 +- src/com/dtmilano/android/adb/adbclient.py | 2 +- src/com/dtmilano/android/adb/dumpsys.py | 2 +- src/com/dtmilano/android/code_generator.py | 2 +- src/com/dtmilano/android/common.py | 2 +- src/com/dtmilano/android/concertina.py | 2 +- src/com/dtmilano/android/controlpanel.py | 2 +- src/com/dtmilano/android/culebron.py | 2 +- src/com/dtmilano/android/plot.py | 2 +- .../android/robotframework/viewclientwrapper.py | 2 +- src/com/dtmilano/android/viewclient.py | 2 +- tools/culebra | 2 +- tools/dump | 2 +- 15 files changed, 27 insertions(+), 15 deletions(-) create mode 100755 examples/helper/get-uiobject-class-name diff --git a/examples/helper/get-uiobject-class-name b/examples/helper/get-uiobject-class-name new file mode 100755 index 00000000..c3d51342 --- /dev/null +++ b/examples/helper/get-uiobject-class-name @@ -0,0 +1,12 @@ +#! /usr/bin/env python3 +# +# Gets the class name +# + +from com.dtmilano.android.viewclient import ViewClient + +helper = ViewClient.view_client_helper(kato=False) + +oid = helper.ui_device.find_object(ui_selector='clazz@android.widget.ImageButton,res@com.google.android.calculator:id/op_add').oid +print(helper.ui_object.dump(oid=oid)) +print(helper.ui_object.get_class_name(oid=oid)) diff --git a/setup.py b/setup.py index 282f5a21..79a842ab 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages setup(name='androidviewclient', - version='22.3.1', + version='22.4.0', description='''AndroidViewClient is a 100% pure python library and tools that simplifies test script creation providing higher level operations and the ability of obtaining the tree of Views present at @@ -22,5 +22,5 @@ classifiers=['Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License'], - install_requires=['setuptools', 'requests', 'numpy', 'matplotlib', 'culebratester-client >= 2.0.52'], + install_requires=['setuptools', 'requests', 'numpy', 'matplotlib', 'culebratester-client >= 2.0.64'], ) diff --git a/sphinx/conf.py b/sphinx/conf.py index a1051910..debff203 100644 --- a/sphinx/conf.py +++ b/sphinx/conf.py @@ -11,7 +11,7 @@ project = 'AndroidViewClient/culebra' copyright = '2022, Diego Torres Milano' author = 'Diego Torres Milano' -release = '22.3.1' +release = '22.4.0' # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/src/com/dtmilano/android/adb/adbclient.py b/src/com/dtmilano/android/adb/adbclient.py index 3cedea50..53cc5d8f 100644 --- a/src/com/dtmilano/android/adb/adbclient.py +++ b/src/com/dtmilano/android/adb/adbclient.py @@ -27,7 +27,7 @@ from com.dtmilano.android.adb.dumpsys import Dumpsys -__version__ = '22.3.1' +__version__ = '22.4.0' import sys import warnings diff --git a/src/com/dtmilano/android/adb/dumpsys.py b/src/com/dtmilano/android/adb/dumpsys.py index d18c9e0c..b36def07 100644 --- a/src/com/dtmilano/android/adb/dumpsys.py +++ b/src/com/dtmilano/android/adb/dumpsys.py @@ -23,7 +23,7 @@ import sys from _warnings import warn -__version__ = '22.3.1' +__version__ = '22.4.0' DEBUG = False diff --git a/src/com/dtmilano/android/code_generator.py b/src/com/dtmilano/android/code_generator.py index 78749891..497e7202 100644 --- a/src/com/dtmilano/android/code_generator.py +++ b/src/com/dtmilano/android/code_generator.py @@ -3,7 +3,7 @@ from abc import ABC from datetime import date -__version__ = '22.3.1' +__version__ = '22.4.0' from typing import TextIO, Union, Dict, List diff --git a/src/com/dtmilano/android/common.py b/src/com/dtmilano/android/common.py index 72624e7c..99927868 100644 --- a/src/com/dtmilano/android/common.py +++ b/src/com/dtmilano/android/common.py @@ -20,7 +20,7 @@ from __future__ import print_function -__version__ = '22.3.1' +__version__ = '22.4.0' import ast import os diff --git a/src/com/dtmilano/android/concertina.py b/src/com/dtmilano/android/concertina.py index be529f39..178874e7 100644 --- a/src/com/dtmilano/android/concertina.py +++ b/src/com/dtmilano/android/concertina.py @@ -22,7 +22,7 @@ import random __author__ = 'diego' -__version__ = '22.3.1' +__version__ = '22.4.0' DEBUG = True diff --git a/src/com/dtmilano/android/controlpanel.py b/src/com/dtmilano/android/controlpanel.py index fac0096d..5b56b266 100755 --- a/src/com/dtmilano/android/controlpanel.py +++ b/src/com/dtmilano/android/controlpanel.py @@ -20,7 +20,7 @@ ''' import platform -__version__ = '22.3.1' +__version__ = '22.4.0' import tkinter import tkinter.ttk diff --git a/src/com/dtmilano/android/culebron.py b/src/com/dtmilano/android/culebron.py index 87a41b8d..1cc6508b 100644 --- a/src/com/dtmilano/android/culebron.py +++ b/src/com/dtmilano/android/culebron.py @@ -38,7 +38,7 @@ from com.dtmilano.android.uiautomator.uiautomatorhelper import UiAutomatorHelper from com.dtmilano.android.viewclient import ViewClient, View, VERSION_SDK_PROPERTY -__version__ = '22.3.1' +__version__ = '22.4.0' import sys import threading diff --git a/src/com/dtmilano/android/plot.py b/src/com/dtmilano/android/plot.py index 4a004c5f..bea01327 100644 --- a/src/com/dtmilano/android/plot.py +++ b/src/com/dtmilano/android/plot.py @@ -31,7 +31,7 @@ from com.dtmilano.android.adb.dumpsys import Dumpsys -__version__ = '22.3.1' +__version__ = '22.4.0' DEBUG = False diff --git a/src/com/dtmilano/android/robotframework/viewclientwrapper.py b/src/com/dtmilano/android/robotframework/viewclientwrapper.py index 25f724dd..0fc15635 100644 --- a/src/com/dtmilano/android/robotframework/viewclientwrapper.py +++ b/src/com/dtmilano/android/robotframework/viewclientwrapper.py @@ -18,7 +18,7 @@ @author: Diego Torres Milano ''' -__version__ = '22.3.1' +__version__ = '22.4.0' __author__ = 'diego' import sys diff --git a/src/com/dtmilano/android/viewclient.py b/src/com/dtmilano/android/viewclient.py index 99d9726d..153157fb 100644 --- a/src/com/dtmilano/android/viewclient.py +++ b/src/com/dtmilano/android/viewclient.py @@ -26,7 +26,7 @@ import culebratester_client from culebratester_client import WindowHierarchyChild, WindowHierarchy -__version__ = '22.3.1' +__version__ = '22.4.0' import sys import warnings diff --git a/tools/culebra b/tools/culebra index 7cbddd6a..e3bfc0ef 100755 --- a/tools/culebra +++ b/tools/culebra @@ -27,7 +27,7 @@ import textwrap import culebratester_client from culebratester_client import WindowHierarchy -__version__ = '22.3.1' +__version__ = '22.4.0' import calendar import codecs diff --git a/tools/dump b/tools/dump index 4a0d5cac..7002187d 100755 --- a/tools/dump +++ b/tools/dump @@ -8,7 +8,7 @@ Created on Feb 3, 2012 from __future__ import print_function -__version__ = '22.3.1' +__version__ = '22.4.0' import getopt import os