From 07c8854a1cbe32d38857cf2001b16e2549058d93 Mon Sep 17 00:00:00 2001 From: Genki Kondo Date: Thu, 1 Dec 2022 10:24:55 -0800 Subject: [PATCH] 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 --- .../com/facebook/react/modules/network/NetworkingModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java index f80b1c65618a62..18366749ec8a3b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java @@ -109,7 +109,7 @@ public interface ResponseHandler { private final List mResponseHandlers = new ArrayList<>(); private boolean mShuttingDown; - /* package */ NetworkingModule( + public NetworkingModule( ReactApplicationContext reactContext, @Nullable String defaultUserAgent, OkHttpClient client,