{"id":1714,"date":"2017-08-01T11:09:14","date_gmt":"2017-08-01T03:09:14","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1714"},"modified":"2017-08-01T11:09:14","modified_gmt":"2017-08-01T03:09:14","slug":"360replugin%e6%8f%92%e4%bb%b6%e5%ae%bf%e4%b8%bb%e8%b0%83%e8%af%95","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1714","title":{"rendered":"360RePlugin\u63d2\u4ef6\u5bbf\u4e3b\u8c03\u8bd5"},"content":{"rendered":"<p>\n\t\u5947\u864e360\u7684<a href=\"https:\/\/github.com\/Qihoo360\/RePlugin\" name=\"RePlugin\" target=\"_blank\" title=\"RePlugin\">RePlugin<\/a>\u63d2\u4ef6\u662f\u4e00\u6b3e<a href=\"http:\/\/www.xttblog.com\/?tag=Android\" name=\"Android\" target=\"_blank\" title=\"Android\">Android<\/a>\u63d2\u4ef6\u3002\u7531360\u624b\u673a\u536b\u58eb\u7684RePlugin Team\u7814\u53d1\uff0c\u4e5f\u662f\u4e1a\u5185\u9996\u4e2a\u63d0\u51fa&rdquo;\u5168\u9762\u63d2\u4ef6\u5316&ldquo;\uff08\u5168\u9762\u7279\u6027\u3001\u5168\u9762\u517c\u5bb9\u3001\u5168\u9762\u4f7f\u7528\uff09\u7684\u65b9\u6848\u3002\n<\/p>\n<p>\n\t\u672c\u6587\u6765\u8bb2\u8ff0\u5982\u4f55&ldquo;\u5229\u7528\u795e\u5947\u7684host-gradle&rdquo;\u6765\u5b9e\u73b0\u63d2\u4ef6\u7684\u5feb\u901f\u5b89\u88c5\u3001\u5feb\u901f\u8c03\u8bd5\u7b49\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"360 RePlugin \u63d2\u4ef6\" src=\"http:\/\/img.blog.csdn.net\/20170630160028331\" style=\"width: 500px;height: 375px\" \/>\n<\/p>\n<h2>\n\t\u4ed3\u5e93\u914d\u7f6e<br \/>\n<\/h2>\n<pre class=\"brush:plain;\">\r\nbuildscript {\r\n\trepositories {\r\n\t\tjcenter()\r\n\t}\r\n\tdependencies {\r\n\t\tclasspath &#039;com.qihoo360.replugin:replugin-host-gradle:2.1.6&#039;\r\n\t}\r\n}<\/pre>\n<h2>\n\t\u63d2\u4ef6\u4f7f\u7528\u914d\u7f6e<br \/>\n<\/h2>\n<p>\n\t\u63d0\u793a\uff1a\uff08\u8fd9\u4e2aapply plugin\u5c3d\u91cf\u653e\u5728android\u914d\u7f6e\u4e4b\u540e\u5427\uff0c\u56e0\u4e3a\u53ef\u4ee5\u81ea\u52a8\u8bfb\u53d6android\u4e2d\u7684\u914d\u7f6e\u9879\uff0c\u65b9\u4fbf\u4ee5\u540e\u5347\u7ea7\u3002\u7b80\u5355\u7684\u8bf4\uff0c\u5c31\u662f\u653e\u5728\u4f60build.gradle\u6587\u4ef6\u672b\u5c3e\u5373\u53ef\uff09\n<\/p>\n<pre class=\"brush:plain;\">\r\napply plugin: &#039;replugin-host-gradle&#039;\r\n\/\/ If use AppCompat, open the useAppCompat repluginHostConfig { useAppCompat = true }<\/pre>\n<h2>\n\t\u63d2\u4ef6\u7684Gradle\u4efb\u52a1<br \/>\n<\/h2>\n<ul>\n<li>\n\t\trpGenerateDebugBuiltinJson\u6216rpGenerateReleaseBuiltinJson\u7b49\uff1a\u751f\u6210\u5185\u7f6e\u63d2\u4ef6\u7684\u914d\u7f6e\u6587\u4ef6\uff08\u4e00\u822c\u5f88\u5c11\u4f7f\u7528\uff0c\u7f16\u8bd1\u65f6\u4f1a\u81ea\u52a8\u5904\u7406\uff09\n\t<\/li>\n<li>\n\t\trpGenerateDebugHostConfig\u6216rpGenerateReleaseHostConfig\u7b49\uff1a\u751f\u6210\u63d2\u4ef6\u4eec\u7684\u5751\u4f4d\u914d\u7f6e\u6587\u4ef6\uff08\u4e00\u822c\u5f88\u5c11\u4f7f\u7528\uff0c\u7f16\u8bd1\u65f6\u4f1a\u81ea\u52a8\u5904\u7406\uff09\n\t<\/li>\n<li>\n\t\trpShowPluginsDebug\u548crpShowPluginsRelease\u7b49\uff1a\u67e5\u770b\u6240\u6709\u5185\u7f6e\u63d2\u4ef6\u7684\u4fe1\u606f\n\t<\/li>\n<\/ul>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1714\">360RePlugin\u63d2\u4ef6\u5bbf\u4e3b\u8c03\u8bd5<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u5947\u864e360\u7684RePlugin\u63d2\u4ef6\u662f\u4e00\u6b3eAndroid\u63d2\u4ef6\u3002\u7531360\u624b\u673a\u536b\u58eb\u7684RePlugin Team\u7814\u53d1\uff0c\u4e5f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[891,1403,1338],"class_list":["post-1714","post","type-post","status-publish","format-standard","hentry","category-java","tag-android","tag-gradle","tag-replugin"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1714"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1714\/revisions"}],"predecessor-version":[{"id":1715,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1714\/revisions\/1715"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}