Skip to content

Commit cc845cc

Browse files
safaiyehfacebook-github-bot
authored andcommitted
Make addCookies method public. (#27512)
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
1 parent 98ebc1e commit cc845cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void destroy() {
124124
}
125125
}
126126

127-
private void addCookies(final String url, final List<String> cookies) {
127+
public void addCookies(final String url, final List<String> cookies) {
128128
final CookieManager cookieManager = getCookieManager();
129129
if (cookieManager == null) return;
130130

0 commit comments

Comments
 (0)