GithubHelp home page GithubHelp logo

ayiaware / fxconverter Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.62 MB

Demo currency converter app demonstrating how to consume and cache data from REST API's in android with Retofit, Moshi, Coroutines, LiveData, Flows and Jetpacks (Room, ViewModel). FxConverter provides exchange rate information for various currencies around the world (over 100 currencies) it also lets you calculate the exchange value between two currencies.

License: MIT License

Kotlin 100.00%
android converter-app dagger-hilt dependency-injection exchange-rates kotlin-android moshi-adapter retrofit2 clean-architecture kotlin-flows livedata mvvm-architecture room-database solid-principles currency-converter currency-exchange-rates

fxconverter's Introduction

fxconverter

Demo app demonstrating how to consume and cache data from REST API's in android with Retofit, Moshi, Coroutines, LiveData, Flows and Jetpacks (Room, ViewModel). FxConverter provides exchange rate information for various currencies around the world (over 100 currencies) it also lets you calculate the exchange value between two currencies.

This could be implemented as a feature in a larger project.

Functionalities

  • View rates and currencies
  • Search rates and currencies
  • Convert currencies
  • Cache rates and currencies
  • Clear rates and currencies cache
  • Dynamically switch between linear and grid view while still maintaining scroll position.

Functionalities to be added

  • Favorite currencies
  • Pin currencies
  • Get notifications for pinned currencies
  • Sort currencies
  • Filter currencies
  • Rates history and charts
  • Crypto currencies

Other topics covered in this project

  • Custom moshi Adapters
  • Dependency Inject with Hilt
  • Data binding
  • Two-way binding
  • How to implement settings
  • Form validation

Download

Go to the Releases to download the latest APK.

Go to Google play

Tech stack & Open-source libraries

  • API source ExchangeRate-API
  • Minimum SDK level 21
  • Kotlin
  • Coroutines
  • Uses both Kotlin Flows and Java Live Data
  • Jetpack
    • Lifecycle: Observe Android lifecycles and handle UI states upon the lifecycle changes.
    • ViewModel: Manages UI-related data holder and lifecycle aware. Allows data to survive configuration changes such as screen rotations.
    • DataBinding: Binds UI components in your layouts to data sources in your app using a declarative format rather than programmatically.
    • Room: Constructs Database by providing an abstraction layer over SQLite to allow fluent database access.
    • Hilt: for dependency injection.
  • Architecture
    • MVVM Architecture (View - DataBinding - ViewModel - Model)
    • Repository Pattern
  • Retrofit2 & OkHttp3: Construct the REST APIs and paging network data.
  • Moshi: A modern JSON library for Kotlin and Java.
  • Material-Components for ui design.
  • Glide Loading images from network.
  • Timber: A logger with a small, extensible API.

license

Find this repository useful? leave a⭐ for this repository follow me on GitHub 🤩

fxconverter's People

Contributors

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