Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Arch Patterns in Android

Arch Patterns in Android

Presented online at GDG Kolkata (https://youtu.be/h6g0T7CQbcY).
This presentation talks about Architecture patterns in android, and how to migrate from MVP to MVVM etc.

Rivu Chakraborty

April 12, 2020
Tweet

More Decks by Rivu Chakraborty

Other Decks in Programming

Transcript

  1. What’s an Architecture? An Architecture is a Code structure /

    collection of principles / patterns, that helps better organise code in a project for easy maintenance and future changes. It also enables you to have efficient test case coverages. 5
  2. Let Φ(x) be a property provable about objects x of

    type T. Then Φ(y) should be true for objects y of type S where S is a subtype of T. Liskov Substitution 10
  3. Clients should not be forced to depend upon interfaces that

    they do not use. Interface Segregation 11
  4. A class that uses a dependency, shouldn’t create / know

    how to create that dependency Depencency Inversion (IoC) 12
  5. Thank You 23 MVP: https://github.com/RivuChk/MovieSearchOMDBMVP MVVM: https://github.com/RivuChk/MovieSearchOMDBMVVM MVVM + State:

    https://github.com/RivuChk/MovieSearchOMDBMVVMState MVI: https://github.com/RivuChk/Android-MVI-Clean-Arch-Sample https://www.rivu.dev