
{"id":793,"date":"2016-11-14T15:37:44","date_gmt":"2016-11-14T07:37:44","guid":{"rendered":"http:\/\/www.jiandaima.com\/blog\/?p=793"},"modified":"2016-11-14T15:38:11","modified_gmt":"2016-11-14T07:38:11","slug":"%e5%ae%89%e5%8d%93android%e6%ba%90%e7%a0%81-%e7%ae%80%e8%af%97android-%e6%ba%90%e7%a0%81%ef%bc%8cpython-%e5%92%8c-flask%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%ab%af%e5%90%8e%e5%8f%b0%e6%ba%90%e7%a0%81","status":"publish","type":"post","link":"http:\/\/www.jiandaima.com\/blog\/archives\/793.html","title":{"rendered":"[\u5b89\u5353,android\u6e90\u7801] \u7b80\u8bd7Android \u6e90\u7801\uff0cPython \u548c Flask\u670d\u52a1\u5668\u7aef\u540e\u53f0\u6e90\u7801\u4e0b\u8f7d"},"content":{"rendered":"<p>\u7b80\u8bd7Android \u6e90\u7801\uff0cPython \u548c Flask\u670d\u52a1\u5668\u7aef\u540e\u53f0\u6e90\u7801\u4e0b\u8f7d<\/p>\n<p>\u7b80\u8bd7 \u7684\u60f3\u6cd5\u6700\u521d\u6765\u6e90\u4e8e\u6211\u9605\u8bfb\u7684\u4e00\u672c\u6765\u81ea Kevin \u7684\u4e66\u300a Producter \u300b\uff0c\u4e66\u4e2d\u4ecb\u7ecd\u4e86 iOS \u5c0f\u8bb0\u7684\u5f00\u53d1\u8bbe\u8ba1\u8fc7\u7a0b\u3002\u552f\u4e00\u7684\u7f3a\u61be\u662f\u6ca1\u6709\u5f00\u53d1 Android \u7248\u672c\u3002\u56e0\u6b64\u6211\u8054\u7cfb Kevin \u5e76\u83b7\u53d6\u4e86\u5f00\u53d1 Android \u7248\u672c\u7684\u6388\u6743\u3002<\/p>\n<p>\u7b80\u8bd7 \u4e3b\u8981\u7531\u6211\u72ec\u81ea\u5f00\u53d1\uff0c\u5305\u62ec Android \u548c Server \u7aef\u7684\uff0c\u4e3b\u8981\u5229\u7528\u5982\u5468\u672b\u6216\u5e73\u65f6\u665a\u4e0a\u7684\u4e1a\u4f59\u65f6\u95f4\u3002\u5f00\u53d1\u7684\u8fc7\u7a0b\u662f\u6bd4\u8f83\u7d2f\u7684\uff0c\u5f88\u591a\u5468\u672b\u8981\u71ac\u591c\u5230\u5f88\u665a\uff1b\u4f46\u4e5f\u662f\u5145\u6ee1\u60ca\u559c\u7684\uff0c\u56e0\u4e3a\u91cc\u9762\u6709\u4e0d\u5c11\u6765\u81ea\u81ea\u5df1\u7684\u7075\u611f\u521b\u610f\u3002<\/p>\n<p>\u629b\u5f00\u5929\u5929\u7528\u7684 Google Material Design \uff0c\u4e0d\u65ad\u601d\u8003\u65b0\u9c9c\u7684\u8bbe\u8ba1\u5e76\u4ece\u5de5\u7a0b\u89d2\u5ea6\u53bb\u5b9e\u73b0\u5b83\uff0c\u8fd9\u603b\u662f\u975e\u5e38\u6709\u6210\u5c31\u611f\u7684\u3002<\/p>\n<p>\u7b80\u8bd7 2.0 \u6700\u4e3b\u8981\u7684\u529f\u80fd\u662f\u767b\u5f55\u6ce8\u518c\u3001\u6570\u636e\u4e91\u540c\u6b65\u3002\u7531\u4e8e 1.0 \u662f\u5355\u673a\u7248\uff0c\u6240\u4ee5\u6570\u636e\u4e91\u5907\u4efd\u8fd9\u4e00\u70b9\u662f\u6700\u591a\u7528\u6237\u53cd\u9988\u7684\u3002\u4e5f\u6b63\u662f\u8fd9\u4e2a\u9700\u6c42\uff0c\u6211\u51b3\u5b9a\u91cd\u65b0\u4e3a \u7b80\u8bd7 \u642d\u5efa\u540e\u53f0\uff0c\u5b9e\u73b0\u6570\u636e\u4e91\u5b58\u50a8\u3002\u4e5f\u6b63\u662f\u56e0\u4e3a\u6709\u4e86\u540e\u53f0\u652f\u6301\uff0c\u7b80\u8bd7 \u6dfb\u52a0\u4e86\u5f88\u591a\u4ee5\u524d\u65e0\u6cd5\u5b9e\u73b0\u7684\u529f\u80fd\uff0c\u6bd4\u5982\u65e0\u9650\u591a\u5b9e\u65f6\u66f4\u65b0\u7684\u9996\u9875\u56fe\u7247\u548c\u4e09\u884c\u8bd7\u7b49\u7b49\u3002<\/p>\n<p>\u5e0c\u671b\u7b80\u8bd7\u8d28\u6734\u4f20\u7edf\u7684\u4e2d\u56fd\u98ce\u7279\u8d28\u80fd\u8ba9\u7528\u6237\u91cd\u65b0\u611f\u53d7\u5230\u6587\u5b57\u7684\u7f8e\u597d\uff0c\u5728\u5f62\u5f71\u5bc2\u5bde\u65f6\uff0c\u627e\u56de\u4e00\u70b9\u6e29\u6696\u3002<\/p>\n<p>\u5f53\u7136\u5566\uff0c\u5982\u679c\u5c0f\u4f19\u4f34\u4eec\u80fd\u628a\u8fd9\u4e2a\u7f8e\u597d\u7684 app \u4ecb\u7ecd\u7ed9\u8eab\u8fb9\u4eba\u90a3\u66f4\u662f\u518d\u597d\u4e0d\u8fc7\u3002<\/p>\n<p>\u4e00\u6b3e\u4f18\u96c5\u7684\u4e2d\u56fd\u98ceAndroid App\uff0c\u5305\u62ecAndroid\u7aef\u548cServer\u7aef\uff0c\u652f\u6301\u767b\u5f55\u6ce8\u518c\uff0c\u6570\u636e\u4e91\u7aef\u540c\u6b65\uff0c\u79bb\u7ebf\u6570\u636e\u5b58\u50a8\u548c\u622a\u5c4f\u5206\u4eab\u7b49\u529f\u80fd\u3002<\/p>\n<p>\u6280\u672f\uff1a<\/p>\n<p>Android<\/p>\n<p>\u7b80\u8bd7 Android \u4f9d\u8d56\u4e86\u5f53\u524d\u6700\u6d41\u884c\u7684 Android \u5e93\u6765\u642d\u5efa\u7a33\u5b9a\u7b80\u6d01\u7684\u67b6\u6784\u3002<\/p>\n<p>\u6570\u636e\u5e93\u5c42: DBFlow to manage sqlite database;<br \/>\n\u7f51\u7edc\u5c42: OkHttp3 & Retrofit2, and Stetho to debug http requests;<br \/>\nRx\u5c42: RxJava & RxAndroid;<br \/>\n\u4f9d\u8d56\u6ce8\u5165: Dagger2;<br \/>\nLogging: Timber;<br \/>\n\u56fe\u7247\u52a0\u8f7d: Picasso;<br \/>\n\u5d29\u6e83\u76d1\u6d4b: Crashlytics;<br \/>\n\u5176\u5b83: Eventbus.<br \/>\n\u611f\u8c22 Square \u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u5f88\u591a\u4f18\u79c0\u7684\u5f00\u6e90\u5e93.<\/p>\n<p>\u670d\u52a1\u7aef<\/p>\n<p>\u7b80\u8bd7\u670d\u52a1\u7aef\u4e3b\u8981\u91c7\u7528\u4e86 Python \u548c Flask.<\/p>\n<p>\u670d\u52a1\u7aef\u4e3b\u8981\u5206\u6210\u4e09\u5c42\uff1a<\/p>\n<p>www\u5c42\uff1a\u8be5\u5c42\u4e3b\u8981\u7528\u6765\u63a5\u53d7client\u4f20\u8fc7\u6765\u7684\u8bf7\u6c42\uff0c\u89e3\u6790\u53c2\u6570\uff0c\u89e3\u5bc6token\u548c\u5bf9\u6240\u6709request\u8bb0\u5f55logging\u7b49\uff0c\u7136\u540e\u8c03\u7528logic\u5c42\u6765\u8fdb\u884c\u5904\u7406\uff1b<br \/>\nlogic\u5c42\uff1a\u8be5\u5c42\u4e3b\u8981\u7528\u6765\u5904\u7406\u4e1a\u52a1\u76f8\u5173\u7684\u903b\u8f91\uff0c\u5e76\u4e14\u8c03\u7528db\u5c42\u7684\u63a5\u53e3\u6765\u8fdb\u884c\u6570\u636e\u64cd\u4f5c\uff1b<br \/>\ndb\u5c42\uff1a\u8be5\u5c42\u5c06\u6240\u6709\u6570\u636e\u5e93\u64cd\u4f5c\u5c01\u88c5\u8d77\u6765\uff0c\u6267\u884cdb\u64cd\u4f5c\uff0c\u5e76\u5bf9\u5916\u63d0\u4f9b\u62bd\u8c61\u7684\u6570\u636e\u5904\u7406\u63a5\u53e3\u3002<br \/>\nAndroid \u754c\u9762<\/p>\n<p> <a href=\"https:\/\/www.jiandaima.com\/blog\/wp-content\/uploads\/2016\/11\/20161114153302.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img decoding=\"async\" src=\"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2016\/11\/20161114153302-300x256.png\" alt=\"[\u5b89\u5353,android\u6e90\u7801] \u7b80\u8bd7Android \u6e90\u7801\uff0cPython \u548c Flask\u670d\u52a1\u5668\u7aef\u540e\u53f0\u6e90\u7801\u4e0b\u8f7d\"   class=\"aligncenter size-medium wp-image-794\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.jiandaima.com\/blog\/wp-content\/uploads\/2016\/11\/20161114153329.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img decoding=\"async\" src=\"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2016\/11\/20161114153329-300x255.png\" alt=\"[\u5b89\u5353,android\u6e90\u7801] \u7b80\u8bd7Android \u6e90\u7801\uff0cPython \u548c Flask\u670d\u52a1\u5668\u7aef\u540e\u53f0\u6e90\u7801\u4e0b\u8f7d\"  class=\"aligncenter size-medium wp-image-795\" \/><\/a><\/p>\n<p>\u5f00\u53d1\u5386\u53f2\uff1a<br \/>\n\u9879\u76ee\u7684\u5f00\u53d1\u90fd\u662f\u5229\u7528\u672c\u4eba\u7684\u4e1a\u4f59\u65f6\u95f4\uff0c\u56e0\u6b64\u8fdb\u5ea6\u5e76\u6ca1\u6709\u592a\u5feb\u3002<\/p>\n<p>[2016\/11\/06] \u914d\u7f6e\u963f\u91cc\u4e91\u670d\u52a1\u5668\uff1b\u5b89\u88c5Nginx\uff0c gunicorn\u7b49\u8fd0\u884c\u73af\u5883\uff1b\u642d\u5efajenkins\u8fdb\u884cserver\u90e8\u7f72\uff1b\u7f16\u5199Unit Test<br \/>\n[2016\/10\/30] \u6ce8\u518c\u767b\u5f55\u754c\u9762\u7684\u8bbe\u8ba1\uff0c\u622a\u5c4f\u5206\u4eab\u7b49\u5176\u5b83\u6bd4\u8f83\u9177\u7684\u5c0f\u529f\u80fd\u3002<br \/>\n[2016\/10\/25] \u5b8c\u6210 Android \u548c\u540e\u53f0\u7684\u6570\u636e\u540c\u6b65\uff0c\u5c06\u6570\u636e\u540c\u6b65\u81f3\u540e\u53f0\uff1b\u63d0\u9ad8\u540e\u53f0\u7684\u9519\u8bef\u5904\u7406\u80fd\u529b\u548cconfig\u673a\u5236\u3002 [Server+Android]<br \/>\n[2016\/09\/03] \u5b8c\u6210 Android \u7aef\u7684\u7528\u6237\u7ba1\u7406\uff0c\u6ce8\u518c\u548c\u767b\u5f55\u6d41\u7a0b\u3002 [Server+Android]<br \/>\n[2016\/08\/25] \u670d\u52a1\u5668\u4ece LeanCloud \u8fc1\u79fb\u672c\u5730\u5230 Apache + Mysql + wsgi + Flask \u7684\u7ed3\u6784\u4e0a\uff0c\u81ea\u884c\u642d\u5efa Mysql \u6570\u636e\u5e93\u3002 [Server]<br \/>\n[2016\/08\/20] \u7740\u624b\u642d\u5efapython Flask\u540e\u53f0\u6846\u67b6\uff0c\u5e76\u57fa\u4e8e LeanCloud \u6765\u8fdb\u884c\u90e8\u7f72\u3002 [Server]<br \/>\n[2016\/08\/18] \u5728Android\u7aef\u96c6\u6210 Dagger Retrofit2 OkHttp3 RxJava\u7b49\u5e93\u3002 [Android]<\/p>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>[\u5b89\u5353,android\u6e90\u7801] \u7b80\u8bd7Android \u6e90\u7801\uff0cPython \u548c Flask\u670d\u52a1\u5668\u7aef\u540e\u53f0\u6e90\u7801\u4e0b\u8f7d,\u7b80\u8bd7Android \u6e90\u7801\uff0cPython \u548c Flask\u670d\u52a1\u5668\u7aef\u540e\u53f0\u6e90\u7801\u4e0b\u8f7d<\/p>\n","protected":false},"author":1,"featured_media":522,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[234,233,232],"class_list":["post-793","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-application-source-code","tag-android-","tag-python"],"post_thumbnail_image":"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2016\/05\/64022-3.png?imageView2\/1\/w\/300\/h\/300#","content_first_image":"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2016\/11\/20161114153302.png","post_medium_image_300":"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2016\/05\/64022-3.png?imageView2\/1\/w\/600\/h\/356#","post_thumbnail_image_624":"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2016\/05\/64022-3.png","post_frist_image":"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2016\/11\/20161114153302.png","post_medium_image":"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2016\/05\/64022-3.png?imageView2\/1\/w\/600\/h\/356#","post_large_image":"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2016\/05\/64022-3.png","post_full_image":"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2016\/05\/64022-3.png","post_all_images":[{"imagesurl":"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2016\/11\/20161114153302-300x256.png","id":"image0"},{"imagesurl":"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2016\/11\/20161114153329-300x255.png","id":"image1"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":5,"total_comments":0,"category_name":"\u5e94\u7528\u7a0b\u5e8f\u6e90\u7801","post_date":"2016-11-14","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"http:\/\/images.jiandaima.com\/blog\/wp-content\/uploads\/2020\/02\/img_5e44112722964.png","avatarurls":[],"related_posts":[],"pageviews":748,"next_post_id":804,"next_post_title":"[\u5b89\u5353,android\u6e90\u7801] Android\u5e73\u53f0\u66ff\u4ee3\u865a\u62df\u6309\u952e\u60ac\u6d6e\u7403\uff0c\u53c2\u8003\u9b45\u65cf\u60ac\u6d6e\u7403\u8bbe\u8ba1\u3002","previous_post_id":785,"previous_post_title":"Android\u57fa\u7840\u52a8\u753b,\u7ec4\u5408\u52a8\u753b\uff0c\u5e27\u52a8\u753b\uff0c\u5e03\u5c40\u52a8\u753b\uff0cActivity\u8df3\u8f6c\u52a8\u753b \u6e90\u7801\u4e0b\u8f7d","_links":{"self":[{"href":"http:\/\/www.jiandaima.com\/blog\/wp-json\/wp\/v2\/posts\/793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jiandaima.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jiandaima.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jiandaima.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jiandaima.com\/blog\/wp-json\/wp\/v2\/comments?post=793"}],"version-history":[{"count":0,"href":"http:\/\/www.jiandaima.com\/blog\/wp-json\/wp\/v2\/posts\/793\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.jiandaima.com\/blog\/wp-json\/wp\/v2\/media\/522"}],"wp:attachment":[{"href":"http:\/\/www.jiandaima.com\/blog\/wp-json\/wp\/v2\/media?parent=793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jiandaima.com\/blog\/wp-json\/wp\/v2\/categories?post=793"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jiandaima.com\/blog\/wp-json\/wp\/v2\/tags?post=793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}