{"id":19915755,"url":"https://github.com/maoruibin/gankdaily","last_synced_at":"2025-04-05T02:11:40.569Z","repository":{"id":91596681,"uuid":"45722744","full_name":"maoruibin/GankDaily","owner":"maoruibin","description":"A application used to  show technical information in every working days, use MVP pattern.","archived":false,"fork":false,"pushed_at":"2017-04-16T13:40:45.000Z","size":1880,"stargazers_count":693,"open_issues_count":2,"forks_count":159,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-03-29T01:13:52.264Z","etag":null,"topics":["android","app","gank","gankio","mvp","rxjava"],"latest_commit_sha":null,"homepage":"http://www.coolapk.com/apk/com.gudong.gankio","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maoruibin.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-11-07T04:38:37.000Z","updated_at":"2025-02-21T22:57:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"57d25cdb-9dab-4fd6-9915-fb022454eded","html_url":"https://github.com/maoruibin/GankDaily","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoruibin%2FGankDaily","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoruibin%2FGankDaily/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoruibin%2FGankDaily/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoruibin%2FGankDaily/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maoruibin","download_url":"https://codeload.github.com/maoruibin/GankDaily/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276189,"owners_count":20912288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","app","gank","gankio","mvp","rxjava"],"created_at":"2024-11-12T21:42:18.580Z","updated_at":"2025-04-05T02:11:40.552Z","avatar_url":"https://github.com/maoruibin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GankDaily\n![icon](/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png \"\")\n\n每日提供技术干货的 App\n\n## 下载\n[fir](http://fir.im/gankdaily) \n\n[酷安](http://www.coolapk.com/apk/com.gudong.gankio) \n\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.gudong.gankio\" target=\"_blank\"\u003e\u003cimg src=\"http://www.android.com/images/brand/get_it_on_play_logo_large.png\"/\u003e\u003c/a\u003e\n\n## 干货数据源\n应用中的所有干货数据均来自[干货集中营](http://gank.io/)。\n\n` 干货集中营是一个技术干货共享平台。每个工作日，网站都会分享一些技术干货信息，包括Android、iOS、App等技术干货，除此之外还有福利和休息视频可供你享用。\n如果你是移动开发者，这个App一定很适合你。当然，如果你是一个宅男，也许你会对每天的福利更感兴趣。Enjoy it。`\n\n## App设计\n整个项目借鉴自 @drakeet 的[妹纸](https://github.com/drakeet/Meizhi)。但是在原项目基础上，\n自己在代码层面和UI层面上做了自己的修改。\n\n### UI设计\n放弃使用瀑布式的妹子流做主页，转而让首页展示当天干货信息，更加注重干货内容(Content)的呈现，\n如下所示，相比原妹纸项目，现在首屏只有一张`福利`图,如果觉得看的不过瘾，应用也提供了纯妹子视图入口，点击首页\n右上角按钮，选择纯妹子，就可以看到所有的妹子们了，更加纯粹的妹子流。\n\n![gank_daily_introduce](/art/gank_introduce.png \"\")\n\n### 代码设计\n原项目使用 Retrofit+RxJava 的组合获取网络数据，再加上使用Lambda表达式，代码已经变得很精简，所以把获取数据的代码放在 Activity 中也不显得混乱，\n但是作为一个有追求的程序员，既然已经知道有 MVP 这种架构模式可以解决项目分层的问题，\n那为什么不试着使用 MVP 去对代码进行进一步的优化呢，所以整个项目使用了 MVP 架构，将所有的数据请求、业务逻辑都提取到 Presenter 层中。\n使用 MVP 后需要为每一个 Activity 编写一个对应一个 Presenter(控制器)类，让 Activity 担当纯粹的 View 角色，\n这样 Activity 就主要负责一些界面更新操作，具体的业务逻辑都交托给 Presenter 层处理，代码结构因此也变得更加清晰。\n\n更多关于项目中对 MVP 模式的实践，这里自己整理了一篇博客进行详细介绍。\n\n[MVP 模式在 GankDaily 中的应用](http://gudong.name/advanced/2015/11/23/gank_mvp_introduce.html)\n   \n## 依赖库   \n* [RxJava](https://github.com/ReactiveX/RxJava) \n* [OkHttp](https://github.com/square/okhttp)\n* [Picasso](https://github.com/square/picasso)\n* [Retrofit](https://github.com/square/retrofit)\n* [Butterknife](https://github.com/JakeWharton/butterknife)\n* [Logger](https://github.com/orhanobut/logger)\n\n## 参考资料\n* [drakeet/Meizhi](https://github.com/drakeet/Meizhi)\n* [浅谈 MVP in Android](http://blog.csdn.net/lmj623565791/article/details/46596109)\n* [Effective Android UI](https://github.com/pedrovgs/EffectiveAndroidUI)\n\n## Author\n* [http://gudong.name](http://gudong.name)\n* [https://github.com/maoruibin](https://github.com/maoruibin)\n* [http://weibo.com/maoruibin](http://weibo.com/maoruibin)\n\n## License\n\n    /*\n     *       \n     * Copyright (C) 2015 Drakeet \u003cdrakeet.me@gmail.com\u003e\n     * Copyright (C) 2015 GuDong \u003cgudong.name@gmail.com\u003e\n     *\n     * Meizhi is free software: you can redistribute it and/or modify\n     * it under the terms of the GNU General Public License as published by\n     * the Free Software Foundation, either version 3 of the License, or\n     * (at your option) any later version.\n     *\n     * Meizhi is distributed in the hope that it will be useful,\n     * but WITHOUT ANY WARRANTY; without even the implied warranty of\n     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n     * GNU General Public License for more details.\n     *\n     * You should have received a copy of the GNU General Public License\n     * along with Meizhi.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n     */\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaoruibin%2Fgankdaily","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaoruibin%2Fgankdaily","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaoruibin%2Fgankdaily/lists"}