From 0034d922b0ded984d55f14a3e4a2a166e1f9347b Mon Sep 17 00:00:00 2001 From: Lukasz Kalnik Date: Mon, 3 Jan 2022 15:25:25 +0100 Subject: [PATCH] Add missing imports in the Knit example for NetworkEitherCallAdapter --- arrow-libs/core/arrow-core-retrofit/build.gradle.kts | 2 ++ .../arrow/retrofit/adapter/either/EitherCallAdapterFactory.kt | 2 ++ .../src/test/kotlin/examples/example-arrow-retrofit-02.kt | 2 ++ 3 files changed, 6 insertions(+) diff --git a/arrow-libs/core/arrow-core-retrofit/build.gradle.kts b/arrow-libs/core/arrow-core-retrofit/build.gradle.kts index 5ba0b796d12..f1f7e7cb79f 100644 --- a/arrow-libs/core/arrow-core-retrofit/build.gradle.kts +++ b/arrow-libs/core/arrow-core-retrofit/build.gradle.kts @@ -16,4 +16,6 @@ dependencies { testImplementation(projects.arrowCoreTest) testImplementation(libs.squareup.retrofitConverterGson) testImplementation(libs.squareup.okhttpMockWebServer) + testImplementation(projects.arrowCore) + testImplementation("io.kotest.extensions:kotest-assertions-arrow:1.2.1") } diff --git a/arrow-libs/core/arrow-core-retrofit/src/main/kotlin/arrow/retrofit/adapter/either/EitherCallAdapterFactory.kt b/arrow-libs/core/arrow-core-retrofit/src/main/kotlin/arrow/retrofit/adapter/either/EitherCallAdapterFactory.kt index e797305f733..51e1ecef611 100644 --- a/arrow-libs/core/arrow-core-retrofit/src/main/kotlin/arrow/retrofit/adapter/either/EitherCallAdapterFactory.kt +++ b/arrow-libs/core/arrow-core-retrofit/src/main/kotlin/arrow/retrofit/adapter/either/EitherCallAdapterFactory.kt @@ -42,7 +42,9 @@ import java.lang.reflect.Type * ```kotlin * import arrow.core.Either * import arrow.retrofit.adapter.either.networkhandling.CallError + * import retrofit2.http.Body * import retrofit2.http.GET + * import retrofit2.http.POST * * data class User(val name: String) * diff --git a/arrow-libs/core/arrow-core-retrofit/src/test/kotlin/examples/example-arrow-retrofit-02.kt b/arrow-libs/core/arrow-core-retrofit/src/test/kotlin/examples/example-arrow-retrofit-02.kt index 397936e7138..bfe650e19b4 100644 --- a/arrow-libs/core/arrow-core-retrofit/src/test/kotlin/examples/example-arrow-retrofit-02.kt +++ b/arrow-libs/core/arrow-core-retrofit/src/test/kotlin/examples/example-arrow-retrofit-02.kt @@ -3,7 +3,9 @@ package arrow.core.retrofit.examples.exampleArrowRetrofit02 import arrow.core.Either import arrow.retrofit.adapter.either.networkhandling.CallError +import retrofit2.http.Body import retrofit2.http.GET +import retrofit2.http.POST data class User(val name: String)