From d4bb53f8929f9588aaeba08c0122c214fc4e1e5d Mon Sep 17 00:00:00 2001 From: Kirill Kamakin Date: Mon, 27 Dec 2021 11:37:12 +0300 Subject: [PATCH] Specify OkHttp version via the bill of materials (BOM) --- app/build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 723229d..5e2b84d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -106,11 +106,11 @@ dependencies { // https://github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/tags implementation "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0" - // https://search.maven.org/artifact/com.squareup.okhttp3/okhttp - def okhttp_version = "4.9.2" - implementation "com.squareup.okhttp3:okhttp:$okhttp_version" - implementation "com.squareup.okhttp3:logging-interceptor:$okhttp_version" - testImplementation "com.squareup.okhttp3:mockwebserver:$okhttp_version" + // https://github.com/square/okhttp/tags + implementation platform("com.squareup.okhttp3:okhttp-bom:4.9.3") + implementation "com.squareup.okhttp3:okhttp" + implementation "com.squareup.okhttp3:logging-interceptor" + testImplementation "com.squareup.okhttp3:mockwebserver" // https://github.com/Kotlin/kotlinx.serialization/releases implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.1"