Skip to content

Commit 3e389be

Browse files
* Downgraded okhttp version to support Api 19 devices
1 parent d02b959 commit 3e389be

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ dependencies {
2121
implementation 'com.github.nicolas-raoul:Quadtree:ac16ea8035bf07'
2222
implementation 'in.yuvi:http.fluent:1.3'
2323
implementation 'com.google.code.gson:gson:2.8.5'
24-
implementation 'com.squareup.okhttp3:okhttp:4.2.0'
24+
implementation ("com.squareup.okhttp3:okhttp:$OKHTTP_VERSION"){
25+
force = true //API 19 support
26+
}
2527
implementation 'com.squareup.okio:okio:2.2.2'
2628
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
2729
implementation 'io.reactivex.rxjava2:rxjava:2.2.3'
@@ -53,7 +55,7 @@ dependencies {
5355
api('com.github.tony19:logback-android-classic:1.1.1-6') {
5456
exclude group: 'com.google.android', module: 'android'
5557
}
56-
implementation "com.squareup.okhttp3:logging-interceptor:4.2.0"
58+
implementation "com.squareup.okhttp3:logging-interceptor:$OKHTTP_VERSION"
5759

5860
// Dependency injector
5961
implementation "com.google.dagger:dagger-android-support:$DAGGER_VERSION"

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ LEAK_CANARY_VERSION=1.6.2
2222
DAGGER_VERSION=2.21
2323
ROOM_VERSION=2.2.3
2424
PREFERENCE_VERSION=1.1.0
25+
OKHTTP_VERSION=3.12.1
2526

2627
systemProp.http.proxyPort=0
2728
systemProp.http.proxyHost=

0 commit comments

Comments
 (0)