From c116c0c68370481ffd1f12b93e4a4d7106c20449 Mon Sep 17 00:00:00 2001 From: Jan Seeger Date: Tue, 9 Jan 2024 12:47:58 +0100 Subject: [PATCH] Add streaming JsonConverter for retrofit This implements for Jake Wharton's converter as streaming variant (only one direction). For now that's all we need. https://github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/issues/43 --- .idea/gradle.xml | 1 + dachlatten-retrofit/build.gradle.kts | 15 +++++ .../okhttp/StreamingJsonConverterFactory.kt | 50 ++++++++++++++++ ...SerializationConverterFactoryStringTest.kt | 60 +++++++++++++++++++ gradle/libs.versions.toml | 10 +++- settings.gradle.kts | 1 + 6 files changed, 136 insertions(+), 1 deletion(-) create mode 100644 dachlatten-retrofit/build.gradle.kts create mode 100644 dachlatten-retrofit/src/main/kotlin/de/sipgate/dachlatten/okhttp/StreamingJsonConverterFactory.kt create mode 100644 dachlatten-retrofit/src/test/kotlin/de/sipgate/dachlatten/okhttp/KotlinSerializationConverterFactoryStringTest.kt diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 69ac663..68a7b59 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -30,6 +30,7 @@