Skip to content

A demo weather app using RxJava2, AndroidX, Kodein, MVVM and OpenWeatherMap api

Notifications You must be signed in to change notification settings

darylsze/weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weather-app

A demo weather app using RxJava2, AndroidX, Kodein, MVVM and OpenWeatherMap api

It manages:

  1. search weather for location
  2. show weather information (temperature, humindity, visibility)
  3. show search histories
  4. auto refresh latest search history when app moves from background to foreground.

Tech stack:

Networking:

  1. Retrofit (annotation-based networking framework, and support Observable)
  2. OkHttp3 (core of Retrofit)
  3. Gson (json <-> string interpolation)

Dependency injection:

  1. Kodein (easy config and use)

Framework:

  1. RxJava2
  2. RxKotlin
  3. AndroidX (decouple dependency from android support library)
  4. RxBinding (view binding to support Rx)

UI libraries:

  1. recyclerview
  2. constraintlayout
  3. floatingsearchview
  4. anko (handy syntactic-sugar for frequently used views, like, toast, dialog, runOnUiThread)

Design pattern:

  1. MVVM (pure Rx, not android LiveData)

Demo (GIF)

About

A demo weather app using RxJava2, AndroidX, Kodein, MVVM and OpenWeatherMap api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages