Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrofit to Ktor #275

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/network-kmp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ kotlin {
sourceSets {
commonMain.dependencies {
implementation(libs.kotlinx.serialization.json)
implementation(libs.bundles.ktor.common)
implementation(libs.bundles.koin.common)
}
androidMain.dependencies {
implementation(libs.bundles.ktor.android)
implementation(libs.androidx.startup.runtime)
implementation(libs.okhttp.logging.interceptor)
implementation(libs.bundles.retrofit)
implementation(libs.bundles.ktor)
implementation(libs.flaker.android.okhttp)
implementation(libs.koin.android)
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ import org.michaelbel.movies.network.AccountNetworkService
import org.michaelbel.movies.network.AuthenticationNetworkService
import org.michaelbel.movies.network.MovieNetworkService
import org.michaelbel.movies.network.SearchNetworkService
import org.michaelbel.movies.network.ktor.di.ktorNetworkKoinModule
import org.michaelbel.movies.network.retrofit.di.retrofitNetworkKoinModule
import org.michaelbel.movies.network.ktor.ktorNetworkKoinModule

val networkKoinModule = module {
includes(
ktorNetworkKoinModule,
retrofitNetworkKoinModule
ktorNetworkKoinModule
)
single { AccountNetworkService(get(), get()) }
single { AuthenticationNetworkService(get(), get()) }
single { MovieNetworkService(get(), get()) }
single { SearchNetworkService(get(), get()) }
single { AccountNetworkService(get()) }
single { AuthenticationNetworkService(get()) }
single { MovieNetworkService(get()) }
single { SearchNetworkService(get()) }
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.michaelbel.movies.network.ktor.di
package org.michaelbel.movies.network.ktor

import com.chuckerteam.chucker.api.ChuckerInterceptor
import io.github.rotbolt.flakerokhttpcore.FlakerInterceptor
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.michaelbel.movies.network.ktor

import org.koin.dsl.module

val ktorNetworkKoinModule = module {
includes(
ktorKoinModule
)
single { KtorAccountService(get()) }
single { KtorAuthenticationService(get()) }
single { KtorMovieService(get()) }
single { KtorSearchService(get()) }
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading