@@ -88,7 +88,6 @@ public final class NetworkingModule extends ReactContextBaseJavaModule {
88
88
client = clientBuilder .build ();
89
89
}
90
90
mClient = client ;
91
- OkHttpClientProvider .replaceOkHttpClient (client );
92
91
mCookieHandler = new ForwardingCookieHandler (reactContext );
93
92
mCookieJarContainer = (CookieJarContainer ) mClient .cookieJar ();
94
93
mShuttingDown = false ;
@@ -113,7 +112,7 @@ public final class NetworkingModule extends ReactContextBaseJavaModule {
113
112
* @param context the ReactContext of the application
114
113
*/
115
114
public NetworkingModule (final ReactApplicationContext context ) {
116
- this (context , null , OkHttpClientProvider .getOkHttpClient (), null );
115
+ this (context , null , OkHttpClientProvider .createClient (), null );
117
116
}
118
117
119
118
/**
@@ -124,7 +123,7 @@ public NetworkingModule(final ReactApplicationContext context) {
124
123
public NetworkingModule (
125
124
ReactApplicationContext context ,
126
125
List <NetworkInterceptorCreator > networkInterceptorCreators ) {
127
- this (context , null , OkHttpClientProvider .getOkHttpClient (), networkInterceptorCreators );
126
+ this (context , null , OkHttpClientProvider .createClient (), networkInterceptorCreators );
128
127
}
129
128
130
129
/**
@@ -133,7 +132,7 @@ public NetworkingModule(
133
132
* caller does not provide one explicitly
134
133
*/
135
134
public NetworkingModule (ReactApplicationContext context , String defaultUserAgent ) {
136
- this (context , defaultUserAgent , OkHttpClientProvider .getOkHttpClient (), null );
135
+ this (context , defaultUserAgent , OkHttpClientProvider .createClient (), null );
137
136
}
138
137
139
138
@ Override
0 commit comments