{"id":13471988,"url":"https://github.com/janishar/android-mvp-architecture","last_synced_at":"2025-10-24T00:04:14.379Z","repository":{"id":39617578,"uuid":"80192374","full_name":"janishar/android-mvp-architecture","owner":"janishar","description":"This repository contains a detailed sample app that implements MVP architecture using Dagger2,  GreenDao, RxJava2, FastAndroidNetworking and PlaceholderView","archived":false,"fork":false,"pushed_at":"2024-04-16T15:28:00.000Z","size":6144,"stargazers_count":4439,"open_issues_count":40,"forks_count":1242,"subscribers_count":193,"default_branch":"master","last_synced_at":"2024-10-29T15:34:52.999Z","etag":null,"topics":["android-architecture","android-mvp-architecture","dagger","dagger2","fast-android-networking","greendao","mindorks","mvp","mvp-architecture","placeholderview","rxjava","rxjava-android","rxjava2"],"latest_commit_sha":null,"homepage":"https://janisharali.com","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/janishar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-27T08:39:06.000Z","updated_at":"2024-10-25T14:34:39.000Z","dependencies_parsed_at":"2024-01-07T06:49:54.770Z","dependency_job_id":"1fb56a72-0f49-47dd-8fea-64ed53f049b1","html_url":"https://github.com/janishar/android-mvp-architecture","commit_stats":null,"previous_names":["mindorksopensource/android-mvp-architecture"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janishar%2Fandroid-mvp-architecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janishar%2Fandroid-mvp-architecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janishar%2Fandroid-mvp-architecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janishar%2Fandroid-mvp-architecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janishar","download_url":"https://codeload.github.com/janishar/android-mvp-architecture/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248469139,"owners_count":21108963,"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","android-mvp-architecture","dagger","dagger2","fast-android-networking","greendao","mindorks","mvp","mvp-architecture","placeholderview","rxjava","rxjava-android","rxjava2"],"created_at":"2024-07-31T16:00:50.910Z","updated_at":"2025-10-24T00:04:14.314Z","avatar_url":"https://github.com/janishar.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"[![Deprecated](https://img.shields.io/badge/deprecated-yes-red)](https://github.com/janishar/wimm-android-app)\n\n---\n# This Project is [Deprecated] goto latest project: [Modern Android Development - WhereIsMyMotivation](https://github.com/unusualcodeorg/wimm-android-app)\n---\n\n# Deprecated\n\n### Android MVP Architecture: Sample App\n\nThis repository contains a detailed sample app that implements MVP architecture using Dagger2, GreenDao, RxJava, FastAndroidNetworking, PlaceHolderView and AndroidDebugDatabase\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://janishar.github.io/images/mvp-app-pics/mvp-login.png\" width=\"250\"\u003e\n  \u003cimg src=\"https://janishar.github.io/images/mvp-app-pics/main-view.png\" width=\"250\"\u003e\n  \u003cimg src=\"https://janishar.github.io/gifs/mvp-app.gif\" width=\"250\"\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://janishar.github.io/images/mvp-app-pics/mvp-drawer.png\" width=\"200\"\u003e\n  \u003cimg src=\"https://janishar.github.io/images/mvp-app-pics/mvp-rating.png\" width=\"200\"\u003e\n  \u003cimg src=\"https://janishar.github.io/images/mvp-app-pics/mvp-feed.png\" width=\"200\"\u003e\n  \u003cimg src=\"https://janishar.github.io/images/mvp-app-pics/mvp-empty-state.png\" width=\"200\"\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n# Architecture Blueprint\n![Blueprint](https://janishar.github.io/images/mvp-app-pics/mvp-arch.png)\n\u003cbr\u003e\n\n# Project Structure\n![Structure](https://janishar.github.io/images/mvp-app-pics/mvp-project-structure-diagram.png)\n\u003cbr\u003e\n\n# About The Author\nYou can connect with me here:\n* [Janishar Ali](https://janisharali.com)\n* [Twitter](https://twitter.com/janisharali)\n* [YouTube Channel](https://www.youtube.com/@unusualcode)\n\n# Read the below listed articles. They describe the MVP concepts and the Project structure.\n1. [MVP: Part 1](https://janisharali.com/blog/essential-guide-for-designing-your-android-app-architecture-mvp-part-1-74efaf1cda40#.lkml1yggq)\n2. [MVP: Part 2](https://janisharali.com/blog/essential-guide-for-designing-your-android-app-architecture-mvp-part-2-b2ac6f3f9637#.dge0wl8rl)\n3. [MVP: Part 3](https://janisharali.com/blog/essential-guide-for-designing-your-android-app-architecture-mvp-part-3-dialog-viewpager-and-7bdfab86aabb)\n4. [Extension with Interactors and Repositories](https://janisharali.com/blog/android-mvp-architecture-extension-with-interactors-and-repositories-bd4b51972339)\n\n#### The app has following packages:\n1. **data**: It contains all the data accessing and manipulating components.\n2. **di**: Dependency providing classes using Dagger2.\n3. **ui**: View classes along with their corresponding Presenters.\n4. **service**: Services for the application.\n5. **utils**: Utility classes.\n\n#### Classes have been designed in such a way that it could be inherited and maximize the code reuse.\n\n### Library reference resources:\n2. Dagger2: https://github.com/janishar/android-dagger2-example\n4. PlaceHolderView: https://github.com/janishar/PlaceHolderView\n6. Calligraphy: https://github.com/chrisjenx/Calligraphy\n7. GreenDao: http://greenrobot.org/greendao/\n8. ButterKnife: http://jakewharton.github.io/butterknife/\n\n### Concept reference resources:\n1. [Introduction to Dagger 2: Part 1](https://janisharali.com/blog/introduction-to-dagger-2-using-dependency-injection-in-android-part-1-223289c2a01b#.ki6nt86l6)\n2. [Introduction to Dagger 2: Part 2](https://janisharali.com/blog/introduction-to-dagger-2-using-dependency-injection-in-android-part-2-b55857911bcd#.mkpzyk8sa)\n3. [Android Dagger2: Critical things to know before you implement](https://janisharali.com/blog/android-dagger2-critical-things-to-know-before-you-implement-275663aecc3e#.bskiz1879)\n4. [Android Tinder Swipe View Example](https://janisharali.com/blog/android-tinder-swipe-view-example-3eca9b0d4794#.u7i7jbbvy)\n5. [RxJava Anatomy: What is RxJava, how RxJava is designed, and how RxJava works.](https://janisharali.com/blog/rxjava-anatomy-what-is-rxjava-how-rxjava-is-designed-and-how-rxjava-works-d357b3aca586)\n6. [Powerful Android ORM: greenDAO 3 Tutorial](https://blog.mindorks.com/powerful-android-orm-greendao-3-tutorial)\n\n### Looking for MVVM Architecture - [Check here](https://github.com/janishar/android-mvvm-architecture)\n\n### Looking for Kotlin MVP Architecture - [Check here](https://github.com/janishar/android-kotlin-mvp-architecture)\n\n### How do I use this project?\nThis is a boilerplate project aimed to help bootstrap new Android MVP Applications. Feel free to fork this application or use [AndroidStarters](http://androidstarters.com/) to create new app using this boilerplate.\n\n# MVP template\n\nWhen we follow any architecture pattern like MVP, MVVM, MVP clean, we always come across a small but repetitive task to create basic files like Android Activity, Presenter, View, Api models and then writing boiler plate code. This usually takes 1-2 hours for each single screen. To ease out work and save time We have created an automated template which will do above work in less than 20 seconds.\n\n### How to Install\n\nFind the template/MVPActivity folder under root directory of android-mvp-architecture app. Paste the MVPActivity folder at below location.\n1. Windows - C:\\Program Files\\Android\\Android Studio\\plugins\\android\\lib\\templates\\activities\n2. Mac - /Applications/Android/Studio.app/Contents/plugins/android/lib/templates/activities\n\nRestart the Android Studio.\n\n![Blueprint](https://github.com/sachinrana135/android-mvp-architecture/blob/feature/mvp_template/template/how_to_install.gif)\n\u003cbr\u003e\n\n### How to use\n\nSelect the folder under which you want to create a new MVP folder. This MVP folder will contain Activity, Presenter, MVpPresenter and View class. For example, to create a new MVP folder under “view” folder, do as shown below.\n\n![Blueprint](https://github.com/sachinrana135/android-mvp-architecture/blob/feature/mvp_template/template/How_to_use_template.gif)\n\u003cbr\u003e\n\n\n\n### License\n```\n   Copyright (C) 2023 JANISHAR ALI ANWAR\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```\n\n### Contributing to Android MVP Architecture\nAll pull requests are welcome, make sure to follow the [contribution guidelines](CONTRIBUTING.md)\nwhen you submit pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanishar%2Fandroid-mvp-architecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanishar%2Fandroid-mvp-architecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanishar%2Fandroid-mvp-architecture/lists"}