mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 09:29:07 +08:00
Add Sonar support to Oculus Twilight Android
Reviewed By: alex1kom Differential Revision: D7177071 fbshipit-source-id: 685d40e564d391d18592cedfcc12d8ac743a5331
This commit is contained in:
committed by
Facebook Github Bot
parent
f1316cab6c
commit
a48b4d5df1
@@ -54,7 +54,10 @@ public class OkHttpClientProvider {
|
||||
if (sFactory != null) {
|
||||
return sFactory.createNewNetworkModuleClient();
|
||||
}
|
||||
return createClientBuilder().build();
|
||||
}
|
||||
|
||||
public static OkHttpClient.Builder createClientBuilder() {
|
||||
// No timeouts by default
|
||||
OkHttpClient.Builder client = new OkHttpClient.Builder()
|
||||
.connectTimeout(0, TimeUnit.MILLISECONDS)
|
||||
@@ -62,7 +65,7 @@ public class OkHttpClientProvider {
|
||||
.writeTimeout(0, TimeUnit.MILLISECONDS)
|
||||
.cookieJar(new ReactCookieJarContainer());
|
||||
|
||||
return enableTls12OnPreLollipop(client).build();
|
||||
return enableTls12OnPreLollipop(client);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user