Skip to content

Commit 529c098

Browse files
committed
Set Snapshot version
1 parent 1874938 commit 529c098

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

docs/migration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Migration
22
Here is how to migrate from deprecated code:
33

4+
## From <2 to 2.0.0
5+
6+
7+
48
## From 1.7.0 to 1.8.1
59

610
### SuspendResponseConverter
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import de.jensklingenberg.ktorfit.converter.TypeData
88
import io.ktor.client.call.*
99
import io.ktor.client.statement.*
1010

11-
internal class DefaultResponseClassSuspendConverter(private val typeData: TypeData, private val ktorfit: Ktorfit) :
11+
internal class ResponseClassSuspendConverter(private val typeData: TypeData, private val ktorfit: Ktorfit) :
1212
Converter.SuspendResponseConverter<HttpResponse, Response<Any?>> {
1313

1414
override suspend fun convert(result: KtorfitResult): Response<Any?> {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import io.ktor.client.statement.*
99
/**
1010
* Converter for [Response]
1111
*/
12-
public class KtorfitResponseConverterFactory : Converter.Factory {
12+
public class ResponseConverterFactory : Converter.Factory {
1313

1414
override fun suspendResponseConverter(
1515
typeData: TypeData,
1616
ktorfit: Ktorfit
1717
): Converter.SuspendResponseConverter<HttpResponse, *>? {
1818
if (typeData.typeInfo.type == Response::class) {
19-
return DefaultResponseClassSuspendConverter(typeData, ktorfit)
19+
return ResponseClassSuspendConverter(typeData, ktorfit)
2020
}
2121
return null
2222
}

0 commit comments

Comments
 (0)