Coder Social home page Coder Social logo

janhavi_singh's Introduction

TruHApp

TrueCaller Url Hit App. To implement the app I have used Mobius Architecture using Test Driven Development written in Kotlin. Following is a deep dive into the implementation.

External Libraries Used:

  1. Retrofit
  2. Data Binding Library

Architecture Used:

  1. Mobius

Language Used:

  1. Kotlin

State Chart Diagram:


State chart diagram is for the multiple states the app is going to be in.

In the diagram,

  1. The nodes represent different Models
  2. Arrows represent Events
  3. Dotted arrows adjoining the little circle represents an Effect
  4. Nodes with dotted borderline represent a No Change Model

Implementation Guide:

  • Mobius is an Architecture introduced by Spotify which follows the Mobius Loop.
  • Start from the TrueCallerUpdateTest class. Update function is the heart of Mobius Loop. All the events pass through the update function and then dispatch the next model or an effect.
  • Effects are impure functions. Things like making a network call or showing a toast message are done in the TrueCallerEffectHandler class.
  • TrueCallerViewRenderer class implements the 3 algorithms for displaying needed output.
  • Unit Tests are written for the above classes in TrueCallerViewRendererTest, TrueCallerEffectHandlerTest, and TrueCallerUpdateTest

Project Screenshots:

janhavi_singh's People

Contributors

janhavisinghh 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.