This pull request introduces several new features and dependencies related to location search functionality, including a new repository, ViewModel, and tests. The most important changes include adding dependencies for okhttp and kotlinx.serialization.json, implementing the LocationRepository and LocationViewModel, and adding tests for these new components.
This pull request introduces several new features and dependencies related to location search functionality, including a new repository, ViewModel, and tests. The most important changes include adding dependencies for
okhttp
andkotlinx.serialization.json
, implementing theLocationRepository
andLocationViewModel
, and adding tests for these new components.New Dependencies:
app/build.gradle.kts
: Addedokhttp
andkotlinx.serialization.json
dependencies.gradle/libs.versions.toml
: Added versions and libraries forokhttp
,kotlinx-serialization-json
, andjson
. [1] [2] [3] [4]New Features:
app/src/main/java/com/arygm/quickfix/model/locations/LocationRepository.kt
: IntroducedLocationRepository
interface for location search functionality.app/src/main/java/com/arygm/quickfix/model/locations/LocationViewModel.kt
: ImplementedLocationViewModel
to manage search queries and results.app/src/main/java/com/arygm/quickfix/model/locations/NominatimLocationRepository.kt
: AddedNominatimLocationRepository
class to handle location search requests usingokhttp
.Testing:
app/src/test/java/com/arygm/quickfix/location/LocationViewModelTest.kt
: Added unit tests forLocationViewModel
.app/src/test/java/com/arygm/quickfix/location/NominatimLocationRepositoryTest.kt
: Added unit tests forNominatimLocationRepository
.Configuration:
app/src/main/AndroidManifest.xml
: Added metadata for Google Maps API key.