Commit Graph

279 Commits

Author SHA1 Message Date
Pritesh Nandgaonkar
eca300d43f Refactor oss ios job to not use pod install
Summary:
This diff adds the ability to run iOS tests without doing pod install in sandcastle. For this, the repo will already have the dependencies archived and checked into the repo. For this I have already added the script, `recreate_offline_mirrors` which takes the first argument, which is the sample app's name, in our case it will be `Sample` and `SampleSwift`. There is one more script `prepare_pods` which untars the dependencies and copies it into the Pods folders.

Reason we are moving away from using `pod install` is that internet is unreliable in sandcastle and there have been many instances that the job fails due to flaky internet.

Reviewed By: passy

Differential Revision: D20136440

fbshipit-source-id: 41028c11da6c66b484f36c7d1090ac7ffd847ec2
2020-03-09 05:12:18 -07:00
Hugo Cuvillier
987822074b Back out "Use component.className instead of NSStringFromClass"
Summary:
Original diff broke OSS flipper. Need a new OSS release of CK first

Original commit changeset: 3e7564b25610

Reviewed By: kfirapps

Differential Revision: D20304743

fbshipit-source-id: 08a56359a42bc56b576d212e7cf642197a064076
2020-03-06 07:59:11 -08:00
Hugo Cuvillier
5a4ac4c32d Use component.className instead of NSStringFromClass
Summary: Use `component.className` in sonar for the layout inspector.

Reviewed By: kfirapps

Differential Revision: D20184486

fbshipit-source-id: 3e7564b2561016ee59f3b1fc9d21313e068bacb3
2020-03-06 04:06:02 -08:00
generatedunixname89002005287564
5c44d53739 Daily arc lint --take CLANGFORMAT
Reviewed By: zertosh

Differential Revision: D20278397

fbshipit-source-id: 2188283cd01d0d9d9d5b3995bd8d3f1fd687ad55
2020-03-05 08:30:40 -08:00
Pritesh Nandgaonkar
f03f119f0e Fix the broken target selector
Summary:
The target selector was broken on iOS. The overlay view which has the gesture recognizer, was never added to the window, due to which the gestures were not registered and the feature broke.

This diff adds the overlay view in the window object as the subview and then discards it in its view descriptor as otherwise we will capture all our touches in this view.

This was the most popular bug in our research trip and almost everyone reported it.

Reviewed By: fabiomassimo

Differential Revision: D20225594

fbshipit-source-id: af4041859d7e662152b2575d1eb258dd0c2d990e
2020-03-04 06:46:59 -08:00
Pascal Hartig
76f2f0f554 Flipper Release: v0.32.2
Summary:
Bugfix release for plugin detection/compilation.

(Note: this ignores all push blocking failures!)

Reviewed By: nikoant

Differential Revision: D20158707

fbshipit-source-id: a0d2a235b48a00d5821a033df30fb5b60cb54f23
2020-02-28 08:51:34 -08:00
Pascal Hartig
959fcee827 Flipper Release: v0.32.1
Summary: Bugfix release with previous Electron version.

Reviewed By: cekkaewnumchai

Differential Revision: D20115911

fbshipit-source-id: 5f84c72f7e4b33d7661e7e6a4db64c51daa38851
2020-02-27 09:50:55 -08:00
Pascal Hartig
6c72fa3dbb Flipper Release: v0.32.0
Summary:
== Highlights ==

- Android: Theme information for Application, Activity and View descriptors are now visible in the Layout plugin. (6f4de969fb)
- App Visualiser: When importing an archived device, you can now see and inspect the last screen of the app. (20db85adf4)

== Fixes ==

- Fix `FlipperKit` warnings in XCode. (972277b031)
- Upgrade Folly to v2020.02.17.00 (GH809)
- Several performance improvements, originally caused by unnecessary rerenders.
- Crash reports weren't scrollable. (e1e8bb841c)
- Kill orhpaned instruments processes. (GH819)

Reviewed By: nikoant

Differential Revision: D20067792

fbshipit-source-id: 3f0ebcb03881373fd909f513e5d82e23a5f9f1f1
2020-02-24 06:53:42 -08:00
Andrey Mishanin
adce24d343 Displaying identifier for root views
Summary: Adding the new "Identity" section to CK root views' description.

