Skip to content

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 …

License

Notifications You must be signed in to change notification settings

ayiaware/fxconverter

Repository files navigation

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 🤩

About

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 …

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages