Image Search used MVVM with Clean Architecture

Overview

ImageSearchCleanArch

Readme

In this project I used MVVM with Clean Architecture. MVVM provides a clean separation of concerns between user interface and domain logic. This project is divided into 3 different layers.

Presentation Layer (ui): Where fragments & activities live in this project and it only contains ui logic. All of the rendering happens here.

Domain Layer: All the business logic of this project exists here. This is where interactors (use cases) live in the project.

Data Layer: As the name suggest, all the data for this project comes from here via a ImageRepositoryImpl which uses Repository pattern. (ImageRepository resides in the domain layer)

The reason I chose to architect the app this way is because it is easy to maintain, test, extremely cohesive & decoupled.

The app is composed of 2 main screens.

SearchImageFragment Allows you to search for images. At app startup, the screen displays the search results for the keyword โ€œfruitsโ€.

ImageDetailsFragment This screen provides the details of the searched item which includes tags, username, image and number of likes, downloads and comments on the image.

This project has following features. Iโ€™ve tried to use the mentioned libraries.

Libraries

  • Android Support Library
  • Android Architecture Components
  • Android Data Binding
  • Rx Java
  • Paging 3 to load data from network
  • Mapper
  • Dagger Hilt for dependency injectionโ€จ* Retrofit for REST api communication
  • Glide for image loading
  • Timber for logging
You might also like...
Followed best practices, MVVM, clean architecture and coroutines.
Followed best practices, MVVM, clean architecture and coroutines.

GitHub Profiles Video Walktrough Using Github public API allows users to search Github profiles through the username. It shows the necessary informati

๐ŸŽฏ Einsen is a prioritization app that uses Eisenhower matrix technique as workflow to prioritize a list of tasks & built to Demonstrate use of Jetpack Compose with Modern Android Architecture Components & MVVM Architecture.
๐ŸŽฏ Einsen is a prioritization app that uses Eisenhower matrix technique as workflow to prioritize a list of tasks & built to Demonstrate use of Jetpack Compose with Modern Android Architecture Components & MVVM Architecture.

๐ŸŽฏ Einsen Einsen is a prioritization app that uses Eisenhower matrix technique as workflow to prioritize a list of tasks & built to Demonstrate use of

๐Ÿ“Š A Minimal Expense Tracker App built to demonstrate the use of modern android architecture component with MVVM Architecture
๐Ÿ“Š A Minimal Expense Tracker App built to demonstrate the use of modern android architecture component with MVVM Architecture

Expenso ๐Ÿ“Š A Simple Expense Tracker App ๐Ÿ“ฑ built to demonstrate the use of modern android architecture component with MVVM Architecture ๐Ÿ— . Made with

simple app used Kotlin MVVM Dagger2 Room Coroutines Retrofit2

Exhibits Application which retrieves data from Webserver (via Retrofit), saves it into Room and get from it if user is offline. There are applying MVV

A full-featured framework that allows building android applications following the principles of Clean Architecture.

EasyMVP A powerful, and very simple MVP library with annotation processing and bytecode weaving. EasyMVP eliminates the boilerplate code for dealing w

Template for using Clean Architecture Concepts in Android
Template for using Clean Architecture Concepts in Android

AndroidCleanArchitecture Template for using Clean Architecture Concepts in Android We have separated the layers into three main group Presentation/App

Playground project built with MVVM with Clean Artchitect to try out new tech in Android ๐ŸŒ

Clean-MVVM-Playground Playground project built with MVVM with Clean Artchitect to try out new tech in Android ๐ŸŒ Features ๐Ÿ•น 100% Kotlin Following MVV

MVVM + Clean + Hilt + Mockk

Android - MarvelApp What is this repository for? This repository is to show you my skills programming native Android. If you are interested in my prof

๐Ÿงฌ Android DataBinding kit for notifying data changes from Model layers to UI layers on MVVM architecture.
๐Ÿงฌ Android DataBinding kit for notifying data changes from Model layers to UI layers on MVVM architecture.

๐Ÿงฌ Android DataBinding kit for notifying data changes from Model layers to UI layers on MVVM architecture.

Owner
null
Android Clean Architecture๐Ÿ’Ž Base Project Android with Kotlin and MVVM applying clean architecture

Android Clean Architecture?? Base Project Android with Kotlin and MVVM applying clean architecture

Mina Mikhail 102 Nov 19, 2022
Chat App MVVM + Clean ArchitectureChat App MVVM + Clean Architecture

Chat App MVVM + Clean Architecture This Android application built using MVVM + Clean Architecture architecture approach and is written 100% in Kotlin.

null 2 Nov 18, 2022
Movie app that receives popular movies and allows the user to search for the specific movie through the Rest API with help of retrofit library &MVVM architecture.

MovieClue Millions of movies, TV shows and people to discover. Explore now Movie app that recieves popular movies and allow the user to search for spe

Shubham Tomar 6 Mar 31, 2022
AAC MVVM + Clean Architecture + Coroutine Flow

GithubBrowser MVVM Clean Architecture Sample AAC MVVM + Clean Architecture + Coroutine Flow ๋ณธ ์ƒ˜ํ”Œ ํ”„๋กœ์ ํŠธ๋Š” https://github.com/omjoonkim/GitHubBrowserApp ์„

Jeonguk-JayDev 18 May 25, 2022
An Android Template with MVVM and Clean Architecture

MVVMTemplate ??โ€ A simple Android template that lets you create an Android project quickly. How to use ?? Just click on button to create a new repo st

Hossein Abbasi 525 Nov 25, 2022
Clean Architecture - Kotlin, MVVM, Use cases

CleanArchitecture Is Clean Architecture only MVVM ? NO, MVVM is a part of clean architecture. MVVM includes Model, View and ViewModel and in addition

Deepanshi bajaj 24 Oct 24, 2022
An android app built using Kotlin following Multi-Module Clean Architecture MVVM

RickyandMorty An android app built using Kotlin that consumes RickyadMorty API to display characters.It has been built following Clean Architecture Pr

Kibet 14 Sep 2, 2022
JeTaxi is built on Clean Architecture-MVVM with Kotlin and follows modern android development trends.

JeTaxi is built on Clean Architecture-MVVM with Kotlin and follows modern android development trends. Also, It uses some of Jetpack and popular libraries. These are Kotlin Coroutine-Flow, kotlinx.serialization, Hilt, Compose, Accompanist, Retrofit2, OkHttp3, Chucker, MockWebServer, Truth.

Tolga Bolatcan 13 Nov 2, 2022
Retrieve Data from an API using MVVM Clean Architecture and Jetpack Compose

MVVM Clean Architecture Demo Retrieve Data from an API using MVVM Clean Architecture and Jetpack Compose. It simply shows a list of movies fetched fro

Daniel Kago 2 Sep 16, 2022
Template for MVVM Architecture Clean Code.

Template for MVVM Architecture. This is basic template for android app follwing MVVM architecture and latest tech stack. You don't need to create and add basic code and depency for start project using MVVM architecture. Just use this template and boost your productivity.

Rohit Jakhar 31 Aug 18, 2022