├── .gitignore ├── LICENSE ├── README.md ├── api ├── .gitignore ├── build.gradle └── src │ ├── main │ └── java │ │ └── it │ │ └── codingjam │ │ └── cleanweather │ │ └── api │ │ ├── RetrofitFactory.kt │ │ └── RetrofitWeatherApi.kt │ └── test │ ├── java │ └── it │ │ └── codingjam │ │ └── cleanweather │ │ └── api │ │ ├── MockWebServerRule.kt │ │ └── WeatherApiTest.kt │ └── resources │ └── api-response │ ├── forecast.json │ └── weather.json ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── it │ │ └── codingjam │ │ └── cleanweather │ │ └── app │ │ ├── AndroidViewModel.kt │ │ ├── MainActivity.kt │ │ └── WeatherViewModel.kt │ └── res │ ├── drawable-v24 │ └── ic_launcher_foreground.xml │ ├── drawable │ └── ic_launcher_background.xml │ ├── layout │ └── activity_main.xml │ ├── mipmap-anydpi-v26 │ ├── ic_launcher.xml │ └── ic_launcher_round.xml │ ├── mipmap-hdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-mdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ └── values │ ├── colors.xml │ ├── strings.xml │ └── styles.xml ├── domain ├── .gitignore ├── build.gradle └── src │ ├── main │ ├── AndroidManifest.xml │ └── java │ │ └── it │ │ └── codingjam │ │ └── cleanweather │ │ └── domain │ │ ├── LocationManager.kt │ │ ├── TemperatureRepository.kt │ │ └── WeatherUseCase.kt │ └── test │ └── java │ └── it │ └── codingjam │ └── cleanweather │ └── domain │ └── WeatherUseCaseTest.kt ├── entities ├── .gitignore ├── build.gradle └── src │ └── main │ └── java │ └── com │ └── codingjam │ └── cleanweather │ └── entities │ ├── City.kt │ ├── Location.kt │ └── Temperature.kt ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── location ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── it │ │ └── codingjam │ │ └── cleanweather │ │ └── position │ │ └── AndroidLocationManager.kt │ └── res │ └── values │ └── strings.xml ├── main ├── .gitignore ├── build.gradle └── src │ ├── main │ └── java │ │ └── it │ │ └── codingjam │ │ └── cleanweather │ │ └── main │ │ └── Main.kt │ └── test │ └── java │ └── it │ └── codingjam │ └── cleanweather │ └── main │ └── MainKtTest.kt ├── settings.gradle └── weather ├── .gitignore ├── build.gradle └── src ├── main └── java │ └── it │ └── codingjam │ └── cleanweather │ └── weather │ ├── OpenWeatherTemperatureRepository.kt │ └── WeatherApi.kt └── test └── java └── it └── codingjam └── cleanweather └── weather └── OpenWeatherTemperatureRepositoryTest.kt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CleanWeather -------------------------------------------------------------------------------- /api/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /api/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/api/build.gradle -------------------------------------------------------------------------------- /api/src/main/java/it/codingjam/cleanweather/api/RetrofitFactory.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/api/src/main/java/it/codingjam/cleanweather/api/RetrofitFactory.kt -------------------------------------------------------------------------------- /api/src/main/java/it/codingjam/cleanweather/api/RetrofitWeatherApi.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/api/src/main/java/it/codingjam/cleanweather/api/RetrofitWeatherApi.kt -------------------------------------------------------------------------------- /api/src/test/java/it/codingjam/cleanweather/api/MockWebServerRule.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/api/src/test/java/it/codingjam/cleanweather/api/MockWebServerRule.kt -------------------------------------------------------------------------------- /api/src/test/java/it/codingjam/cleanweather/api/WeatherApiTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/api/src/test/java/it/codingjam/cleanweather/api/WeatherApiTest.kt -------------------------------------------------------------------------------- /api/src/test/resources/api-response/forecast.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/api/src/test/resources/api-response/forecast.json -------------------------------------------------------------------------------- /api/src/test/resources/api-response/weather.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/api/src/test/resources/api-response/weather.json -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/build.gradle -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/proguard-rules.pro -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /app/src/main/java/it/codingjam/cleanweather/app/AndroidViewModel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/java/it/codingjam/cleanweather/app/AndroidViewModel.kt -------------------------------------------------------------------------------- /app/src/main/java/it/codingjam/cleanweather/app/MainActivity.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/java/it/codingjam/cleanweather/app/MainActivity.kt -------------------------------------------------------------------------------- /app/src/main/java/it/codingjam/cleanweather/app/WeatherViewModel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/java/it/codingjam/cleanweather/app/WeatherViewModel.kt -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/drawable-v24/ic_launcher_foreground.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/drawable/ic_launcher_background.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/layout/activity_main.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/values/colors.xml -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/app/src/main/res/values/styles.xml -------------------------------------------------------------------------------- /domain/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /domain/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/domain/build.gradle -------------------------------------------------------------------------------- /domain/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /domain/src/main/java/it/codingjam/cleanweather/domain/LocationManager.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/domain/src/main/java/it/codingjam/cleanweather/domain/LocationManager.kt -------------------------------------------------------------------------------- /domain/src/main/java/it/codingjam/cleanweather/domain/TemperatureRepository.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/domain/src/main/java/it/codingjam/cleanweather/domain/TemperatureRepository.kt -------------------------------------------------------------------------------- /domain/src/main/java/it/codingjam/cleanweather/domain/WeatherUseCase.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/domain/src/main/java/it/codingjam/cleanweather/domain/WeatherUseCase.kt -------------------------------------------------------------------------------- /domain/src/test/java/it/codingjam/cleanweather/domain/WeatherUseCaseTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/domain/src/test/java/it/codingjam/cleanweather/domain/WeatherUseCaseTest.kt -------------------------------------------------------------------------------- /entities/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /entities/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/entities/build.gradle -------------------------------------------------------------------------------- /entities/src/main/java/com/codingjam/cleanweather/entities/City.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/entities/src/main/java/com/codingjam/cleanweather/entities/City.kt -------------------------------------------------------------------------------- /entities/src/main/java/com/codingjam/cleanweather/entities/Location.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/entities/src/main/java/com/codingjam/cleanweather/entities/Location.kt -------------------------------------------------------------------------------- /entities/src/main/java/com/codingjam/cleanweather/entities/Temperature.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/entities/src/main/java/com/codingjam/cleanweather/entities/Temperature.kt -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/gradle.properties -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/gradlew.bat -------------------------------------------------------------------------------- /location/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /location/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/location/build.gradle -------------------------------------------------------------------------------- /location/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/location/proguard-rules.pro -------------------------------------------------------------------------------- /location/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/location/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /location/src/main/java/it/codingjam/cleanweather/position/AndroidLocationManager.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/location/src/main/java/it/codingjam/cleanweather/position/AndroidLocationManager.kt -------------------------------------------------------------------------------- /location/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/location/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /main/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /main/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/main/build.gradle -------------------------------------------------------------------------------- /main/src/main/java/it/codingjam/cleanweather/main/Main.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/main/src/main/java/it/codingjam/cleanweather/main/Main.kt -------------------------------------------------------------------------------- /main/src/test/java/it/codingjam/cleanweather/main/MainKtTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/main/src/test/java/it/codingjam/cleanweather/main/MainKtTest.kt -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/settings.gradle -------------------------------------------------------------------------------- /weather/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /weather/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/weather/build.gradle -------------------------------------------------------------------------------- /weather/src/main/java/it/codingjam/cleanweather/weather/OpenWeatherTemperatureRepository.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/weather/src/main/java/it/codingjam/cleanweather/weather/OpenWeatherTemperatureRepository.kt -------------------------------------------------------------------------------- /weather/src/main/java/it/codingjam/cleanweather/weather/WeatherApi.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/weather/src/main/java/it/codingjam/cleanweather/weather/WeatherApi.kt -------------------------------------------------------------------------------- /weather/src/test/java/it/codingjam/cleanweather/weather/OpenWeatherTemperatureRepositoryTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fabioCollini/CleanWeather/HEAD/weather/src/test/java/it/codingjam/cleanweather/weather/OpenWeatherTemperatureRepositoryTest.kt --------------------------------------------------------------------------------