/Android-MVP-Architecture

🏛 A basic sample android application to understand MVP in a very simple way. Just clone, build, run and understand MVP.

Primary LanguageJava

Android MVP Architecture

CircleCI

A basic sample android application to understand MVP in a very simple way. Just clone, build, run and understand MVP.

Project Structure

Screenshot

The app has following packages:

  1. data: It contains all the data accessing and manipulating components.
  2. ui: View classes along with their corresponding Presenters.
  3. utils: Utility classes.

Key points

  • Using base abstract classes to support MVP methodology while avoiding Activity leaks by releasing the view when it's no longer needed, BasePresenter reasonable to destroy the view onDestroy().

Used libraries:

  1. RoomDatabase
  2. ButterKnife
  3. Retrofit
  4. PowerPreference
  5. Gson
  6. Picasso
  7. Mockito

Feel free to submit any type of issues and suggestions for improving the coding standard

Happy Coding!!!


License

   Copyright (C) 2018 Ali Asadi
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Contributing to Android MVP Architecture

Just make pull request. You are in!