react-native-macos/local-cli
Andrew Jack 6bbaff2944 Upgrade to OkHttp3
Summary:
Update to [OkHttp](https://github.com/square/okhttp) to [OkHttp3](https://publicobject.com/2015/12/12/com-squareup-okhttp3/)

We must also update:
- Fresco to 0.10.0
- okio to 1.8.0

**Motivation**
Reasons for upgrading:
* Issue #4021
* "We discovered that RN Android sometimes fails to connect to the latest stable version of NGINX when HTTP/2 is enabled. We aren't seeing errors with other HTTP clients so we think it's specific to RN and OkHttp. Square has fixed several HTTP/2 bugs over the past eight months." - ide
* OkHttp3 will be maintained & improved, but OkHttp2 will only receive [security fixes](https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability/)
* Cleaner APIs - "Get and Set prefixes are avoided"
* Deprecated/Removed - HttpURLConnection & Apache HTTP
* React Native apps are currently being forced to bundle two versions of OkHttp (v2 & v3), if another library uses v3
* Improved WebSocket performance - [CHANGELOG.md](https://github.com/square/okhttp/blob/master
Closes https://github.com/facebook/react-native/pull/6113

Reviewed By: andreicoman11, lexs

Differential Revision: D3292375

Pulled By: bestander

fbshipit-source-id: 7c7043eaa2ea63f95854108b401c4066098d67f7
2016-05-17 12:43:39 -07:00
..
__mocks__ Fix more tests 2015-09-16 13:05:30 -07:00
__tests__ Temporarily disable cli tests 2015-11-12 07:05:01 -08:00
bundle Terminate startup code with a null byte, too (indexed file random access bundles) 2016-05-17 09:58:44 -07:00
dependencies Upgrade to node-haste@2.10.0 and allow to specify extra node modules 2016-04-28 06:33:27 -07:00
generate Revert "Add folders to attempt to unblock sync" 2015-10-26 22:48:10 +00:00
generator Add flow directive to index.android.js 2016-05-10 03:11:21 -07:00
generator-android Upgrade to OkHttp3 2016-05-17 12:43:39 -07:00
generator-ios Make the root view background color explicit 2016-05-14 22:43:20 -07:00
library Remove 'react-native link' 2016-04-29 05:27:28 -07:00
runAndroid Setting current working directory for dev server. 2016-05-04 02:45:29 -07:00
runIOS Make iOS project path configurable by parameter in run-ios cli command 2016-04-01 08:03:20 -07:00
server Reverted commit D3242754 2016-04-30 16:54:31 -07:00
upgrade Updated a warning string in upgrade.js 2016-04-30 18:21:17 -07:00
util Have parseCommandLine use a new instance of optimist for each run 2016-04-08 12:09:22 -07:00
version Add `--version` to `local-cli/cli.js` 2016-04-29 09:25:32 -07:00
cli.js Reverted commit D3242754 2016-04-30 16:54:31 -07:00
default.config.js react app root path can be override by env var 'react_native_app_root' 2016-04-07 07:39:22 -07:00
generate-android.js Add license headers to local-cli 2015-10-20 09:55:21 -07:00
generator-utils.js flowconfig adds flow/ folder 2016-03-21 06:26:34 -07:00
setup_env.bat Fix comments on .bat file 2015-10-28 21:36:07 -04:00
setup_env.sh Change ulimit to 2048 for non root Mac users 2016-02-06 11:45:37 -08:00
wrong-react-native.js Fix usage of react-native cli inside package.json scripts 2016-04-26 15:42:35 -07:00