All Projects → mohsenoid → Marvel

mohsenoid / Marvel

Licence: mit
Marvel Characters Android Application Assigned by smava GmbH

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Marvel

Android-Starter-Kit
This is up-to-date android studio project for native android application, that is using modern tools and libraries.
Stars: ✭ 16 (-92.95%)
Mutual labels:  mvp, mockito, rxandroid, robolectric, butterknife, retrofit2, timber
Mvpframes
整合大量主流开源项目并且可高度配置化的 Android MVP 快速集成框架,支持 AndroidX
Stars: ✭ 100 (-55.95%)
Mutual labels:  rxjava, rxandroid, rxjava-android, mvp, dagger, retrofit2, butterknife
Androidstarter
A sample Android app using the MVP architecture.
Stars: ✭ 140 (-38.33%)
Mutual labels:  rxjava, rxandroid, picasso, mvp, mockito, retrofit2, butterknife
Weather-Guru-MVP
Sample Material-design Android weather application build with MVP architectural approach using Dagger2, RxJava2, Retrofit2, Event-Bus, GreenDao, Butterknife, Lottie etc.
Stars: ✭ 15 (-93.39%)
Mutual labels:  mvp, mockito, rxandroid, robolectric, butterknife, retrofit2
AndroidMVPArchitecture
Android MVP architecture sample project with or without RxJava and Dagger2 and Kotlin
Stars: ✭ 78 (-65.64%)
Mutual labels:  rxjava, mvp, dagger, mockito, rxandroid, retrofit2
Android Mvp Starter
Create/Generate your MVP projects easily
Stars: ✭ 72 (-68.28%)
Mutual labels:  timber, rxjava, picasso, mvp, dagger, butterknife
Moviehub
Showcases popular movies, tv shows, and people from The Movie Database
Stars: ✭ 325 (+43.17%)
Mutual labels:  timber, rxandroid, picasso, espresso, retrofit2, butterknife
Mvpandroid
Sample app to demonstrate MVP (Model - View - Presenter) architecture in android
Stars: ✭ 91 (-59.91%)
Mutual labels:  rxjava, rxandroid, mvp, espresso, mockito, android-application
Android tmdb clean architecture
Showcase of clean architecture concepts along with Continuous Integration and Development for modular Android applications. Includes test suits (functional and unit tests) along with code coverage.
Stars: ✭ 63 (-72.25%)
Mutual labels:  rxjava, mvp, espresso, mockito, robolectric, retrofit2
AndroidStarterAlt
A sample View-based Android app using the MVP architecture. It uses Mosby, Dagger2, RxJava, retrofit, LoganSquare, requery, EventBus, Conductor.
Stars: ✭ 27 (-88.11%)
Mutual labels:  mvp, picasso, mockito, rxandroid, butterknife, retrofit2
Newspaper
An aggregated newspaper app containing news from 10+ local news publishers in Hong Kong. Made with ❤
Stars: ✭ 82 (-63.88%)
Mutual labels:  rxjava, rxandroid, firebase, espresso, mockito, retrofit2
Bigbang
Android base project used by Xmartlabs team
Stars: ✭ 47 (-79.3%)
Mutual labels:  timber, rxjava, mvp, dagger, retrofit2
Mvvm Kotlin Android Architecture
MVVM + Kotlin + Retrofit2 + Hilt + Coroutines + Kotlin Flow + mockK + Espresso + Junit5
Stars: ✭ 1,014 (+346.7%)
Mutual labels:  rxjava, mvp, espresso, mockito, retrofit2
Just Another Android App
An Android base app with loads of cool libraries/configuration NOT MAINTAINED
Stars: ✭ 1,654 (+628.63%)
Mutual labels:  timber, rxjava, robolectric, retrofit2, butterknife
Fineract-CN-mobile
DEPRECATED project - Check the Apache fineract-cn-mobile project instead
Stars: ✭ 17 (-92.51%)
Mutual labels:  rxjava, mvp, rxandroid, butterknife, retrofit2
Kotlin Android Starter
[Kotlin Android] Kotlin Android starter based MVP/Dagger2/RxJava2/Robolectric/Espresso/Mockito. It provides a generator to fast create a Kotlin Android project.
Stars: ✭ 589 (+159.47%)
Mutual labels:  rxjava, mvp, espresso, mockito, robolectric
Mvparms
⚔️ A common architecture for Android applications developing based on MVP, integrates many open source projects, to make your developing quicker and easier (一个整合了大量主流开源项目高度可配置化的 Android MVP 快速集成框架).
Stars: ✭ 10,146 (+4369.6%)
Mutual labels:  rxjava, mvp, android-application, retrofit2, butterknife
Foodsearch
Showcase project of MVP+Dagger+RxJava+StorIO
Stars: ✭ 117 (-48.46%)
Mutual labels:  timber, rxjava, picasso, dagger, butterknife
Star Wars Shop
Simple project with clean architecture and android lifecycle
Stars: ✭ 37 (-83.7%)
Mutual labels:  rxjava, dagger, mockito, retrofit2
Aiyagirl
🔥 爱吖妹纸(含 Kotlin 分支版本)——Retrofit + RxJava + MVP 架构 APP 体验代码家的干货集中营 Gank.io,福利多多,不容错过
Stars: ✭ 1,109 (+388.55%)
Mutual labels:  rxjava, rxandroid, mvp, retrofit2

