dtmilano / AndroidViewClient

Android ViewServer and ADB client
Apache License 2.0
1.62k stars 347 forks source link

viewclient: added switch for --compressed option #133

Closed mwasilew closed 9 years ago

mwasilew commented 9 years ago

The --compressed option is used for uiautomator dump by default. There was no option to switch it of. As output of 'compressed' and 'uncompressed' dump is different, backward compatibility was broken.

Signed-off-by: Milosz Wasilewski milosz.wasilewski@linaro.org

dtmilano commented 9 years ago

Thanks. To understand your problem better, what difference between the 2 outputs was affecting you?

mwasilew commented 9 years ago

Some of the containers are missing in the compressed version .So when the view contains a couple of unnamed buttons it is impossible to navigate from a named object. One can use the unique ID, but that is a slight trouble when the object is out of the screen and doesn't appear in the XML dump. To sum up, probably there is a workaround to the problem but I wanted to keep the test scripts (almost) unchanged and this option allows to maintain backward compatibility.