From 529c098937c121feb77224f0d2b18e317c863629 Mon Sep 17 00:00:00 2001 From: Jens Klingenberg Date: Sat, 27 Apr 2024 10:39:44 +0200 Subject: [PATCH] Set Snapshot version --- docs/migration.md | 4 ++++ ...ssSuspendConverter.kt => ResponseClassSuspendConverter.kt} | 2 +- ...esponseConverterFactory.kt => ResponseConverterFactory.kt} | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) rename ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/{DefaultResponseClassSuspendConverter.kt => ResponseClassSuspendConverter.kt} (93%) rename ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/{KtorfitResponseConverterFactory.kt => ResponseConverterFactory.kt} (80%) diff --git a/docs/migration.md b/docs/migration.md index fec77868e..e6ab8582a 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -1,6 +1,10 @@ # Migration Here is how to migrate from deprecated code: +## From <2 to 2.0.0 + + + ## From 1.7.0 to 1.8.1 ### SuspendResponseConverter diff --git a/ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/DefaultResponseClassSuspendConverter.kt b/ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/ResponseClassSuspendConverter.kt similarity index 93% rename from ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/DefaultResponseClassSuspendConverter.kt rename to ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/ResponseClassSuspendConverter.kt index 4a852c311..4909c4ef0 100644 --- a/ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/DefaultResponseClassSuspendConverter.kt +++ b/ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/ResponseClassSuspendConverter.kt @@ -8,7 +8,7 @@ import de.jensklingenberg.ktorfit.converter.TypeData import io.ktor.client.call.* import io.ktor.client.statement.* -internal class DefaultResponseClassSuspendConverter(private val typeData: TypeData, private val ktorfit: Ktorfit) : +internal class ResponseClassSuspendConverter(private val typeData: TypeData, private val ktorfit: Ktorfit) : Converter.SuspendResponseConverter> { override suspend fun convert(result: KtorfitResult): Response { diff --git a/ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/KtorfitResponseConverterFactory.kt b/ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/ResponseConverterFactory.kt similarity index 80% rename from ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/KtorfitResponseConverterFactory.kt rename to ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/ResponseConverterFactory.kt index b66e1348b..e5a782d1b 100644 --- a/ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/KtorfitResponseConverterFactory.kt +++ b/ktorfit-converters/response/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/ResponseConverterFactory.kt @@ -9,14 +9,14 @@ import io.ktor.client.statement.* /** * Converter for [Response] */ -public class KtorfitResponseConverterFactory : Converter.Factory { +public class ResponseConverterFactory : Converter.Factory { override fun suspendResponseConverter( typeData: TypeData, ktorfit: Ktorfit ): Converter.SuspendResponseConverter? { if (typeData.typeInfo.type == Response::class) { - return DefaultResponseClassSuspendConverter(typeData, ktorfit) + return ResponseClassSuspendConverter(typeData, ktorfit) } return null }