From b9282cc2a3dbd677e96846a0ca2864f380f3b33e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Robaczy=C5=84ski?= Date: Fri, 20 Nov 2020 12:01:09 +0100 Subject: [PATCH] Downgrade okhttp and moshi versions to work with 1.3.x Kotlin --- plugin/build.gradle.kts | 6 +++--- .../main/java/co/brainly/onesky/client/OneSkyApiClient.kt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index 3ec637b..ffd27dd 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "co.brainly" -version = "0.5.0" +version = "0.5.1" gradlePlugin { plugins { @@ -46,9 +46,9 @@ repositories { dependencies { compileOnly(gradleApi()) - val okHttp = "4.9.0" + val okHttp = "4.8.1" implementation("com.squareup.okhttp3:okhttp:$okHttp") - val moshi = "1.11.0" + val moshi = "1.9.3" implementation("com.squareup.moshi:moshi:$moshi") implementation("com.squareup.moshi:moshi-kotlin:$moshi") diff --git a/plugin/src/main/java/co/brainly/onesky/client/OneSkyApiClient.kt b/plugin/src/main/java/co/brainly/onesky/client/OneSkyApiClient.kt index a6ebb2e..35ebedd 100644 --- a/plugin/src/main/java/co/brainly/onesky/client/OneSkyApiClient.kt +++ b/plugin/src/main/java/co/brainly/onesky/client/OneSkyApiClient.kt @@ -20,7 +20,7 @@ class OneSkyApiClient( ) { private val moshi = Moshi.Builder() - .addLast(KotlinJsonAdapterFactory()) + .add(KotlinJsonAdapterFactory()) .build() private val okHttpClient = OkHttpClient.Builder()