Consolidate OkHttpClient creation

Summary:
Consolidates creation of OkHttpClients used by RN panel apps into PanelAppOkHttpClientProvider. This diff adds no functional changes; however, a followup diff will leverage this to add an Interceptor for overriding the network tier.

Changelog:
[Internal] - Enable passing in custom OkHttpClient to NetworkingModule

Reviewed By: rshest

Differential Revision: D41621244

fbshipit-source-id: 8954f9adc6a0cfdf6312678e2dbd6be8ef9aa5ca
This commit is contained in:
Genki Kondo authored and Facebook GitHub Bot committed 2022-12-01 10:24:55 -08:00
1 parent 14e69db482
commit 07c8854a1c
1 file changed
+1 -1
@@ -109,7 +109,7 @@ public final class NetworkingModule extends NativeNetworkingAndroidSpec {
private final List<ResponseHandler> mResponseHandlers = new ArrayList<>();
private boolean mShuttingDown;
/* package */ NetworkingModule(
public NetworkingModule(
ReactApplicationContext reactContext,
@Nullable String defaultUserAgent,
OkHttpClient client,