mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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. https://github.com/safaiyeh/react-native-cookie-store/issues/1 ## Changelog [Android] [Changed] - Expose addCookies method Pull Request resolved: https://github.com/facebook/react-native/pull/27512 Test Plan: N/A Differential Revision: D19236309 Pulled By: cpojer fbshipit-source-id: bf1a0730165456c34c5bf432ac370176a881cbcf
This commit is contained in:
committed by
Facebook Github Bot
parent
98ebc1ea25
commit
cc845ccfb4
+1
-1
@@ -124,7 +124,7 @@ public class ForwardingCookieHandler extends CookieHandler {
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user