Giter Club home page Giter Club logo

kotlin-clean-architecture-mvvm's Introduction

Kotlin Clean Architecture (MVVM)

Overview

This Repository contains a Detailed Sample app that Implements MVVM clean Architecture in Kotlin using Retorfit2, Koin, Coroutines, AndroidX, Android Jetpack, DataBinding

The app has following packages

  • config its include App Configuration Constants Files

  • di its include Dependencies Injections Modules using Koin

  • model its include given sub modules

    • local its include Room DB Dao,Entities and Shared Preferences Classes

    • remote its include Network Call classes like APIConstants,ApiServices using Retrofit

    • repo its include all repository classes which handle the data requests coming from viewmodels

    • beans its include all data classes,models and room db entities used in application

  • utils Utilities Classes

  • view View Classes Fragments/Activities/Adapters

  • view_model ViewModels Classes that provide data to View

MVVM (Model View ViewModel Reperesentation) Flow of sample app

  • View

    • Request data from viewModel

    • Observe viewmodel LiveData for response

  • ViewModel

    • Having all LiveData of DataModels

    • Call getDataReqeust from Repository

    • Send requested param and live data to Repository

  • Repository

    • Get RequestData & LiveData as Param from ViewModel

    • Decide to fetch data from DB/Network

    • Fetch data and post it on LiveData get from viewmodel

Libraries Used

  • Koin Library is used for Define DI-Dependencies Injections

  • Retrofit2 Used to call Data Fetch from network

  • Kotlin Coroutines Used to Define a thread or scope to call API's

  • RoomDB Used to store/Fetch data from Database

kotlin-clean-architecture-mvvm's People

Contributors

iamsahilarora avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.