Tencent / tinker

Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.
Other
17.1k stars 3.33k forks source link

[tinker] Fix log output error #1571

Closed lzb6666 closed 1 year ago

lzb6666 commented 3 years ago

当前日志显示输出的unsigned.apk、signed.apk、signed_7zip.apk位于build/tmp文件夹下(PatchBuilder#buildPatch),然而实际上在TinkerPatchSchemaTask#tinkerPatch的最后,将所有apk遍历放入了build/output文件夹,我花了一些时间才找到它们。

我注意到是在一个单独的提交中将apk移动了位置,同时为了兼容Command模式,因此增加了outputDir参数标记apk输出位置,原outputDir重命名为tmpDir标记中间产物的位置。

The current log displays the output of unsigned.apk, signed.apk and signed_ 7zip.apk is located in the build/tmp folder. However, they are actually in the build/output folder. It took me some time to find them.

I noticed that APK was moved in a separate commit, and in order to be compatible with Command mode. Therefore, the parameter outputDir is added to mark the output position of APK, and the original outputdir is renamed to tmpDir to mark the position of intermediate product.

tencent-adm commented 3 years ago

CLA assistant check
All committers have signed the CLA.