Avenging


Source link: https://github.com/JoaquimLey/avenging

Avenging - MVP project

Read more on the blog post: Avening - MVP without RxJava or Dagger

Android app built with an MVP approach without RxJava or Dagger.

Uses Marvel Comics API as a service which contains all the information about its vast library. Data provided by Marvel. © 2016 MARVEL

What is MVP (ModelViewPresenter)?

  • 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.
  • Model is a data access layer such as database API or remote server API.
  • Presenter is a layer that provides View with data from Model. Presenter also handles background tasks.

Most of the modern Android applications just use View-Model architecture. Programmers are involved into fight with View complexities instead of solving business tasks. Using 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!

This sample is available

Configs & API authentication

If you wish to run your own CI (I'm using Travis) ensure you have the following environment variables on your CI config:

  • IS_ CI_JOB = true
  • CI_ PUBLIC_KEY = < YOUR-PUBLIC-KEY >
  • CI_ PRIVATE_KEY = < YOUR-PRIVATE-KEY >

To run locally have your private and public keys in your gradle.properties file (project's root folder).

  • marvelPublicKey = < YOUR-PUBLIC-KEY >
  • marvelPrivateKey = < YOUR-PRIVATE-KEY >

Mind the markedown spaces.

Dependencies

CORE

  • Retrofit A type-safe HTTP client for Android and Java
  • Jackson A default ObjectMapper instance will be created or one can be configured and passed to the JacksonConverter construction to further control the serialization.
  • Mockito Mocking framework for unit tests written in Java
  • LeakCanary A memory leak detection library for Android and Java.

MOBILE

  • Design Support Library The 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.
  • Picasso A powerful image downloading and caching library for Android
  • Espresso Use Espresso to write concise, beautiful, and reliable Android UI tests

WEAR

  • Play Services Google Play services.
  • Google Support Support v4 This 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
  • Picasso A powerful image downloading and caching library for Android

Issues: Fell free to open a new issue. Follow the ISSUE_TEMPLATE.MD

Contributing

Contributions are always welcome!

Follow the "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Merge with current development branch
  5. Push your work back up to your fork
  6. Submit a Pull request your changes can be reviewed (please refere the issue if reported)

Prevent code-style related changes (at least run Ctrl+?+O, ?+?+L) before commiting.

License

Copyright © 2016 Joaquim Ley  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. 

Resources

Gradle plugin for managing android app versionCode and versionName. Auto update versionCode on every git commit.

Helper classes for Requesting Android Runtime Permissions.

Android utils for context and thread.

A Funny ToggleButton for day and night change.

A expandable Layout to save space and reduce jump between Activity and Fragment.

An Android library to retrofit multiple item view types.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes