{"id":1860,"date":"2023-03-29T22:09:17","date_gmt":"2023-03-29T14:09:17","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1860"},"modified":"2023-04-22T09:07:56","modified_gmt":"2023-04-22T01:07:56","slug":"basic-steps-for-using-tinkerpatch","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/29\/basic-steps-for-using-tinkerpatch\/","title":{"rendered":"TinkerPatch\u57fa\u672c\u4f7f\u7528\u6b65\u9aa4"},"content":{"rendered":"<p><code>TinkerPatch<\/code>\u7684\u4f7f\u7528\u6b65\u9aa4\u975e\u5e38\u7b80\u5355\uff0c\u4e00\u822c\u6765\u8bf4\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<p>\uff081\uff09\u8fd0\u884c<code>assembleRelease<\/code> task \u6784\u5efa\u57fa\u51c6\u5305\uff08<strong>\u52a1\u5fc5\u5728\u53d1\u5e03\u524d\u786e\u4fdd\u66f4\u65b0tinkerpatchSupport\u4e2d\u7684appVersion<\/strong>\uff09\uff0c<code>tinkerPatch<\/code>\u4f1a\u57fa\u4e8e\u586b\u5165\u7684<code>autoBackupApkPath<\/code>\u81ea\u52a8\u5907\u4efd\u57fa\u7840\u5305\u4fe1\u606f\u5230\u76f8\u5e94\u7684\u6587\u4ef6\u5939\uff0c\u5305\u542b\uff1aapk\u6587\u4ef6\u3001<code>R.txt<\/code>\u6587\u4ef6\u548c<code>mapping.txt<\/code>\u6587\u4ef6 \uff08<strong>\u6ce8\uff1amapping.txt\u662fproguard\u7684\u4ea7\u7269\uff0c\u5982\u679c\u4f60\u6ca1\u6709\u5f00\u542fproguard\u5219\u4e0d\u4f1a\u6709\u8fd9\u4e2a\u6587\u4ef6<\/strong>\uff09<\/p>\n<p><!-- more --><\/p>\n<p>\uff082\uff09\u82e5\u60f3\u53d1\u5e03\u8865\u4e01\u5305\uff0c\u53ea\u9700\u5c06\u81ea\u52a8\u4fdd\u5b58\u4e0b\u6765\u7684\u6587\u4ef6\u5206\u522b\u586b\u5230<code>tinkerpatchSupport<\/code>\u4e2d\u7684<code>baseApkFile<\/code>\u3001<code>baseProguardMappingFile<\/code>\u548c<code>baseResourceRFile<\/code>\u53c2\u6570\u4e2d<\/p>\n<p>\uff083\uff09\u8fd0\u884c<code>tinkerPatchRelease<\/code> task \u6784\u5efa\u8865\u4e01\u5305\uff0c\u8865\u4e01\u5305\u5c06\u4f4d\u4e8e<code>build\/outputs\/tinkerPatch<\/code>\u4e0b<\/p>\n<p>\uff084\uff09\u82e5\u4e00\u4e2a\u57fa\u7ebf\u5305\u6253\u4e86\u591a\u4e2a\u8865\u4e01\u5305\uff0c\u5219\u4f1a\u66f4\u65b0\u5230\u6700\u65b0\u8865\u4e01\u5305\uff0c\u4ee5\u6700\u540e\u4e0a\u4f20\u7684\u8865\u4e01\u4e3a\u51c6\uff0c\u4e5f\u5c31\u662f\u8bf4\u540e\u9762\u7684\u8865\u4e01\u4f1a\u8986\u76d6\u524d\u9762\u7684\u8865\u4e01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TinkerPatch\u7684\u4f7f\u7528\u6b65\u9aa4\u975e\u5e38\u7b80\u5355\uff0c\u4e00\u822c\u6765\u8bf4\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a \uff081\uff09\u8fd0\u884cassembleRelea [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[311],"tags":[465],"class_list":["post-1860","post","type-post","status-publish","format-standard","hentry","category-android-advance","tag-tinker"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1860"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1860\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}