Skip to content

Sample Android project which incorporates MVVM, databinding, RxJava2, Dagger2 and Clean Architecture approach.

License

Notifications You must be signed in to change notification settings

krokers/exchange-rates-mvvm

Repository files navigation

ExchangeRates

Exemplary MVVM Android application based on databinding. It presents the daily exchange rates basing on USD.

Demo


This application was inspired by following projects, articles and presentations:

How to run

This application uses external service exposing the currency rates. If you want to run it yourself:

  1. Open this page: https://openexchangerates.org/,
  2. Register a free account
  3. Request application ID
  4. Add the application ID as a resource of this project, eg:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="oer_app_id">abddefghijkl</string>
</resources>

Architecture

As mentioned earlier, this application uses Clean Architecture approach. Layers are divided into separate gradle modules:

  • presentation - Android module. Contains presentation logic based on MVVM. View models exposes data via databinding bindables.
  • domain - pure java module with business use cases.
  • data - Android module implementing the repository pattern. Retrieves data from external service and from local database (in progress).

General overview diagram

Discussions

Refer to the issues section.

License

Copyright 2017 Rafal Swierkot

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

Sample Android project which incorporates MVVM, databinding, RxJava2, Dagger2 and Clean Architecture approach.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages