Files
Alexander Blom 0165ae1e55 Support cookies on Android
Summary: This adds a persistent cookie store that shares cookies with WebView.

Add a `ForwardingCookieHandler` to OkHttp that uses the underlying Android webkit `CookieManager`.
Use a `LazyCookieHandler` to defer initialization of `CookieManager` as this will in turn trigger initialization of the Chromium stack in KitKat+ which takes some time. This was we will incur this cost on a background network thread instead of during startup.
Also add a `clearCookies()` method to the network module.

Add a cookies example to the XHR example. This example should also work for iOS (except for the clear cookies part). They are for now just scoped to Android.

Closes #2792.

public

Reviewed By: andreicoman11

Differential Revision: D2615550

fb-gh-sync-id: ff726a35f0fc3c7124d2f755448fe24c9d1caf21

Conflicts:
	ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java
2015-11-23 16:29:19 +00:00
..
2015-07-24 08:41:58 -08:00
2015-10-26 15:36:14 -07:00
2015-11-05 03:35:18 -08:00
2015-11-20 16:47:28 +00:00
2015-03-25 11:09:54 -08:00
2015-11-20 16:47:28 +00:00
2015-10-30 17:09:27 -07:00
2015-11-23 16:29:19 +00:00
2015-09-08 03:34:33 -08:00
2015-11-20 16:47:28 +00:00
2015-07-24 08:41:58 -08:00
2015-11-06 07:26:27 -08:00
2015-07-24 08:41:58 -08:00
2015-11-06 11:24:29 -08:00
2015-04-15 06:06:29 -08:00