Giter Club home page Giter Club logo

appsfact's Introduction

AppsFact - Music management

Tech stacks

  • Kotlin
  • MVVM
  • Clean Architecture
  • Use-cases
  • Hilt (Dependency Injection)
  • Room (Persistence library)
  • Retrofit
  • Navigation
  • Automated tests (Espresso)
  • Unit Tests (Junit4)

Layers (Clean Architecture)

This project uses Clean Architecture with three different layers as recommended by Google:

  • Data (data layer: exposing application data)
  • Domain (containing use-cases and business logic)
  • UI (displaying data to user)

Solution

The project consists of 4 different Fragments with a single Activity. It uses one base Fragment to avoid the repetition onCreateView() and onViewCreated() methods for Fragments, as well as a BaseAdapter for Adapters.

  1. The mainScreen (Fragment) - loads saved albums from Database.
  2. AlbumInfo Fragment which accepts id, albumName and artistName as arguments and then makes the call to the server to get the specific album detail.
  3. Search Artist - where it searches for artists based on a name.
  4. Top albums - when user clicks on an album, the apps navigates to top albums to show the top albums of that specific artist.

Navigation:

Screens and UI:

Unit Tests

Unit tests are written for the Repository. For the Repository tests they are written using Mock and JUnit4.

Instrumentation Tests

Instrumentation tests are written for the Activity and Fragment. For the Fragment tests they are written using Espresso and JUnit4.

TODO

  • Add more tests for the ViewModel and Repository.
  • Add/Improve Unit tests.
  • Handle errors within the albums.

appsfact's People

Contributors

linx64 avatar

Stargazers

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