Code Monkey home page Code Monkey logo

dropbeat's Introduction

DropBeat

codebeat badge CodeFactor DeepSource Licence

System Overview

Module Dependency Graph

DropABeat Architecture@2x

Architecture of each feature module

Basically, our project is using single activity and multiple fragments.

The Feature of Clean Architecture

The clean architecture known to everyone, the purpose is dividing each layer and make them independent. I will say the clean architecture is separating modules horizontally.

The Feature of Dynamic Feature

Dynamic Feature were published by few yeas ago. Briefly, as the word says, it makes each feature to a module. I will say the dynamic feature is separating modules vertically.

We decided to get both advantages with an easier way and mix them together to our project. To mix them, the dynamic feature will be the main architecture and clean architecture will be inside each feature module.

There are so many strict rules in the origin clean architecture, e.g. an object on the presentation layer won't access a class from the data layer, or each layer has their own data classes, the mapper classes, ...etc.

If keeping the rules here, this project will be a hugh project and only one maintainer is me 😢. This project is still keeping the basic rules, but we need to have a compromise with those features.

Feature Module Architecture

Detail of Presentation Layer

  • Activity/Fragment:
  • ViewModel: It handles the view state and data, and the view logic. Also, it helps a view to connect a usecase. Three types of them, ViewModel, AndroidViewModel, SavedStateViewModel will be used.

Detail of Domain Layer

The business logic will be here mostly.

  • OneShot UseCase: This is one time fetching, just send a request and get a response, eg. normal restful api request.
  • Observable UseCase: For the local database, once the data we are observing is changed, the observable usecases will keep receiving the changing until the observing finishes.

Detail of Data Layer

  • Repository:
  • 3 Layer Cache: We would like to have a cache system. One path is for fetching data from the remote server; another path is for the local database.

Cache Strategy

  • Data Model:

Snapshot of App

image image image image
image image image

Licence

MIT License

Copyright (c) 2021 Jieyi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

dropbeat's People

Contributors

deepsourcebot avatar dependabot-preview[bot] avatar pokk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dropbeat's Issues

[bug] playlist information doesn't change

Add or Remove a song from the favorite, the favorite playlist information doesn't change on the explore fragment screen.

[dropbeat] feature/explore/src/main/java/taiwan/no/one/feat/explore/presentation/fragments/ExploreFragment.kt (Line 188)


it.setFavoriteClickListener { vm.updateSong(it, it.isFavorite) }

Open in IDE · Open on GitHub

Dependabot couldn't find a build.gradle for this project

Dependabot couldn't find a build.gradle for this project.

Dependabot requires a build.gradle to evaluate your project's current Java dependencies. It had expected to find one at the path: /app/build.gradle.

If this isn't a Java project, or if it is a library, you may wish to disable updates for it in the .dependabot/config.yml file in this repo.

View the update logs.

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.