Add Sonar support to Oculus Twilight Android
Reviewed By: alex1kom Differential Revision: D7177071 fbshipit-source-id: 685d40e564d391d18592cedfcc12d8ac743a5331
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue