This project is an Android application that fetches and displays weather data from the OpenWeather API. The app is built using Jetpack Compose for Android, and follows MVVM architecture for clean code practices. It includes key features such as offline storage when the user isn't connected to the Internet, error handling and a responsive UI/UX design.
- Current Weather & 5-Day Forecast: Displays current weather and a 5-day forecast for a selected city.
- City Search: Allows users to search for cities and view the respective weather data.
- Offline Storage: Caches weather data for offline viewing and displays last updated timestamp.
- Error Handling: Graceful error handling for network issues or API errors.
- Modern UI: Uses Material3 components and a clean, responsive design.
- Native Android (Kotlin)
- Retrofit for API integration
- Gson for JSON parsing
- Coroutines for asynchronous operations
- Room for offline storage
- Hilt for dependency injection
- KSP for code generation
- MVVM Architecture for clean code separation
- Jetpack Compose for UI components
- Material3 for modern UI design
Clone this repository to your local machine using the following command:
git clone https://github.com/kanake10/weather.git
- Sync the project to download dependencies.
- Run the project on an emulator or a physical device.

