{"id":18057541,"url":"https://github.com/voghdev/dagger2-clean-mvp-example","last_synced_at":"2025-04-11T04:41:54.553Z","repository":{"id":33180420,"uuid":"36821843","full_name":"voghDev/dagger2-clean-mvp-example","owner":"voghDev","description":"Sample project with a basic approach to CLEAN architecture on Android","archived":false,"fork":false,"pushed_at":"2020-05-04T10:55:36.000Z","size":2206,"stargazers_count":41,"open_issues_count":3,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T02:51:12.884Z","etag":null,"topics":["android","architecture","clean-architecture","mvp","patterns","testing"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voghDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-03T18:16:30.000Z","updated_at":"2023-09-08T16:58:19.000Z","dependencies_parsed_at":"2022-08-19T19:10:31.167Z","dependency_job_id":null,"html_url":"https://github.com/voghDev/dagger2-clean-mvp-example","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/voghDev%2Fdagger2-clean-mvp-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voghDev%2Fdagger2-clean-mvp-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voghDev%2Fdagger2-clean-mvp-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voghDev%2Fdagger2-clean-mvp-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voghDev","download_url":"https://codeload.github.com/voghDev/dagger2-clean-mvp-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345279,"owners_count":21088242,"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","architecture","clean-architecture","mvp","patterns","testing"],"created_at":"2024-10-31T02:08:13.151Z","updated_at":"2025-04-11T04:41:54.522Z","avatar_url":"https://github.com/voghDev.png","language":"Java","readme":"# Dagger2-CLEAN-MVP Example\n\n[![Build Status](https://travis-ci.org/voghDev/dagger2-clean-mvp-example.svg?branch=master)](https://travis-ci.org/voghDev/dagger2-clean-mvp-example)\n\nSample project with the first steps of my approach to Android CLEAN architecture, based on elegant solutions from respected developers.\nFeatures a List of users, obtained from randomuser API.\nSome of the aspects covered on this project are:\n\n* Dependency Injection using [Dagger2][6].\n* Elegant ~~ListView~~ **RecyclerView** implementation using [Renderers][15].\n* View binding using Jake Wharton's [ButterKnife 6.x][11] (current is 8.x).\n* Image loading using [picasso][12], round transformations using **PorterDuff**.\n* Model-View-Presenter + Interactor + DataSource layers, with different **DataSource**s:\n  * a REST Api using [retrofit][13]\n  * a local **JSON file**\n  * a class generating **mock** instances\n* Code-style rules using [checkstyle][16]. [This blogpost][17] indicates how checkstyle has been imported\n* Android Unit testing using JUnit 4 and [Mockito][18].\n* UI Testing using [Espresso][19]\n* Simple **MVP** implementation without interfaces because [Interfaces for presenters in MVP are a waste of time](https://gist.github.com/pedrovgs/61a8301a9952d195081edc989aa1fd41).\n* [Travis CI][22] integration including instrumentation tests ran on an AVD. see [.travis.yml script][23]\n\n![Screenshot][firstScreenshot]\n\nThis project has taken the following **talks**, **articles**, and **repos** as inspiration (it wouldn't have been possible without them)\n\n* [Jorge Barroso - Forgetting Android][3]\n* [Pedro Vicente Gómez Sánchez - EffectiveAndroidUI][2]\n* [Dependency Injection on Android - Pedro Gómez][4]\n* [Dagger2 Example by David Lázaro][5]\n* [Google's Dagger Example][6]\n* [Antonio Leiva's MVP Example][7] and [Blog article][8]\n* [protohipster - Jorge Barroso][21]\n* [UpcomingMoviesMVP - Jose Luis Martín][14]\n* [KataSuperHeroesAndroid - Karumi][20]\n\nTODOs\n-----\n\n- [X] A better Thread management to do heavier operations outside the UI Thread\n- [X] RecyclerViews, Renderers2.0\n- [X] Unit tests\n- [X] UI tests\n- [X] Refactor to add Repository layer\n- [X] Refactor Presenter layer to make it testable with JUnit\n- [X] Add retrofit2-based API layer ~keeping the retrofit1 one~\n- [X] Redesign UI to a more attractive one\n\nDeveloped By\n------------\n\n* Olmo Gallegos Hernández - [@voghDev][9] - [mobiledevstories.com][10]\n\n\u003ca href=\"http://twitter.com/voghDev\"\u003e\n  \u003cimg alt=\"Follow me on Twitter\" src=\"https://image.freepik.com/iconos-gratis/twitter-logo_318-40209.jpg\" height=\"60\" width=\"60\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.linkedin.com/profile/view?id=91543271\"\u003e\n  \u003cimg alt=\"Find me on Linkedin\" src=\"https://image.freepik.com/iconos-gratis/boton-del-logotipo-linkedin_318-84979.png\" height=\"60\" width=\"60\" /\u003e\n\u003c/a\u003e\n\n* Sylvia Domenech\n\n# License\n\n    Copyright 2016 Olmo Gallegos Hernández\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\nImagery\n-------\n\nAll icons \u0026 art were obtained from [flaticon.com][24], an excellent resource for downloading icons under attribution. If you don't know it, I recommend you to have a look, and don't forget to credit the authors!\n\n[firstScreenshot]: ./screenshots/sample1.gif\n[1]: https://github.com/pedrovgs/\n[2]: https://github.com/pedrovgs/EffectiveAndroidUI\n[3]: https://www.youtube.com/watch?v=ROdIvrLL1ao\n[4]: https://www.youtube.com/watch?v=N6yqe88ysNw\n[5]: https://github.com/dlazaro66/Dagger2-example\n[6]: https://github.com/google/dagger\n[7]: https://github.com/antoniolg/androidmvp\n[8]: http://www.limecreativelabs.com/mvp-android/\n[9]: http://twitter.com/voghDev\n[10]: http://www.mobiledevstories.com\n[11]: https://github.com/JakeWharton/butterknife\n[12]: https://github.com/square/picasso\n[13]: https://github.com/square/retrofit\n[14]: https://github.com/jlmd/UpcomingMoviesMVP\n[15]: https://github.com/pedrovgs/Renderers\n[16]: http://checkstyle.sourceforge.net/\n[17]: https://mobiledevstories.wordpress.com/2016/06/17/android-configuring-checkstyle-for-your-android-project/\n[18]: http://mockito.org/\n[19]: https://google.github.io/android-testing-support-library/docs/espresso/\n[20]: https://github.com/Karumi/KataSuperHeroesAndroid\n[21]: https://github.com/flipper83/protohipster\n[22]: http://travis-ci.org\n[23]: https://github.com/voghDev/dagger2-clean-mvp-example/blob/master/.travis.yml\n[24]: http://www.flaticon.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoghdev%2Fdagger2-clean-mvp-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoghdev%2Fdagger2-clean-mvp-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoghdev%2Fdagger2-clean-mvp-example/lists"}