From 3e389be6f5fef8d00d3a55a34fb1672ca25d3789 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Date: Fri, 5 Jun 2020 00:42:14 +0530 Subject: [PATCH] Fixes #3725 (#3795) * Downgraded okhttp version to support Api 19 devices --- app/build.gradle | 6 ++++-- gradle.properties | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a0451e5e4..57240c522 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -21,7 +21,9 @@ dependencies { implementation 'com.github.nicolas-raoul:Quadtree:ac16ea8035bf07' implementation 'in.yuvi:http.fluent:1.3' implementation 'com.google.code.gson:gson:2.8.5' - implementation 'com.squareup.okhttp3:okhttp:4.2.0' + implementation ("com.squareup.okhttp3:okhttp:$OKHTTP_VERSION"){ + force = true //API 19 support + } implementation 'com.squareup.okio:okio:2.2.2' implementation 'io.reactivex.rxjava2:rxandroid:2.1.0' implementation 'io.reactivex.rxjava2:rxjava:2.2.3' @@ -53,7 +55,7 @@ dependencies { api('com.github.tony19:logback-android-classic:1.1.1-6') { exclude group: 'com.google.android', module: 'android' } - implementation "com.squareup.okhttp3:logging-interceptor:4.2.0" + implementation "com.squareup.okhttp3:logging-interceptor:$OKHTTP_VERSION" // Dependency injector implementation "com.google.dagger:dagger-android-support:$DAGGER_VERSION" diff --git a/gradle.properties b/gradle.properties index 73196c6e0..d238e4f81 100644 --- a/gradle.properties +++ b/gradle.properties @@ -22,6 +22,7 @@ LEAK_CANARY_VERSION=1.6.2 DAGGER_VERSION=2.21 ROOM_VERSION=2.2.3 PREFERENCE_VERSION=1.1.0 +OKHTTP_VERSION=3.12.1 systemProp.http.proxyPort=0 systemProp.http.proxyHost=