Skip to content

Clean Architecture Cryptocurrency App (MVVM, Use Cases, JetPack Compose, Kotlin Flow, Unite Testing)

Notifications You must be signed in to change notification settings

abhishekdubey331/CryptoFun

Repository files navigation

CryptoFun



CryptoFun is a Learning Project 📱 for Applying Android Architecture Components with exploring Jetpack Compose, MVVM, Kotlin Coroutines, Kotlin Flows using Clean Architecture approach.

Implemented by Clean Architecture

The following diagram shows the structure of this project with 3 layers:

  • Presentation
  • Domain
  • Data

Libraries Used 📚

  • Compose Toolkit for building native UI (in a declarative way - 100% Kotlin).
  • Coroutines Library support for Kotlin coroutines.
  • Flows Stream processing API, built on top of Coroutines.
  • Compose Navigation for tabs navigation using Jetpack Compose.
  • Dagger Hilt Dependency injection library for Android.
  • Retrofit Type-safe REST client for Android to consume RESTful web services.


Package Structure



Communication between layers

  1. UI calls method from ViewModel.
  2. ViewModel executes Use case.
  3. Use case gets data from Coin Repository.
  4. Each Repository returns data from a Data Source.
  5. Information flows back to the UI where we display the list of all coins.
  6. User can click a coin to get open coin detail screen.

API's Used

Get coins route: https://api.coinpaprika.com/v1/coins

Get a coin by ID route: https://api.coinpaprika.com/v1/coins/{coinId}

License 🚔

Copyright 2022 Abhishek Dubey

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.

About

Clean Architecture Cryptocurrency App (MVVM, Use Cases, JetPack Compose, Kotlin Flow, Unite Testing)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages