Add Sonar support to Oculus Twilight Android

Reviewed By: alex1kom

Differential Revision: D7177071

fbshipit-source-id: 685d40e564d391d18592cedfcc12d8ac743a5331
This commit is contained in:
Caleb Meredith 2018-03-09 11:31:25 -08:00 committed by Facebook Github Bot
parent f1316cab6c
commit a48b4d5df1
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}
/*