Skip to content

Simple android weather app developed in kotlin, demonstrating the use of RxJava, Retrofit and implementing MVP.

Notifications You must be signed in to change notification settings

MohiuddinM/kotlin-weather

 
 

Repository files navigation

kotlin-weather

Simple android weather app developed in kotlin, demonstrating the use of RxJava, Retrofit and implementing MVP.

Get it on Google Play

Screenshots

Overview

Weather app created using the Weather Api from Mashape marketplace. This is not supposed to be a production scale application, it is meant to demonstrate the implementation of MVP architecture in Kotlin using following libraries:

  • RxJava
  • Retrofit
Still if you have any issues or suggestions, please feel free to open an issue

General flow of data

  • Check if there is cached data present in the internal file, if yes then load the cached data.
  • Retrieve the latitude and longitude of the user.
  • Request data from Weather Api
  • If data received, cache it in internal file and show the updated data to user.
  • If error then notify user about it.

Build the Project

To build the project on your own follow these steps:

  • Clone the project
  • Get an API key from Weather Api
  • Create a Kotlin file named Secrets.kt
  • In that file create an object and add a variable API_KEY that contains the key that you got from the Weather Api.
object Secrets {
    val API_KEY = "your_api_key"
}
  • Build the project!

About

Simple android weather app developed in kotlin, demonstrating the use of RxJava, Retrofit and implementing MVP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 95.2%
  • Java 4.8%