From a7c41eab1a17265279d3bfcdf233779c13373f84 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Fri, 12 Jul 2019 12:03:49 -0500 Subject: [PATCH] Force okhttp version --- app/build.gradle.kts | 5 ++++- buildSrc/src/main/kotlin/Versions.kt | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 06acae5ac..899c91069 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -111,6 +111,9 @@ configurations.all { exclude(group = "com.google.guava", module = "guava-jdk5") exclude(group = "org.apache.httpcomponents", module = "httpclient") exclude(group = "com.google.http-client", module = "google-http-client-apache") + resolutionStrategy { + force("com.squareup.okhttp3:okhttp:" + Versions.okhttp) + } } val googleplayImplementation by configurations @@ -146,7 +149,7 @@ dependencies { implementation("io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:2.0.0") implementation("androidx.multidex:multidex:2.0.1") implementation("me.saket:better-link-movement-method:2.2.0") - implementation("com.squareup.okhttp3:okhttp:3.12.2") // 3.13 minSdk is 21 + implementation("com.squareup.okhttp3:okhttp:${Versions.okhttp}") implementation("com.google.code.gson:gson:2.8.5") implementation("com.github.rey5137:material:1.2.5") implementation("com.nononsenseapps:filepicker:4.2.1") diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index dbdbf5f9a..cfa997fb9 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -9,4 +9,5 @@ object Versions { const val room = "2.1.0" const val crashlytics = "2.10.1" const val firebase = "16.0.9" + const val okhttp = "3.12.3" // 3.13 minSdk is 21 } \ No newline at end of file