[android] - bump okhttp, remove workaround for Android Oreo (#10515)

This commit is contained in:
Tobrun
2017-11-23 08:49:01 +01:00
committed by GitHub
parent bcfe51c16c
commit 7c8fbc8232
2 changed files with 2 additions and 9 deletions

View File

@@ -86,14 +86,7 @@ class HTTPRequest implements Callback {
}
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);
}

View File

@@ -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}"
]