WeatherApp is an application that shows you the weather according to your location. You can find out by searching the weather information of the city you want. You can save the weather of the city you want. If you have an internet connection, the weather conditions of these cities are updated automatically. Weather information is saved on the device.
You can enter your API key in the location specified in the Constants.kt file in the utilites folder.
...
composeweatherapp
│
|
└───app
| | WeatherApplication.kt
| |
| └───theme
| | |
| | | Color.kt
| | | Shape.kt
| | | Theme.kt
| | | Type.kt
|
└───core
| |
| └───di
| | | AppModule
| | | DaoModule
| | | LocationModule
| | | RepositoryModule
| | | RoomModule
| |
| └───helpers
| | | EpochConverter
| | | HourConverter
| | | SetError
|
└───data
| |
| └───datasource
| | |
| | └───local
| | | | CityLocalDataSource
| | | | ForecastLocalDataSource
| | | | MyCityLocalDataSource
| | | |
| | | └───db
| | | | |
| | | | └───entity
| | | | | | CityEntity
| | | | | | ForecastEntity
| | | | | | MyCityEntity
| | | | |
| | | | └───room
| | | | | | CityDao
| | | | | | ForecastDao
| | | | | | MyCityDao
| | | | | | WeatherDatabase
| | |
| | └───remote
| | | | ForecastRemoteDataSource
| | | |
| | | └───entity
| | | | | | CityDto
| | | | | | CloudinessDto
| | | | | | CloudsDto
| | | | | | CoordDto
| | | | | | ForecastDto
| | | | | | ForecastWeatherDto
| | | | | | MainDto
| | | | | | SysDto
| | | | | | WeatherDto
| | | | | | WindDto
| | | |
| | | └───weatherapi
| | | | | WeatherApi
| |
| └───location
| | | DefaultLocationTracker
| |
| └───mapper
| | | CityDtoMapper
| | | CityEntityMappper
| | | ForecastDtoMapper
| | | ForecastEntityMapper
| | | MyCityEntityMapper
| |
| └───repository
| | | ForecastRepositoryImpl
| | | MyCityRepositoryImpl
|
└───domain
| |
| └───location
| | | LocationTracker
| |
| └───mapper
| | | IEntityMapper
| |
| └───model
| | | City
| | | Cloudiness
| | | Clouds
| | | Coord
| | | Forecast
| | | ForecastWeather
| | | Main
| | | MyCity
| | | Sys
| | | Weather
| | | Wind
| |
| └───repository
| | | ForecastRepository
| | | MyCityRepository
| |
| └───usecase
| | |
| | └───forecast
| | | | AddCityToDbUseCase
| | | | AddForecastToDbUseCase
| | | | GetCityFromDbUseCase
| | | | GetForecastFromDbUseCase
| | | | GetForecastUseCase
| | | | GetForecastWithCityNameUseCase
| | | | UpdateCityDbUseCase
| | | | UpdateForecastDbUseCase
| | |
| | └───location
| | | | GetLocationUseCase
| | |
| | └───my_city
| | | | AddMyCityUseCase
| | | | DeleteMyCityUseCase
| | | | GetMyCityUseCase
| | | | GetSpecificCityUseCase
| | | | UpdateMyCityUseCase
| |
| └───util
| | | Resource
|
└───presentation
| |
| └───component
| | | CircularProgressBar.kt
| | | CityWeatherCard.kt
| | | CurrentWeatherDetailRow.kt
| | | ErrorCard.kt
| | | ForecastLazyRow.kt
| | | ForecastTitle
| |
| └───home
| | | HomeForecastState
| | | HomeScreen.kt
| | | HomeViewModel
| |
| └───main
| | | MainActivity
| |
| └───navigation
| | | NavGraph.kt
| | | NavRoutes
| | | NavScreen
| |
| └───search
| | | MyCitiesState
| | | SearchCityScreen.kt
| | | SearchCityState
| | | SearchCityViewModel
|
└───utils
| | Constants
| | WeatherType