最近在尝试改造 xiaocong 的 python-uiautomator。在研究 uiautomator-server 端 (github 链接 - [https://github.com/xiaocong/android-uiautomator-jsonrpcserver]
) 代码后,发现通过 ant build 后会产生两个 jar 包,bundle.jar 和 uiautomator-stub.jar。这是由于 custom_rules.xml 中定制所导致,但是常规的打包 uiautomator 都只生成一个 jar 包。

运行时的命令也变成了 adb shell uiautomator runtest bundler.jar uiautomator-stub.jar -c com.github.uiautomatorstub.Stub。

所以问题是 为何此处 xiaocong 打包成两个包,且通过 ant 编译出的两个包在运行时时如何相互依赖缺一不可的?


↙↙↙阅读原文可查看相关链接,并与作者交流