{"id":24962204,"url":"https://github.com/adamdawi/weather-app","last_synced_at":"2025-03-28T22:32:32.774Z","repository":{"id":243075394,"uuid":"811390524","full_name":"AdamDawi/Weather-App","owner":"AdamDawi","description":"Clean MVVM architecture app to display weather","archived":false,"fork":false,"pushed_at":"2024-10-24T08:39:35.000Z","size":317,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T08:59:21.679Z","etag":null,"topics":["clean-architecture","coroutines","flow","instrumentation-tests","mvvm-pattern","stateflow-android","ui-testing","unit-testing","weather","weather-api","weather-app"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdamDawi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-06T14:01:19.000Z","updated_at":"2024-10-24T08:39:38.000Z","dependencies_parsed_at":"2024-06-12T08:58:22.257Z","dependency_job_id":"ef47a335-0acb-458a-afec-eca20ac2469d","html_url":"https://github.com/AdamDawi/Weather-App","commit_stats":null,"previous_names":["adamdawi/weather-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamDawi%2FWeather-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamDawi%2FWeather-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamDawi%2FWeather-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamDawi%2FWeather-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdamDawi","download_url":"https://codeload.github.com/AdamDawi/Weather-App/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246109958,"owners_count":20724963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clean-architecture","coroutines","flow","instrumentation-tests","mvvm-pattern","stateflow-android","ui-testing","unit-testing","weather","weather-api","weather-app"],"created_at":"2025-02-03T08:59:23.674Z","updated_at":"2025-03-28T22:32:32.752Z","avatar_url":"https://github.com/AdamDawi.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"https://github.com/AdamDawi/Weather-App/assets/49430055/7737e2f0-9d86-4843-83d5-581ea0240725\" width=\"60\" height=\"60\" align=\"center\" /\u003e Weather App\n\nDiscover detailed and accurate weather forecasts with Weather App. Utilizing advanced location services and real-time weather data, Weather App ensures you are always informed about the weather conditions in your area.\n\n## ⭐️ Features\n\n### Main Screen\n- **Current Weather:** Displays the current weather, temperature, and an icon representing the weather condition.\n- **Weather Forecast:** Shows a 9-day weather forecast, including the past 2 days and the next 6 days, with maximum and minimum temperatures and weather icons.\n- **Location-Based Updates:** Automatically fetches weather data based on your current location.\n- **Live Updates:** Updates weather data every 5 seconds using Kotlin's Flow and Coroutines. The updates pause when the app is in the background to save resources.\n- **City Display:** Shows the city name based on your coordinates.\n\n### Weather Details\n- **Temperature Chart:** Beautiful chart displaying the maximum temperature and temperature changes over the past 7 hours, created using Jetpack Compose Canvas.\n- **Current Conditions:** Displays the current temperature alongside the chart.\n- **Additional Data Cards:**\n  - **Rain:** Displays current rainfall data with an icon.\n  - **Wind Speed:** Shows current wind speed data with an icon.\n  - **Humidity:** Displays current humidity levels with an icon.\n  - **Cloud Cover:** Shows current cloud cover with an icon.\n- **Sunrise and Sunset:** A detailed card showing sunrise and sunset times and the current position of the sun on an arc, created using Jetpack Compose Canvas.\n\n### Theming\n- **Theme Switcher:** Toggle between dark mode and light mode using MaterialTheme.\n\n## ⚙️ Technologies\n\n### 📱 App:\n- **Kotlin:** Primary language for app development.\n- **Jetpack Compose:** For building responsive and modern UI.\n- **Flow and Coroutines:** For handling real-time data updates and background tasks.\n- **MVVM Clean Architecture:** Separates the project into layers with use cases, repositories, and view models.\n- **Retrofit2:** For fetching weather data from the API.\n- **Dagger Hilt:** For dependency injection.\n- **Timber:** For logging.\n- **Material Design:** For creating an intuitive and visually appealing interface.\n\n### ✅ Testing:\n- **JUnit:** For unit testing.\n- **Mockito:** For mocking dependencies in tests.\n- **Coroutines Test:** For testing coroutines.\n- **Fake Repositories and APIs:** For testing.\n- **Dagger Hilt:** For dependency injection in tests.\n- **Compose UI Testing:** For UI and end-to-end testing.\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/AdamDawi/Weather-App\n```\n2. Open the project in Android Studio.\n3. Be sure the versions in gradle are same as on github\n\n## Here are some overview pictures:\n| Light mode  | Dark mode |\n| ------------- | ------------- |\n| ![33](https://github.com/AdamDawi/Weather-App/assets/49430055/33dc8694-c3c6-40ce-8682-fd85e6b51838)  | ![11](https://github.com/AdamDawi/Weather-App/assets/49430055/cdfe9f56-69b0-4952-9255-1c27ccc663fb)  |\n| ![44](https://github.com/AdamDawi/Weather-App/assets/49430055/de1c424b-319c-4582-baf6-886ff18d5508)  | ![22](https://github.com/AdamDawi/Weather-App/assets/49430055/da258e0e-5b3a-466d-a2d6-3a09a94979d8)  |\n\n\n## Requirements\nMinimum Version: Android 8.0 (API level 26) or later📱\n\nTarget Version: Android 14 (API level 34) or later📱\n\n## Author\n\nAdam Dawidziuk🧑‍💻\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamdawi%2Fweather-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamdawi%2Fweather-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamdawi%2Fweather-app/lists"}