Skip to content

Commit

Permalink
Set Snapshot version
Browse files Browse the repository at this point in the history
  • Loading branch information
Foso committed Apr 27, 2024
1 parent 1874938 commit 529c098
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/migration.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<HttpResponse, Response<Any?>> {

override suspend fun convert(result: KtorfitResult): Response<Any?> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<HttpResponse, *>? {
if (typeData.typeInfo.type == Response::class) {
return DefaultResponseClassSuspendConverter(typeData, ktorfit)
return ResponseClassSuspendConverter(typeData, ktorfit)
}
return null
}
Expand Down

0 comments on commit 529c098

Please sign in to comment.