Marvel Application CircleCI Build Status codecov

This repository holds the source code of the Marvel Application, a simple Android client for the Marvel.com. This application was created by Mohsen Mirhoseini, as part of the technical assessment by the smava GmbH team. It also has been used as a sample project for a series of technical articles and tutorials.


What is this repository for?

  • Marvel Application
  • Version: 1.0.1
  • Last Update: Wed June 27, 2018

Screenshot Screenshot


Development Tools

  • Android Studio v3.1.3
  • gradle-plugin v4.4
  • Android SDK Build Tools v27.1.1
  • MinSdkVersion 14
  • CompileSDKVersion 27

Dependencies

  • Android Support Tools (recyclerView, cardView, vector, palette,... ) v27.1.1
  • Retrofit v2.1.0
  • OkHttp v3.4.1
  • Dagger v2.8
  • RxJava2 v2.1.13
  • RxAndroid v2.0.2
  • RxBinding v2.1.1
  • ButterKnife v8.8.1
  • Timber v4.7.0
  • Picasso v2.5.2
  • OrmLite v5.0
  • Firebase v16.0.1
  • AndroidUtils v1.0.11
  • jUnit v4.12
  • Android Support Test v1.0.2
  • Mockito v1.10.19
  • Robolectric v3.8
  • Espresso v2.2.2

Important Notes

The application includes two Activities, Main and Character Activities. The Main Activity is consist of two Fragments, Search and Cache Fragments, which are responsible for searching new Marvel characters and presenting recently searched characters.

All activity lifecycle and network behaviors are implemented, and according to device size and network situation user get a good UI and UX. If no internet connection or network error, a Snackbar pops up and ask the user to turn on the network connection or retry.

Some simple Test Cases was designed to test application UI functionality and core classes using jUnit and AndroidUnitTest.

Application Structure

The Application implemented and structured based on the MVP pattern best practice, contributed by Antonio Leiva.

Whole application functionality is implemented in "Core-Lib" module using pure Java, and the "App" module contains all codes required for Android Application to load on Android OS, which can be replaced by any other interface (e.g. console app or web app)

The view (MainActivity), contain two fragments. Search and Cache fragments both contain their own presenter and implement View interfaces and the only thing that the view will do is calling a method from the presenter every time there is an interface action.

The presenter (Search or Cache Presenters), are responsible to act as the middleman between views and models. They retrieve data from Backend or Database and returns it formatted to the view. It also decides what should happens when user interacts with the view.

The models (Search Interactor), would only be the gateway to the service domain layer or business logic. In this case, it provides the data needed to be displayed in the view from Network.

The networking and API calls are managed by Retrofit and OkHttp as its httpclient, contributed by Square. It also shows decent logs while the application is running in Debug mode.

Caching characters data is done using OrmLite, a Lightweight Object Relational Mapping (ORM) Java Package. Database layer can also be done using other ORM libraries like realm or DBFlow.

Layers communications are managed by RxJava & RxAndroid contributed by ReactiveX.

Dependency Injections are being managed by Dagger created by Square and now maintained by Google.

Diagram

Some minor Android common functions are managed using AndroidUtils library, developed and published on jCenter by myself.

Whole projects Dependencies are placed in "libraries.gradle" to avoid version conflicts and redundant in different modules.

Used new DataBinding library contributed by Google in Adapters for faster development, and added CustomBindingAdapter to handle downloading and caching images using Picasso library, which also use Google Palette support library as a helper class to extract prominent colors from image and making a related background for a better UI/UX.

The Android Log system is replaced with Timber contributed by Jake Wharton, which avoids logging in the release version.

A general HashGenerator class generates the hash key required for calling API using params.

Used new SupportVector library in some icons cases for a better UI.

Used new Google Firebase as application Analytics and CrashReport services.

Sample test cases are implemented by mockito, espresso, robolectric and mocking dagger.

Finally, used circleci and travis ci as Continues Integration services which are bind with Github repo.


Read more...

You can read more about this sample project in this 5-part article:

and to get the exact code at that point check out this tag: https://github.com/mohsenoid/marvel/releases/tag/Yet-another-MVP-article

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].