{"id":18011366,"url":"https://github.com/joaquimley/avenging","last_synced_at":"2025-04-07T15:07:39.868Z","repository":{"id":46107296,"uuid":"65289278","full_name":"JoaquimLey/avenging","owner":"JoaquimLey","description":"MVP pattern example on Android: no Dagger or RxJava example","archived":false,"fork":false,"pushed_at":"2021-11-14T11:27:07.000Z","size":18428,"stargazers_count":273,"open_issues_count":6,"forks_count":72,"subscribers_count":15,"default_branch":"development","last_synced_at":"2025-03-31T12:08:34.644Z","etag":null,"topics":["android","api","architecture","article","avenging","espresso","example","example-app","howto","marvel","medium","mockito","mvp","retrofit","tutorial","uitests","unit-testing","unit-tests"],"latest_commit_sha":null,"homepage":"http://joaquimley.com/blog/avenging/","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/JoaquimLey.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}},"created_at":"2016-08-09T11:21:17.000Z","updated_at":"2025-01-25T12:49:39.000Z","dependencies_parsed_at":"2022-09-23T06:50:27.568Z","dependency_job_id":null,"html_url":"https://github.com/JoaquimLey/avenging","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoaquimLey%2Favenging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoaquimLey%2Favenging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoaquimLey%2Favenging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoaquimLey%2Favenging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoaquimLey","download_url":"https://codeload.github.com/JoaquimLey/avenging/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675597,"owners_count":20977376,"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","api","architecture","article","avenging","espresso","example","example-app","howto","marvel","medium","mockito","mvp","retrofit","tutorial","uitests","unit-testing","unit-tests"],"created_at":"2024-10-30T03:09:49.712Z","updated_at":"2025-04-07T15:07:39.833Z","avatar_url":"https://github.com/JoaquimLey.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![AppIcon](https://github.com/JoaquimLey/avenging/blob/development/core/src/main/res/mipmap-xxhdpi/ic_launcher.png) \n\n# Avenging - MVP project\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Avenging-brightgreen.svg?style=flat)](http://android-arsenal.com/details/3/4545)\n[![MaterialUp](https://img.shields.io/badge/MaterialUp-Avenging-blue.svg?style=flat)](https://material.uplabs.com/posts/avenging-mvp-project)\n[![Build Status](https://travis-ci.org/JoaquimLey/avenging.svg?branch=development)](https://travis-ci.org/JoaquimLey/avenging)\n[![codecov](https://codecov.io/gh/JoaquimLey/avenging/branch/development/graph/badge.svg)](https://codecov.io/gh/JoaquimLey/avenging)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/fa075cf6a50a4bc0b875406842f1496a)](https://www.codacy.com?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=JoaquimLey/avenging\u0026amp;utm_campaign=Badge_Grade)\n![minSdkVersion](https://img.shields.io/badge/minSdkVersion-17-yellow.svg?style=true)\n![compileSdkVersion](https://img.shields.io/badge/compileSdkVersion-24-green.svg?style=true)\n\n### Read more on the blog post: [Avening - MVP without RxJava or Dagger](https://blog.joaquimley.com/avenging-android-mvp-23461aebe9b5#.sc9ty759u)\n\nAndroid app built with an **MVP** approach **without** RxJava or Dagger. \n\nUses [Marvel Comics API](https://developer.marvel.com) as a service which contains all the information about its vast library.\n_Data provided by Marvel. © 2016 MARVEL_\n\n\nWhat is MVP (ModelViewPresenter)?\n---------------------------\n- View is a layer that displays data and reacts to user actions. On Android, this could be an Activity, a Fragment, an android.view.View or a Dialog.\n- Model is a data access layer such as database API or remote server API.\n- Presenter is a layer that provides View with data from Model. Presenter also handles background tasks.\n\nMost of the modern Android applications just use View-Model architecture.\nProgrammers are involved into fight with View complexities instead of solving business tasks.\nUsing only Model-View in your application you usually end up with \"everything is connected with everything\", which translates into harder scalability. With the MVP approach it easier to understand the role of each element. You didn’t became a developer to be wasting time on boring code maintenance, but to build awesome stuff!\n\n![Mobile List](../development/art/ss_mobile_list.png) \n![Mobile Profile](../development/art/ss_mobile_profile.png) \n![Mobile Comic](../development/art/ss_mobile_comic.png)\n![Mobile Search](../development/art/ss_mobile_search.png)\n![Mobile List Error](../development/art/ss_mobile_error.png) \n\n![Wear List Default](../development/art/ss_wear_list_default.png)\n![Wear List Gallery](../development/art/ss_wear_list_gallery.png)\n![Wear List Loading](../development/art/ss_wear_loading.png)\n![Wear List Error](../development/art/ss_wear_list_error.png)\n\nThis sample is available\n\n[![Get it on Google Play](../development/art/google-play-badge.png)](https://play.google.com/store/apps/details?id=com.joaquimley.avenging)\n\n## Configs \u0026 API authentication\nIf you wish to run your own **CI** (I'm using Travis) ensure you have the following environment variables on **your CI config**:\n\n* IS_ CI_JOB = true\n* CI_ PUBLIC_KEY = \u003c YOUR-PUBLIC-KEY \u003e\n* CI_ PRIVATE_KEY = \u003c YOUR-PRIVATE-KEY \u003e\n\nTo run **locally** have your private and public keys in your **gradle.properties** file (project's root folder).\n\n* marvelPublicKey = \u003c YOUR-PUBLIC-KEY \u003e\n* marvelPrivateKey = \u003c YOUR-PRIVATE-KEY \u003e\n\n_Mind the markedown spaces._\n\n\n## Dependencies\n\n**CORE**\n\n* [Retrofit](http://square.github.io/retrofit)\nA type-safe HTTP client for Android and Java\n* [Jackson](https://github.com/square/retrofit/tree/master/retrofit-converters/jackson)\nA default ObjectMapper instance will be created or one can be configured and passed to the JacksonConverter construction to further control the serialization.\n* [Mockito](http://mockito.org/)\nMocking framework for unit tests written in Java\n* [LeakCanary](https://github.com/square/leakcanary)\nA memory leak detection library for Android and Java.\n\n**MOBILE**\n\n* [Design Support Library](http://developer.android.com/intl/tools/support-library/features.html#design)\nThe Design package provides APIs to support adding material design components and patterns to your apps.A flexible view for providing a limited window into a large data set.\n* [Picasso](http://square.github.io/picasso/)\nA powerful image downloading and caching library for Android \n* [Espresso](https://google.github.io/android-testing-support-library/docs/espresso/index.html)\nUse Espresso to write concise, beautiful, and reliable Android UI tests\n\n**WEAR**\n\n* [Play Services](https://developers.google.com/android/guides/setup)\nGoogle Play services.\n* [Google Support Support v4](https://developer.android.com/topic/libraries/support-library/features.html#v4)\nThis library is designed to be used with Android 1.6 (API level 4) and higher. It includes the largest set of APIs compared to the other libraries\n* [Picasso](http://square.github.io/picasso/)\nA powerful image downloading and caching library for Android\n\n\n**Issues:**\nFell free to open a new issue. Follow the [ISSUE_TEMPLATE.MD](../development/ISSUE_TEMPLATE.MD)\n\n## Contributing\n\nContributions are always welcome!\n\nFollow the \"fork-and-pull\" Git workflow.\n\n 1. **Fork** the repo on GitHub\n 2. **Clone** the project to your own machine\n 3. **Commit** changes to your own branch\n 4. **Merge** with current *development* branch\n 5. **Push** your work back up to your fork\n 7. Submit a **Pull request** your changes can be reviewed (please refere the issue if reported)\n\n**Prevent** code-style related changes (at least run Ctrl+⌥+O, ⌥+⌘+L) before commiting.\n\n\n### License\n\n\tCopyright © 2016 Joaquim Ley\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or \n\timplied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaquimley%2Favenging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoaquimley%2Favenging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaquimley%2Favenging/lists"}