A simple Android app that use https://openweathermap.org/current apis to fetch and display weather information
- Search by city name. The result of the search is to display the current weather information for the searched location.
- Search by GPS location
- When come back to the app after closing it, the weather for the most recent search is displayed.
- List of recently searched locations. Can tap on a recent search location and see the current weather location.
- Can delete one or more recently searched locations.
- Android Studio Canary (Latest version)
- Android 5.0 (API Level 21) or above
- Network connection
- GPS
If you want to use your own API key, please modify buildSrc/src/main/java/Deps.kt
android.permission.INTERNET
: for fetching apiandroid.permission.ACCESS_FINE_LOCATION
: for getting current location
- Hilt
- Kotlinx Serialization
- Kotlinx Coroutines Flow
- Retrofit
- Data Binding
- Android Architecture Components
- Android Play Services Location
- MockK
- Strikt
- Espresso
Clean Architecture with MVVM is applied
- app: clean architecture presentation layer
- data: clean architecture data layer
- domain: clean architecture domain layer
- base: base module contains all base classes and utils
- base-test: base module for testing utils
- mobile-service: module contains mobile service e.g. Play Services Location
- Unit test
- UI test