GithubHelp home page GithubHelp logo

usamayasin / goustoandroidtask Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 129 KB

Andorid App utilizing Gousto API to showcase Clean architecture (MVVM + Kotlin + Retrofit2 + Hilt + Coroutines + Kotlin Flow + mockK + Espresso + Junit + Unit Tests)

Kotlin 100.00%
android-development clean-architecture coroutines-android coroutines-flow dagger-hilt dependency-injection hilt kotlin mappers mvvm

goustoandroidtask's Introduction

GoustoApp

An simple GoustoApp utilizing Gousto Products API for showing products lists.

Built with โค๏ธŽ by Muhammad Usama Yasin

Features

  • Home Screen showing list of products
  • Offline Support.
  • Detail Screen to show more information about a product.

Architecture

  • Built with Modern Android Development practices.
  • Utilized Usecase, Repository pattern for data.
  • Includes valid Unit tests for Repository and Usecases.

Built With ๐Ÿ› 

  • Kotlin - First class and official programming language for Android development.
  • Coroutines - For asynchronous and more..
  • Flow - A cold asynchronous data stream that sequentially emits values and completes normally or with an exception.
  • Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
    • LiveData - Data objects that notify views when the underlying data changes.
    • ViewModel - Stores UI-related data that isn't destroyed on UI changes.
    • ViewBinding - Generates a binding class for each XML layout file present in that module and allows you to more easily write code that interacts with views.
  • Dependency Injection
    • Hilt - Easier way to incorporate Dagger DI into Android apps.
  • Room - For saving Data in local DB and to provide offline support.
  • Material Components for Android - Modular and customizable Material Design UI components for Android.
  • Gradle Kotlin DSL - For writing Gradle build scripts using Kotlin.
  • MockK - For Mocking and Unit Testing.
  • Espresso - Espresso to write concise, beautiful, and reliable Android UI tests.
  • Glide - Glide is a fast and efficient open source media management and image loading framework for Android.

Observations:

  • API does not support Pagination. No params to utilize for pagination with API. But as a work-around ,we can save all the data in our LocalDatabase and then implement pagination on the room to fetch records form the localDatabase. But it will take more time to do. So, I left it as an improvement.

Improvements:

  • Multi Module
  • Add more Unit/UI Tests
  • Build UI with Compose

๐Ÿ‘จ Developed By

Muhammad Usama Yasin

Linkedin

goustoandroidtask's People

Contributors

usamayasin avatar

Stargazers

 avatar  avatar

Watchers

 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.