{"id":1846,"date":"2023-03-29T21:57:47","date_gmt":"2023-03-29T13:57:47","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1846"},"modified":"2023-04-22T09:10:55","modified_gmt":"2023-04-22T01:10:55","slug":"solving-the-problem-of-empty-jar-packages-after-aar-confusion","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/29\/solving-the-problem-of-empty-jar-packages-after-aar-confusion\/","title":{"rendered":"\u89e3\u51b3aar\u6df7\u6dc6\u540ejar\u5305\u4e3a\u7a7a\u7684\u95ee\u9898"},"content":{"rendered":"<p>aar\u6df7\u6dc6\u540e\uff0cjar\u5305\u4e3a\u7a7a\u7684\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<p>\u9996\u5148\u786e\u4fdd\u6df7\u6dc6\u914d\u7f6e\u7684\u662f<code>proguard-rules.pro<\/code>\uff0c\u800c\u4e0d\u662f<code>consumer-rules.pro<\/code><\/p>\n<p>\u7136\u540e\u7ed9\u5305\u91cc\u7684\u7c7b\u5168\u90fd\u4e0d\u6df7\u6dc6<\/p>\n<p><!-- more --><\/p>\n<pre><code>-keep class me.yezhou.pay.**{*; }<\/code><\/pre>\n<p>\u751f\u6210\u4e00\u4e0b\u770b\u770baar\u7684jar\u5305\u662f\u5426\u4e3a\u7a7a\uff0c\u4e00\u822c\u8fd9\u4e2a\u65f6\u5019\u4e0d\u4f1a\u4e3a\u7a7a\u3002<\/p>\n<p>\u90a3\u4e48\u7ee7\u7eed\u4e0b\u4e00\u6b65\uff0c\u9010\u6b65\u653e\u5f00\u4e9b\u7c7b\u53bb\u6df7\u6dc6\uff1a<\/p>\n<pre><code>-keep class me.yezhou.pay.core.**{ *; }  \/\/\u6307\u5b9a\u4fdd\u7559\u8be5\u5305\u4e0b\u6240\u6709\u6587\u4ef6\u4e0d\u6df7\u6dc6\n-keep class me.yezhou.pay.model.**{ *; }\n-keep class me.yezhou.pay.task.PayTask{ *; } \/\/\u6307\u5b9a\u4fdd\u7559\u8be5\u7c7b\u4e0d\u6df7\u6dc6<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>aar\u6df7\u6dc6\u540e\uff0cjar\u5305\u4e3a\u7a7a\u7684\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff1a \u9996\u5148\u786e\u4fdd\u6df7\u6dc6\u914d\u7f6e\u7684\u662fproguard-rules.pro\uff0c\u800c\u4e0d\u662fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[202],"tags":[307,476],"class_list":["post-1846","post","type-post","status-publish","format-standard","hentry","category-android-build","tag-aar","tag-476"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1846","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=1846"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1846\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}