Reviewed By: cuva

Differential Revision: D19948784

fbshipit-source-id: f5e7fe51afd387a476f6500db32b8b5149594007
2020-02-21 04:25:16 -08:00
Pritesh Nandgaonkar
972277b031 Fix warnings of FlipperKit in iOS
Summary:
This diff fixes the warnings raised from FlipperKit. Also this diff updates the deployement target of FlipperKit  to iOS 10. Even wilde assumes the min deployment OS version to be iOS 10. In layout plugin we use [UIAccessibiltyTraiTabBar](https://developer.apple.com/documentation/uikit/uiaccessibility/uiaccessibilitytraits/1648592-tabbar), which assumes iOS 10 and above.

Partially fixes https://github.com/facebook/flipper/issues/803

Still there are some warnings which are coming from the dependencies outside of Flipper.

Reviewed By: passy

Differential Revision: D19941558

fbshipit-source-id: 31809fedb9aa297bc318b5af72e29e8444f0142f
2020-02-18 12:47:21 -08:00
Pritesh Nandgaonkar
7db8d300a8 Run CLANGFORMAT on SonarKitTests
Summary: This diff runs CLANGFORMAT lint on SonarKitTests. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.

Reviewed By: cekkaewnumchai

Differential Revision: D19942169

fbshipit-source-id: d4a51dd4ffba3acb30177345c51eb469124f9f5f
2020-02-17 10:49:19 -08:00
Pritesh Nandgaonkar
0e4250b4af Run CLANGFORMAT on sample
Summary: This diff runs CLANGFORMAT lint on sample. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.

Reviewed By: passy

Differential Revision: D19942174

fbshipit-source-id: bef3e67bf31f13bb52417c81c4c330d6c258872d
2020-02-17 10:49:19 -08:00
Pritesh Nandgaonkar
e8b20d5b15 Run CLANGFORMAT on plugins
Summary:
This diff runs CLANGFORMAT lint on plugins. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.

Ran `arc lint -a --paths-cmd "find ./iOS/Plugins -type f" --verbose`

Reviewed By: passy

Differential Revision: D19942173

fbshipit-source-id: 8b975b0a344df073b02d69cd1f9ee5629af2799d
2020-02-17 10:49:18 -08:00
Pritesh Nandgaonkar
a19a430eee Run CLANGFORMAT for FlipperKitTestUtils
Summary:
This diff runs CLANGFORMAT lint on FlipperKitTestUtils. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.
Ran `arc lint -a --paths-cmd "find ./iOS/FlipperKitTestUtils -type f" --verbose`

Reviewed By: passy

Differential Revision: D19942175

fbshipit-source-id: a5067100e604aad438fef1842157217a8cd1734c
2020-02-17 10:49:18 -08:00
Pritesh Nandgaonkar
38478842df Run CLANGFORMAT for FlipperKitTests
Summary:
This diff runs CLANGFORMAT lint on FlipperKitTestUtils. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.
Ran `arc lint -a --paths-cmd "find ./iOS/FlipperKitTests -type f" --verbose`

Reviewed By: passy

Differential Revision: D19942172

fbshipit-source-id: 58322ef6a3a93f9666b3114e872a3a81a3c1cb35
2020-02-17 10:49:18 -08:00
Pritesh Nandgaonkar
36deab1d52 Run CLANGFORMAT on FBDefines
Summary:
This diff runs CLANGFORMAT lint on FlipperKitTestUtils. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.
Ran `arc lint -a --paths-cmd "find ./iOS/FBDefines -type f" --verbose`

Reviewed By: passy

Differential Revision: D19942171

fbshipit-source-id: a5e33c7dce2bee8ed29a58f72f5cf5935391f499
2020-02-17 10:49:17 -08:00
Pritesh Nandgaonkar
ca513cf370 Run CLANGFORMAT on FlipperKit folder
Summary:
This diff runs CLANGFORMAT lint on FlipperKit. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.
Ran `arc lint -a --paths-cmd "find ./iOS/FlipperKit -type f" --verbose`

Reviewed By: passy

Differential Revision: D19942170

fbshipit-source-id: af677323af4edb761f61f8f7e289cab743aa31f2
2020-02-17 10:49:17 -08:00
Michel Weststrate
7d92e3ee58 Flipper Release: v0.31.2
Summary: Releasing Flipper 0.31.2 as preview for the improved React Native support (blog post will follow)

Reviewed By: cekkaewnumchai

Differential Revision: D19939347

fbshipit-source-id: 4bff1aabdd4e63003de9c9c0af2002ed67504da1
2020-02-17 06:21:46 -08:00
Michel Weststrate
1383260a7c Expose React Devtools as a Metro plugin
Summary:
This diff turns the DevTools plugin from a normal plugin in a device plugin. The reason for that can be seen at the end of the test plan in the first stack of this diff: Regardless on which client you open the devtools, you are always looking at the react tree of the app that happens to listen at the appropriate port, unrelated to the actively selected app. This diff moves the plugin from being a client plugin to a device plugin, a Metro device plugin to be precisely, as of the latter there is only one and they should typically correspond (which is why we can trigger reload as done in the previous diff)

Currently we have a Flipper plugin inside the iOS / Android apps with one purpose: to select different ports to listen to on different devices. But this functionality was never implemented, nor seems there to be much demand for. So these plugin don't offer any actual value. The widely used standalone version of the react devtools (https://www.npmjs.com/package/react-devtools) doesn't offer port customization either, so this limitation seems to be acceptable.

To make sure that this change is backward compatible, we make sure to show the metro device if we find metro, regardless whether it is new enough to support log forwarding and reload commands (previously we only showed the device if it has the /events endpoint).

The only case I can think of we are killing with this approach is where people are debugging a RN app, but with having metro running. I doubt that is an actual case, but probably rickhanlonii knows more about that.

Furthermore this diff makes sure that the devTools can connect to physical android devices. Also, making it to the end of this explanation means that you have done most of the reviewing for this diff. The actual code diff is shorter.

Reviewed By: passy

Differential Revision: D19878605

fbshipit-source-id: 3f33e59d4f6e4cce39102420f38afee10018999f
2020-02-17 03:41:13 -08:00
Pritesh Nandgaonkar
35ed3ce1a4 Setup lint for iOS
Summary: uncrustify was not recommended to add in xplat thus I have added clangformat for xplat/sonar/iOS

Reviewed By: zertosh

Differential Revision: D19879977

fbshipit-source-id: 76f6dadf5d55a61a5342802cfde2821cbff38525
2020-02-14 21:17:11 -08:00
Janic Duplessis
44f5e35675 Implement react-native-flipper on iOS (#795)
Summary:
Implement the react-native-flipper native module on iOS. Uses very similar abstractions as on Android.

## Changelog

[react-native-flipper] Support iOS
Pull Request resolved: https://github.com/facebook/flipper/pull/795

Test Plan:
Tested using the RN TicTacToe example app

{F228406333}

Reviewed By: mweststrate

Differential Revision: D19853017

Pulled By: priteshrnandgaonkar

fbshipit-source-id: d93d35ff984b9ba75f812c4c8e3c82e4d550f0c0
2020-02-14 21:17:11 -08:00
Sarah Dong
00bfa39992 Integrate bloks into flipper and monitor state updates
Summary: Client implementation for the flipper send data lispy api

Reviewed By: adamjernst

Differential Revision: D19862378

fbshipit-source-id: 7a5cc8b47772bdbc0e89d723d0099ff824a81ed5
2020-02-13 08:58:06 -08:00
Pritesh Nandgaonkar
db6edb9eee Remove dummy swift file
Summary: Removed the swift files in Sample app and instead added swift library paths in search paths

Reviewed By: passy

Differential Revision: D19877848

fbshipit-source-id: fdaeba8ba4ed58216e413125b29fe20bad9d03f5
2020-02-13 08:51:58 -08:00
Pascal Hartig
effa2ec5a5 Flipper Release: v0.31.1
Summary: Bugfix release for startup problem.

Reviewed By: cekkaewnumchai

Differential Revision: D19832703

fbshipit-source-id: 75451e39f53b2d231e1ad10219b37620593f0998
2020-02-11 06:09:58 -08:00
Pascal Hartig
72a140bd96 Flipper Release: v0.31.0
Summary:
== Highlights ==

- Database query favourites are now persisted across sessions (b0caaa7)
- Allow disabling iOS development in Settings
(aab004a)
- Various improvements to the sidebar
- FPS graph to visualize slow UIs for plugin developers (31df1db)
- Window theme attributes when clicking on a window in the inspector (c430fc3)
- Removed Stetho dependency (48d6ea4). Thanks, ZacSweers!
- Install plugins directly from package files (b9e7f5d6d1)

== Fixes ==

-  Mac plugins not showing up (02e0233)
- Doctor: log both shown and suppressed warnings (35d62e70cb). Thanks, mateosilguero!
- Fix default SDK path on Windows (e178221)
-  Doctor complains Android SDK is not installed
(b625efe)
-  Update welcome screen links (33ad41c)
- Fix 'Timed out waiting for device' error (060e8c0)

Reviewed By: priteshrnandgaonkar

Differential Revision: D19813089

fbshipit-source-id: 8b1fc6fb140d02b7f78adcadd7c45a3ed1755f2f
2020-02-10 07:03:07 -08:00
Pritesh Nandgaonkar
cfb8b367c5 Fix for the broken Layout plugin
Summary: Fixes the broken Layout plugin in wilde. Before this fix it will just show an empty screen in the layout plugin.

Reviewed By: jknoxville

Differential Revision: D19621517

fbshipit-source-id: e10078248b95b93c6b9c87ccf4508628b6ad86bb
2020-01-29 07:50:27 -08:00
Andrey Mishanin
67a1c27af2 Prepending root scope ID
Summary: Using just the scope identifier for the root component is not sufficient when it doesn't have a scope. Solve this by prepending the scope root identifier to the parent identifier.

Reviewed By: fabiomassimo

Differential Revision: D19600721

fbshipit-source-id: d90f9ffd7ae369c76316cebc4ef792626a4584b7
2020-01-28 08:27:38 -08:00
Hugo Cuvillier
7047354f94 Removal of unused protocol CKRenderWithChildrenComponentProtocol
Summary: Ditto

Reviewed By: kfirapps

Differential Revision: D19496643

fbshipit-source-id: ab6777acb68122f2395919a5afbb30a1ccfafe06
2020-01-21 08:26:19 -08:00
Anton Nikolaev
4d91f6eb60 Flipper Release: v0.30.2
Reviewed By: passy

Differential Revision: D19494145

fbshipit-source-id: d5d0bdf6a033c3de286029adec3e0f6245864a62
2020-01-21 03:56:46 -08:00
0xd-cc
f6831e837a iOS/Sample : UI need to be updated on Main Thread (#740)
Summary:
### iOSSample:
Fix iOS Sample App crash: UI need to be updated on Main Thread

### SampleSwift:
* Upgrade swift version
* Fix force unwrapping
* UI need to be updated on Main Thread

## Changelog
Pull Request resolved: https://github.com/facebook/flipper/pull/740

Differential Revision: D19397414

Pulled By: passy

fbshipit-source-id: 7af84c0fe43861aff6a18c36bf81a940baec5147
2020-01-15 03:57:53 -08:00
Pritesh Nandgaonkar
4530eb9235 Release glog and DoubleConversion with different names
Summary: This releases glog and DoubleConversion under "Flipper" preappended name as it solves the issues with Flipper integration with RN under use_frameworks!  keyword.

Reviewed By: passy

Differential Revision: D19392941

fbshipit-source-id: ebdcdc23fcce45cec9bfc6d4f18c14a734caf24f
2020-01-14 10:55:16 -08:00
Oleksii Dykan
8a136542a3 Remove margin from CKFlexboxComponent style property
Summary: This diff removes the margin property from the CKFlexboxComponetn style, as it was never working properly.

Reviewed By: Andrey-Mishanin

Differential Revision: D19251856

fbshipit-source-id: eb8e448a68d2e0ff3cd6726c40af0267fced96ea
2020-01-08 12:10:00 -08:00
Pascal Hartig
21be861894 Flipper Release: v0.30.1
Summary: New release built against Litho 0.33.

Reviewed By: priteshrnandgaonkar

Differential Revision: D19030537

fbshipit-source-id: a14b04decf3023e9ee78ef2a894061d8b04d232e
2019-12-13 11:33:36 -08:00
Pritesh Nandgaonkar
b9ed6022f9 Flipper Release: v0.30.0
Summary:
## Changelog

- Release of the redesigned Support Form

Reviewed By: mweststrate

Differential Revision: D18807901

fbshipit-source-id: 7a8b0775480d9acb6152e9e84425da8256b09964
2019-12-04 04:03:46 -08:00
Pascal Hartig
23c4dcb1e6 Flipper Release: v0.29.4
Summary: Includes a preview of the JS-only plugin API. This is experimental and might break in future releases.

Reviewed By: mweststrate

Differential Revision: D18757712

fbshipit-source-id: a3c238ffbe3d5d80ca8e750cf5ef89b7a7436c62
2019-12-01 09:58:28 -08:00
Pascal Hartig
90c42aff24 Flipper Release: v0.29.3
Summary: Another quick release to trigger our npm update.

Reviewed By: cekkaewnumchai

Differential Revision: D18743449

fbshipit-source-id: 9200fc24aa971082184d6155ad7b2e3465b2fade
2019-11-28 03:11:09 -08:00
Pascal Hartig
478aead349 Flipper Release: v0.29.2
Summary: Another bump for npm. Easiest way to test this, unfortunately.

Reviewed By: mweststrate

Differential Revision: D18726533

fbshipit-source-id: 40d241a24ef5c0cdf8656b054280410b5bcda863
2019-11-27 08:02:21 -08:00
Pascal Hartig
0528a5c3c8 Flipper Release: v0.29.1
Summary: Quick "hot-fix" to trigger the npm publish step.

Reviewed By: jknoxville

Differential Revision: D18708914

fbshipit-source-id: 87c6db82d0d248e21e1761b83237d7802d25669c
2019-11-26 14:42:30 -08:00
Pascal Hartig
b4059efc67 Flipper Release: v0.29.0
Summary: Flipper Doctor, package manager updates.

Reviewed By: jknoxville

Differential Revision: D18689478

fbshipit-source-id: 594cfc0cc5490cdc2a98e363185cf3423ba43058
2019-11-26 05:30:34 -08:00
Pascal Hartig
1784179187 Flipper Release: v0.28.0
Summary:
**Highlights**

- Redesigned sidebar.
- Compatibility with XCode 11.

Full list of changes: https://github.com/facebook/flipper/compare/v0.27.0...master

Reviewed By: jknoxville

Differential Revision: D18453214

fbshipit-source-id: 98012ba81558bce60a5b75815fb0734a0fbf3445
2019-11-13 05:47:27 -08:00
Pritesh Nandgaonkar
c1d5e8699b Update Flipper-Folly dependency
Summary: I have made a new release for Flipper-Folly with the changes in the base diff

Reviewed By: jknoxville

Differential Revision: D18449493

fbshipit-source-id: bdb60d2a5b16cd0e3fc8d2e135d6d52b97c61fd0
2019-11-12 09:52:48 -08:00
Janic Duplessis
ef06f6d546 Cleanup Flipper-Folly.podspec included headers (#518)
Summary:
- This removes `folly/**/*.h` in `source_files` which causes all headers to be included. Instead we include only the headers needed to build. In my case this caused a conflict with folly's "Zlib.h" getting included instead of the system "zlib.h" (apparently paths are not case sensitive).
- Remove duplicates in `public_header_files`, we can just keep `"folly/**/*.h"` to make all headers public.
- Remove `preserve_paths`, this is not be needed anymore.

## Changelog

Cleanup Flipper-Folly.podspec included headers
Pull Request resolved: https://github.com/facebook/flipper/pull/518

Test Plan: Tested in an app that everything build using the modified podspec.

Reviewed By: jknoxville

Differential Revision: D16918216

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 81cc9891c67bcb019580eb21d1b8e6d7318a4e03
2019-11-12 09:52:48 -08:00
Pritesh Nandgaonkar
db9bd6c22e Fixes the broken build of Sample app on open source
Summary:
This diff fixes the broken sample app for xcode 11. Followed the remediation mentioned in the following links

https://github.com/Carthage/Carthage/issues/2825
https://twitter.com/krzyzanowskim/status/1151549874653081601?s=21

Remediation:

Adding Dummy swift file and assigning `"LD_VERIFY_BITCODE": "NO"` solves the problem as suggested in the above links

Reviewed By: jknoxville

Differential Revision: D18420954

fbshipit-source-id: e87930790329ffb2bb92c40aa197552efeedecd3
2019-11-11 10:16:11 -08:00
Kevin Lin
5ca8b6dc30 Make rootNode a weak reference in SKComponentLayoutWrapper
Summary: In some cases this can cause a retain cycle.

Reviewed By: priteshrnandgaonkar

Differential Revision: D18297780

fbshipit-source-id: c60abdcaad9fd94c457647509aec0519042801e4
2019-11-05 09:58:04 -08:00
Pascal Hartig
3d31906b95 Flipper Release: v0.27.0
Summary:
**Highlights**

- Sample Android APK now available as download on this very release page.
- Memory usage viewer available for KaiOS devices.

Full changelog: https://github.com/facebook/flipper/compare/v0.26.0...master

Reviewed By: jknoxville

Differential Revision: D18245037

fbshipit-source-id: 0d49012c1ebd11b406a2bf81e5b41e823ced0c05
2019-10-31 08:43:32 -07:00
Pascal Hartig
15ce3319f1 Flipper Release: v0.26.0
Summary:
**Highlights**

- New settings panel for configuring Android SDK paths and iOS support.
- Support for taking screenshots and recording videos on Windows.
- Copying an element name in the layout inspector now copies the attributes instead of just a numeric identifier.

Full changelog at https://github.com/facebook/flipper/compare/v0.25.0...v0.26.0

Reviewed By: jknoxville

Differential Revision: D18007369

fbshipit-source-id: ad4069da59f5b2b96090a14c17d57d37a0ca64be
2019-10-18 08:29:46 -07:00
Andres Suarez
54ebb44dda Tidy up Flipper license headers [2/2]
Reviewed By: passy

Differential Revision: D17863710

fbshipit-source-id: 5b249bdd1c06d3a526b250b035b797d0c8e796eb
2019-10-11 13:46:45 -07:00
Andres Suarez
0675dd924d Tidy up Flipper license headers [1/2]
Reviewed By: passy

Differential Revision: D17863711

fbshipit-source-id: 259dc77826fb803ff1b88c88529d7f679d3b74d8
2019-10-11 13:46:45 -07:00
Pritesh Nandgaonkar
ab121f9d96 Updated the OpenSSL dependency (#577)
Summary:
This PR updates the openssl dependency with OpenSSL-Universal, which ships a fat-binary of libssl and libcrypto with all the architecture.

This PR also updates the travis to cache cocoapods checkout directory.

## Changelog

Updated Flipper-Folly deps
Pull Request resolved: https://github.com/facebook/flipper/pull/577

Test Plan: CI

Reviewed By: jknoxville

Differential Revision: D17877304

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 9d13308108b6665d4bf5dd6145fcaafa2a2a8a13
2019-10-11 07:54:28 -07:00
LAgagggggg
0ba47d9a71 Fix crash of iOS FlipperNetworkPlugin (#563)
Summary:
Flipper's network plugin may cause crash on a frequency of about one time per 1~2 days(I think it depends on how many network request we send).
![IMG_3095](https://user-images.githubusercontent.com/24563710/65739973-cc540080-e119-11e9-9e6e-e4a925ecc63c.JPG)

  I assume the crash is caused by part of the code of HTTPParser is not thread-safe, and invoke it asynchronously may cause double-free crash. So I manually ask for HTTPBody synchronously, make the HTTPParser parse the request and cache them in advance, before any possible asynchronous invoking.

## Changelog
  Fix potential crash cause by network plugin.
Pull Request resolved: https://github.com/facebook/flipper/pull/563

Test Plan:
1. Run our App with Flipper integrated
2. Make sure FlipperNetworkPlugin is active
3. It may take days to reproduce the crash

Reviewed By: passy

Differential Revision: D17739327

Pulled By: priteshrnandgaonkar

fbshipit-source-id: e814145c346bd2da1d2f5f87b6a2f7e200f0bf2d
2019-10-04 05:38:05 -07:00