SaadKhanJadoon / Compose-MVVM-Weather-App

A sample weather app using Jetpack Compose UI and MVVM architecture.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compose-MVVM-Weather-App

A sample app using Jetpack Compose UI and MVVM architecture.

The app is created to showcase the usage of a standard MVVM architecture approach with jetpack compose as UI, and uses the OpenWeather api for fetching data.

weather-app

Built With

  • Jetpack Compose for UI
  • MVVM Architecture
  • Retrofit (for API Calling).
  • Hilt Dependency Injection.
  • Glide (for Image Loading).
  • Kotlin Coroutines.
  • StateFlow
  • Sealed Class.

Setup

  • First, get your app ID from OpenWeather.
  • Navigate to the Constants file located in the Utils folder in the application.
  • Locate the "place your app id here" placeholder within the Constants file and replace it with your unique app ID obtained from OpenWeather.
  • Once you've updated the Constants file, run your project.

Contributing

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

About

A sample weather app using Jetpack Compose UI and MVVM architecture.


Languages

Language:Kotlin 100.0%