Skip to content

Commit

Permalink
Consolidate OkHttpClient creation
Browse files Browse the repository at this point in the history
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
  • Loading branch information
genkikondo authored and facebook-github-bot committed Dec 1, 2022
1 parent 14e69db commit 07c8854
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public interface ResponseHandler {
private final List<ResponseHandler> mResponseHandlers = new ArrayList<>();
private boolean mShuttingDown;

/* package */ NetworkingModule(
public NetworkingModule(
ReactApplicationContext reactContext,
@Nullable String defaultUserAgent,
OkHttpClient client,
Expand Down

0 comments on commit 07c8854

Please sign in to comment.