Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - bump okhttp, remove workaround for Android Oreo (#10515)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun authored Nov 23, 2017
1 parent bcfe51c commit 7c8fbc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,7 @@ private HTTPRequest(long nativePtr, String resourceUrl, String etag, String modi
}
mRequest = builder.build();
mCall = mClient.newCall(mRequest);

// TODO remove code block for workaround in #10303
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.N_MR1) {
mCall.enqueue(this);
} else {
// Calling execute instead of enqueue is a workaround for #10303
onResponse(mCall, mCall.execute());
}
mCall.enqueue(this);
} catch (Exception exception) {
onFailure(exception);
}
Expand Down
2 changes: 1 addition & 1 deletion platform/android/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ext {

// square crew
timber : 'com.jakewharton.timber:timber:4.5.1',
okhttp3 : 'com.squareup.okhttp3:okhttp:3.9.0',
okhttp3 : 'com.squareup.okhttp3:okhttp:3.9.1',
leakCanaryDebug : "com.squareup.leakcanary:leakcanary-android:${leakCanaryVersion}",
leakCanaryRelease : "com.squareup.leakcanary:leakcanary-android-no-op:${leakCanaryVersion}"
]
Expand Down

0 comments on commit 7c8fbc8

Please sign in to comment.