Skip to content

Devendra-Mehra/Shaadi-Matcher

Repository files navigation

Shaadi-Matcher

Shaadi-Matcher is a sample app that showcases the use of MVP architecture to build maintainable & scalable Android apps.

What does it do?

It is a very straightforward app with a single screen.
The screen displays a list of users matched for you & clicking on the decline it removes the match from your list and on connects it connect you to the particular user.

Appearance?

Screenshots

Architecture

This app follows the Model-View-Presenter architecture to quickly get an overview of MVP and how it fits in the Android world click here
This app essentially serve the Single responsibility principle read here.

Architecture Package Structure

app

main user list

contract
model
network
presenter
view

This app uses a combination of package-by-feature and package-by-layer. The top level packages are feature based. Inside each feature-package, the code is split into different packages based on the layer.This structure has worked for me and I have been using it for some time now. Read this blogpost to know more about packaging structures.

Data Source

All of the Users data is fetched from RandomUserAPI.

Data Flow diagram

Libraries Used

License

Copyright 2019 Devendra Mehra

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.