countries

An example Android app using Retrofit, Realm, Parceler, Dagger and the MVVM pattern with the data binding lib.

Countries

Build Status

A sample Android app, which lists all countries with some additional information (currencies, languages, …). The app uses the MVVM pattern with the Android data binding lib. Countries can be bookmarked and are then stored locally with Realm. Retrofit is used to fetch the country information from the free REST Countries service. For JSON parsing, custom Gson TypeAdapters are used. Parceler is used to make the Country objects Parcelable. Also, Dagger 2 is used for dependency injection.

The purpose of this is app is to show how: * the MVVM pattern can be used with the data binding lib and a RecyclerView. * Retrofit, Realm, Parceler and Gson with custom TypeAdapters work together * Dagger 2 can be used with different Scopes

This project can also be used as a template for new apps. Check out the template branch for a cleaned up version of this project.

License

Copyright 2016 Patrick Löwenstein

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.

Related Repositories

countries

countries

World countries in JSON, CSV, XML and Yaml. Any help is welcome! ...

countries

countries

All sorts of useful information about every country packaged as convenient little country objects. It includes data from ISO 3166 (countries and states/subdivisions ), ISO 4217 (currency), and E.164 (phone numbers). ...

laravel-countries

laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries. ...

countries-and-provinces-states-regions

countries-and-provinces-states-regions

Aims to be a complete data store for lists of Countries and their related Provinces/States/Regions, since this inexplicably doesn't exist currently. ...

Countries

Countries

Continents & countries (with languages, capital and currency, native name, calling codes). ...


Top Contributors

patloew