Skip to content

Commit

Permalink
Make addCookies method public. (#27512)
Browse files Browse the repository at this point in the history
Summary:
react-native-cookie-store wants the ability to set custom cookies on Android. We use ForwardingCookieHandler to mange the cookies. Exposing the `addCookies` method will allow the module to provide the same functionality on Android.

safaiyeh/react-native-cookie-store#1

## Changelog

[Android] [Changed] - Expose addCookies method
Pull Request resolved: #27512

Test Plan: N/A

Differential Revision: D19236309

Pulled By: cpojer

fbshipit-source-id: bf1a0730165456c34c5bf432ac370176a881cbcf
  • Loading branch information
safaiyeh authored and facebook-github-bot committed Dec 27, 2019
1 parent 98ebc1e commit cc845cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void destroy() {
}
}

private void addCookies(final String url, final List<String> cookies) {
public void addCookies(final String url, final List<String> cookies) {
final CookieManager cookieManager = getCookieManager();
if (cookieManager == null) return;

Expand Down

0 comments on commit cc845cc

Please sign in to comment.