A weather app that provides real-time information about the location provided.
The app is made up of two screens:
- A welcome screen that welcomes you when you enter the app (for demonstration the app shows this screen every time it starts, in a production app this screen should be shown only once.)
- The main screen which will show information obtained from Weather Api such as current weather, sunrise and sunset, a list with hourly data of the day's weather and the next day's weather
Note
Due to limitations of the API, only data from the current day and the next day is shown.
Important
When you have the project in Android Studio and Gradle finishes synchronizing, you will need an API KEY that you can obtain by registering from the following link Weather Api.
Once you finish, you will need to place the KEY in your "local.properties" file with the name "KEY" and import it into the "ApiKeyInterceptor" file that you will find in the following field: main/java/com/maxidev/weather/data/network/remote/ApiKeyInterceptor.
The configuration in the Build.Gradle file at the App level has already been done.
The architecture used for the project was MVVM (Model - View - ViewModel). This aims to separate the UI (View) from the business logic (ViewModel) and data (Model).
Welcome Screen | StandBy |
---|---|
Error Screen | Main Screen |
---|---|
Welcome Screen | StandBy |
---|---|
Error Screen | Main Screen |
---|---|
Welcome Screen | Main Screen | Dark Mode |
---|---|---|