Refactor: Migrate from Retrofit to Ktor

This commit migrates the network layer from Retrofit to Ktor.

Specific changes include:

- Replaced Retrofit
 with Ktor for network requests.
- Updated dependencies to include Ktor libraries.
- Refactored network service and data classes to use Ktor's API.
- Removed Retrofit-specific code and dependencies.
- Adjusted network module to provide Ktor client and services.
- Updated PixabayImageRepository
 to use the new Ktor-based PixabayService.
This commit is contained in:
2024-08-10 19:05:20 +02:00
parent aab5f5e0de
commit 5c0a31d648
14 changed files with 114 additions and 68 deletions

View File

@ -39,7 +39,6 @@ import dev.adriankuta.pixabay.feature.details.di.PhotoDetailsViewModelFactory
@Composable
fun PhotoDetailRoute(
photoId: Int,
onBack: () -> Unit,
modifier: Modifier = Modifier,
viewModel: PhotoDetailViewModel = hiltViewModel(
creationCallback = { factory: PhotoDetailsViewModelFactory ->