rizwanrazi / mvp-android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android MVP Architecture:Sample Popular Articles app

Project structure using MVP

This repository contains sample app that implements MVP architecture

The app has following packages:

  • adapter: It contains Adapters.
  • model: Contains model classes.
  • network: Services for the application.
  • presenter: Presenters and Infractor classes.
  • view: View classes.

Library reference resources:

1- CircleImageView: https://github.com/hdodenhof/CircleImageView
2- Glide: https://github.com/bumptech/glide
3- Retrofit: https://github.com/square/retrofit

How do I Run this project?

1- open your Android Studio
2- Click on Open an existing Android Studio project then you’ll get a dialog box for select project
3- Here, browse your project by navigating the location where you kept your project, your project’s folder will appear with an Android logo
4- Select the app and click OK, this will take some time for the Gradle to build, wait for the loading time. (You might get error here stating the different SDK location)
5- In case of the above error just click on OK
6- You have now successfully imported the project in Android Studio.

How do I Run unit test?

To run your local unit tests, follow these steps:

1- Be sure your project is synchronized with Gradle by clicking Sync Project in the toolbar.
2- Run your test in one of the following ways:

  • To run a single test, open the Project window, and then right-click a test and click Run .
  • To test all methods in a class, right-click a class or method in the test file and click Run .
  • To run all tests in a directory, right-click on the directory and select Run tests .

About


Languages

Language:Java 100.0%