Commit Graph

1853 Commits

Author SHA1 Message Date
Sidharth Guglani
0d769aa1c2 using object tracking and creating flipper objects for debug components
Summary: Using ObjectTracker to track debug component nodes and creating flipper objects with debug component data

Reviewed By: davidaurelio

Differential Revision: D15462076

fbshipit-source-id: 5d0b28b6aea4729b85cc9de9ab35f2a07edbae1c
2019-05-23 20:41:20 -07:00
Pritesh Nandgaonkar
914cbf6ccd Request all metadata for Images plugin before export
Summary:
Fresco plugin on the desktop side used to ask for all the image list along with the metadata when it was mounted. The mobile side never sent the image list and other information if not requested from it. That means, although Fresco plugin is a background plugin, there weren't any messages sent from the mobile side. Thus there was no trace available for Images plugin when the trace was exported. This diff, adds a hook which gets called before the export, where we request all the metadata from the mobile SDK.

BUG:

{F159305887}

Reviewed By: passy

Differential Revision: D15407962

fbshipit-source-id: 0012de2ab29d0f62e92d00f4926b04b1e394b62a
2019-05-23 05:48:04 -07:00
Pritesh Nandgaonkar
7576e1c61d Fix watch tab bug
Summary:
This solves the watch tab crash discussed here D15266478, which got reverted.

Bug: [Here](diffusion/FBS/browse/master/xplat/sonar/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.mm;57c596a566bec49e343af51b93df65ed1377a2b9$338), when the node is `CKComponentRootView` the `[descriptor childForNode: node atIndex: i]` returns `SKComponentLayoutWrapper`. In the next iteration of the loop, node is `SKComponentLayoutWrapper`, the  `[descriptor childForNode: node atIndex: i]` returns `CKComponentRootView`, and hence the infinite recursion

I also tested T44431259, it is not regressed.

Reviewed By: passy

Differential Revision: D15451821

fbshipit-source-id: 25f10112f5f52bb1fa964316a4c7e91a3b29156d
2019-05-23 03:50:11 -07:00
Pritesh Nandgaonkar
2c024a4488 Call exportPersistedState only for clients of a selected device
Summary:
Call `exportPersistedState` only for the clients of selectedDevice. This will fasten up our export, we do not need to call `exportPersistedState` for the clients of nonSelectedDevice.

{F159322777}

Reviewed By: passy

Differential Revision: D15440652

fbshipit-source-id: e018603cfeb56fec462b54a6897fb254cc361390
2019-05-22 03:47:27 -07:00
Pritesh Nandgaonkar
0a514c3618 Back out "[Flipper] Use the tree node idenitifer as the component identifier"
Summary:
Original commit changeset: 4d83c1bee3fd

BUG:

{F159187385}

Reviewed By: passy

Differential Revision: D15415247

fbshipit-source-id: 6209a2c9c2b5da6b9405bf01e3cb7622b3431475
2019-05-20 09:46:50 -07:00
Daniel Büchele
7f99a5cfe2 remove crash
Summary: fixing flipper crash on launch

Reviewed By: priteshrnandgaonkar

Differential Revision: D15412629

fbshipit-source-id: e74ee0a60ac10999438da5a888732e42a0ffccc8
2019-05-20 04:47:11 -07:00
Pritesh Nandgaonkar
c7f3e4e588 Exports Wasted bytes metric for Images Plugins
Summary: Exports the `WASTED_BYTES` metric for the Images plugin. Currently its not possible to export the trace for Images Plugin, as all its listeners are setup in the init function of the component. Also it follows "pull" strategy, i.e Flipper asks for the data at component initialization. I will work on asking for the Fresco data when we terminate the headless, just like Layout Plugin.

Reviewed By: oprisnik

Differential Revision: D15393752

fbshipit-source-id: 4f0717ac5fb70a82aab5c803a4f92708d1faa9df
2019-05-20 02:44:09 -07:00
Jonathan Ballerano
bcc05296ef Back out "Fix the crash in the watch tab"
Summary: This resolves a crash related to the contents of certain CKComponents, which was apparently introduced by D15266478

Differential Revision: D15406260

fbshipit-source-id: efd1ad1a1bcb41451c56b74c240ad2dca069deb0
2019-05-17 22:42:35 -07:00
John Knox
7823389081 Enforce android command escaping with flow
Summary: Splits the utility into a public and private part - just for the opaque types to work. The private part validates arguments and does the command running. Both are safe to use, but the non-internal one is easier, you don't have to validate anything.

Reviewed By: passy

Differential Revision: D15393477

fbshipit-source-id: 92f63180fb94af4337fdf8c7dace5bc5a85d5a54
2019-05-17 09:53:37 -07:00
John Knox
d238a958ec Extract execute and push to androidUtil
Summary: This commit doesn't change anything, just moves the android command running stuff into its own utility.

Reviewed By: passy

Differential Revision: D15393476

fbshipit-source-id: de93bbd88fa62bddff8d9ea56cfbc33bfd854d53
2019-05-17 09:53:36 -07:00
John Knox
841d5d57a2 Enable desktop crash reporting
Summary: Sends native crash reports for production internal builds.

Reviewed By: passy

Differential Revision: D15391757

fbshipit-source-id: a4149c2a264eb5ef38fb6f1cc43d52361ac83748
2019-05-17 06:45:05 -07:00
John Knox
d85a357428 Fix columnSize prop
Summary: I added column size persistence when resizing manually, but broke initial column sizing when a prop is provided. This fixes it.

Reviewed By: passy

Differential Revision: D15392145

fbshipit-source-id: 53f79c520917cd571302502c8b75aa0475567cb9
2019-05-17 06:30:28 -07:00
Pritesh Nandgaonkar
89ebb11520 Accept Trace file and export a metric
Summary: This diff adds support to pass a path to the trace file to the headless Flipper. The headless Flipper then exports the metrics out of it.

Reviewed By: passy

Differential Revision: D15337067

fbshipit-source-id: 61aca1ffd58e879dafe6aa176f058f7b11460952
2019-05-17 03:13:48 -07:00
Pascal Hartig
b8f3729752 Update Mac binary
Summary: Checking in a new binary pre-compiled for MacOS.

Reviewed By: jknoxville

Differential Revision: D15374540

fbshipit-source-id: a69e6f497a8c8b9f08144e1482450ff43b85f5da
2019-05-17 02:36:18 -07:00
Pascal Hartig
704634768f Update bump binary for Linux
Summary: This is the one used on sandcastle, built statically.

Reviewed By: jknoxville

Differential Revision: D15374415

fbshipit-source-id: 7b200e8630ce0a3a336cc46df26df367ed712fa1
2019-05-17 02:36:18 -07:00
Pascal Hartig
85f06c53eb Bump noop versions
Summary:
When running bump, also update the docs references to the noop package.

Will update binaries in subsequent diffs.

Reviewed By: jknoxville

Differential Revision: D15374370

fbshipit-source-id: 5558d33a91dc5e690f5754891b2e5aa29385646a
2019-05-17 02:36:17 -07:00
Pritesh Nandgaonkar
2ec6f14759 Flipper Bump: v0.20.4-SNAPSHOT
Summary: Making a release to test the automated pods publishing. The last one failed, due to the wierd Sandcastle bug

Reviewed By: passy

Differential Revision: D15373866

fbshipit-source-id: 644bf24e28d712c40a053623fc2b80bf6b011fde
2019-05-16 10:05:24 -07:00
Pritesh Nandgaonkar
c08032cc51 Flipper Release: v0.20.3
Summary: Making a release to test the automated pods publishing. The last one failed, due to the wierd Sandcastle bug

Reviewed By: passy

Differential Revision: D15373868

fbshipit-source-id: a4e0eb0720f634c5667304f84b0fdaf26060d563
2019-05-16 10:05:24 -07:00
Pascal Hartig
2aabfd98e4 Update search-and-filter.md (#449)
Summary:
Fix some minor typos.
Pull Request resolved: https://github.com/facebook/flipper/pull/449

Reviewed By: danielbuechele

Differential Revision: D15371603

Pulled By: passy

fbshipit-source-id: a64a64039a9275d9b8fce82cb06cec0627bb9af8
2019-05-16 04:22:16 -07:00
Pritesh Nandgaonkar
94231670f8 Commit Tutorial xcodeproj (#448)
Summary:
Commits the Tutorial Xcodproj. It was being ignored by .gitignore
## Changelog
Pull Request resolved: https://github.com/facebook/flipper/pull/448

Reviewed By: passy

Differential Revision: D15358598

Pulled By: priteshrnandgaonkar

fbshipit-source-id: ca6c16205ba7b5f66acb5545f468fb885806496d
2019-05-16 04:07:26 -07:00
Pritesh Nandgaonkar
d7d455191c Flipper Bump: v0.20.3-SNAPSHOT
Summary: Want to make a release to test out the automated release of pods to cocoapods.

Reviewed By: jknoxville

Differential Revision: D15358712

fbshipit-source-id: 9430b7d2f16e3a2df498cc2359bbef7e7d1a3f18
2019-05-16 03:41:55 -07:00
Pritesh Nandgaonkar
a149feb768 Flipper Release: v0.20.2
Summary: Want to make a release to test out the automated release of pods to cocoapods.

Reviewed By: jknoxville

Differential Revision: D15358714

fbshipit-source-id: 08971164cb7c4a27646f3614669ae7cb9e4d6265
2019-05-16 03:41:55 -07:00
Pascal Hartig
3747b15d7b Update styling-components.md (#447)
Summary:
Link to color definitions.
Pull Request resolved: https://github.com/facebook/flipper/pull/447

Reviewed By: danielbuechele

Differential Revision: D15353434

Pulled By: passy

fbshipit-source-id: e1a15ae4979956f2b0529ee86e0a523a93d77006
2019-05-16 02:42:37 -07:00
Sachin Irukula
ef510a7d90 Mapping create plugin tutorial to correct external URL
Summary: Previously "Create your own plugin" in welcome screen and "Create Plugins" in menu were directing to a URL https://fbflipper.com/docs/create-plugin.html which doesn't exist anymore. So pointing the URL to page for plugin creation tutorial https://fbflipper.com/docs/tutorial/intro.html

Reviewed By: jknoxville

Differential Revision: D15362962

fbshipit-source-id: 82a9dedb21911607f20884c9bb36e58d622e8431
2019-05-15 15:49:29 -07:00
Pascal Hartig
b41b64e507 Remove gradle rhino dep
Summary: Noticed that this is still spamming the warning logs during build.

Reviewed By: danielbuechele

Differential Revision: D15354006

fbshipit-source-id: f34b99267d946ccb9ae0704beebbd48d39e9723a
2019-05-15 11:05:18 -07:00
Pascal Hartig
c6e60e1e0c Fix typo
Summary: Drive-by fix.

Reviewed By: danielbuechele

Differential Revision: D15353813

fbshipit-source-id: 34fa17d63d80daaea4d453c749f3a676b645d7a1
2019-05-15 10:26:37 -07:00
Pascal Hartig
71230b3f7b Move navigation test to right folder
Summary: Probably wrong default.

Reviewed By: danielbuechele

Differential Revision: D15353913

fbshipit-source-id: d2582b9356ff14a4503fab9b85566cc1a59f31e8
2019-05-15 10:26:37 -07:00
Pascal Hartig
6ea07c9e71 Move test to right directory
Summary: You're not supposed to be here.

Reviewed By: SidharthGuglani

Differential Revision: D15353936

fbshipit-source-id: f389aeaff71f940d96dfc0422694fb0020dee05c
2019-05-15 09:10:55 -07:00
Pascal Hartig
2b6888b0d3 Update share-flipper-data.md (#446)
Summary:
It looked like the "..." was meant as a placeholder?
Pull Request resolved: https://github.com/facebook/flipper/pull/446

Reviewed By: danielbuechele

Differential Revision: D15337644

Pulled By: passy

fbshipit-source-id: 89d4d15d1448d8c61997341b5bfd67f2adb6a021
2019-05-15 03:51:30 -07:00
Daniel Büchele
3df970a7d3 docs: add debugging info
Summary: Adds troubleshooting infos for issues like https://github.com/facebook/flipper/issues/444

Reviewed By: passy

Differential Revision: D15335814

fbshipit-source-id: 96969d61a6842c86123b77817059340fec38a665
2019-05-15 02:53:49 -07:00
Pritesh Nandgaonkar
07f327f46b Automate iOS release (#445)
Summary:
This PR sets up Circle CI to publish pods when github release is made. This PR also updates the Flipper-Folly pod as it didn't build on 32 bit architecture, because `thread_local` was not supported.

Automated publish of cocoapods through Circle CI.
Pull Request resolved: https://github.com/facebook/flipper/pull/445

Reviewed By: danielbuechele

Differential Revision: D15333975

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 7db68efeeebbe344213917f10f9f3ce4132e8cbc
2019-05-14 07:24:10 -07:00
Sidharth Guglani
3086a7262d Create yoga performance plugin initial files using scarf
Summary:
YogaPerformance flipper plugin initial files
Auto generated using scarf plugin

Reviewed By: davidaurelio

Differential Revision: D15317118

fbshipit-source-id: 30c5c93a8ad4312478ea85979bdf230aa9186596
2019-05-14 03:21:32 -07:00
Corey Wu
2badd4efea Add Flipper plugin for Navigation
Summary:
The main goal is to update visitation id for our targeted tabs requirements (https://fb.quip.com/2jZiA97DTATi). In doing so, we want an easier way to debug whether everything is working as expected.

I've been meaning to add something like this for a while since it's a pain to explain what the visitation id and HSM look like as you navigate the app, so this should help the other teams who're using visitation id as well.

Will probably also start adding navigation events and any other data that we feel is useful.

Run:
```
fbsource/xplat/sonar/scripts/facebook/create-plugin.py Navigation --android
```
Then clean a few things up and fix lints.

Differential Revision: D14759995

fbshipit-source-id: 066dcbf70eed7056f995053cc9ba80dcbbafdb03
2019-05-11 20:45:49 -07:00
Pritesh Nandgaonkar
821232a9c6 Fix the crash in the watch tab
Summary:
BUG:

{F158264042}

Context: The code entered an infinite loop till it crashed. In the implementation of `- (SKSearchResultNode *)searchForQuery:(NSString *)query fromNode:(id)node withElementsAlreadyAdded:(NSMutableSet<NSString *> *)alreadyAdded`, we recurse through the child. In the case when the view was `CKRootComponent` it created a `SKComponentLayoutWrapper` in the call to `[descriptor childForNode: node atIndex: i];`. This wrapper's descriptor used to return the very same view from which it was created when it's children were asked. So this led to an infinite loop.

Reviewed By: kfirapps

Differential Revision: D15266478

fbshipit-source-id: 8035209746b7cb4b8773e2fcbdd4c0a148191304
2019-05-10 09:53:18 -07:00
Daniel Büchele
d6ccf74c37 focus from context menu
Summary: Add option to focus a view from the context menu.

Reviewed By: passy

Differential Revision: D15294182

fbshipit-source-id: f03db136e8365833beee3b4883d2114e98a280bd
2019-05-10 06:19:28 -07:00
Daniel Büchele
ffea42e57f show/update focused element
Summary: This was already implemented in the old versin of layout inspector and got lost during the refactoring. When using talkback, the focused view is highlighted in green in the a11y inspector.

Reviewed By: passy

Differential Revision: D15294025

fbshipit-source-id: 92cc015e4bc726515e433b7b96f924246916972d
2019-05-10 06:19:28 -07:00
Daniel Büchele
e38fc0ca90 update FB brand color
Summary: Updating FB's brandcolor to reflect launch of FB5.

Reviewed By: passy

Differential Revision: D15293747

fbshipit-source-id: e3c99119ccf9301cb0a3b64cdb06ead5cc31b338
2019-05-10 05:53:43 -07:00
Pascal Hartig
84e4b916ee Remove JS console plugin
Summary: This is to unblock our mobile lab build target that adds Flipper to a redex-able build. Redex currently crashes when it tries to optimise Rhino. This could probably be fixed but we don't have any real use-cases for the console plugin right now. It should be fairly easy to unland this even partially if we want to revive this in the future.

Reviewed By: danielbuechele

Differential Revision: D15044539

fbshipit-source-id: f0857274aa046f5be935a342cf91b6a390fcb3dc
2019-05-09 09:54:53 -07:00
Pritesh Nandgaonkar
8684812907 check for the empty string
Summary:
Bug:

{F157985015}

Reviewed By: danielbuechele

Differential Revision: D15260689

fbshipit-source-id: c43cdc0fc0d3e624ad930af60a9c95996579acb6
2019-05-09 07:21:45 -07:00
Pritesh Nandgaonkar
4dcb41f5e6 Iterative version of the serializer
Summary: Iterative version of the custom serializer. The recursive implementation led to call stack overflow for news feed surface in fb4a.

Reviewed By: danielbuechele

Differential Revision: D15251643

fbshipit-source-id: b8af921b1a4d85c52d4d45a7abf95a5bb5f283f7
2019-05-09 06:36:36 -07:00
Pascal Hartig
3fa0a92754 Ensure build dir exists before writing to it (#436)
Summary:
This is because `doLast` may happen after the cleanup came around to undo `createNativeDepsDirectories` specified as dependency.
Pull Request resolved: https://github.com/facebook/flipper/pull/436

Reviewed By: jknoxville

Differential Revision: D15260597

Pulled By: passy

fbshipit-source-id: b752af2b71217ebc1d802b43f1585e858a41fc00
2019-05-08 10:10:43 -07:00
John Knox
9528078296 Add "Copy cell" to ManagedTable
Summary:
Previously you could only copy the entire row.
Now you can choose which cell to copy.
Not the perfect UI admittedly, but that would require a big change to make individual cells selectable. I think it's a definite improvement.

Reviewed By: passy

Differential Revision: D15231784

fbshipit-source-id: 0d52192a5bf4e8ea1ebee74988c749d3f602fea9
2019-05-08 09:42:00 -07:00
Pascal Hartig
680a6040bb Update stetho.md (#437)
Summary:
Capitalising some names and fixing typos.
Pull Request resolved: https://github.com/facebook/flipper/pull/437

Reviewed By: priteshrnandgaonkar

Differential Revision: D15258308

Pulled By: passy

fbshipit-source-id: 74ecbc35e8979fbcbc85aa0e81183190169388ab
2019-05-08 09:14:20 -07:00
Pascal Hartig
94f4a7261f Update sandbox-plugin.md (#438)
Summary:
Simplify wording a bit.
Pull Request resolved: https://github.com/facebook/flipper/pull/438

Reviewed By: priteshrnandgaonkar

Differential Revision: D15258346

Pulled By: passy

fbshipit-source-id: 98e7b6bd190e90e9f5e63d9522dc880f54f72168
2019-05-08 09:08:26 -07:00
Pascal Hartig
2cdcd9bad9 Fix inspector crash on null colors
Summary: Quick fix for layout plugin and export crashing when encountering nullable props for colors and drawables like `refreshProgressBarBackgroundColor` on `RecyclerSpec`. The rendered view in the inspector is not great right now, but better than a crash. Working on the correct representation next.

Reviewed By: jknoxville

Differential Revision: D15241151

fbshipit-source-id: 3754dee8861a442127a34d7c3211d223c5f390c1
2019-05-07 13:59:17 -07:00
John Knox
9bd6b6a607 Disable onClick for resize area of Interactive components
Summary: This was causing resizing to trigger onClick every time, which isn't wanted.

Reviewed By: passy

Differential Revision: D15219039

fbshipit-source-id: ea5d9221b0ce8fa7a050a8410876cf78bfee2bc6
2019-05-07 11:46:04 -07:00
Pascal Hartig
cdd733463a Add Cocoapods README badge
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/434

Reviewed By: jknoxville

Differential Revision: D15238279

Pulled By: passy

fbshipit-source-id: a5bd6bf45d0a9cd64d37de9c7c732c6b66403ee8
2019-05-07 11:24:42 -07:00
Adrian Zgorzalek
29951a266b Upgrade prettier to 1.17.0
Summary:
Run `js1 upgrade prettier 1.17.0` and `xplat/js/scripts/update-oss-yarn-lockfile.sh` and `hg revert -r .^ xplat/js/rome`

allow-large-files

Reviewed By: zackargyle, pvdz

Differential Revision: D15164375

fbshipit-source-id: 2fe68733dfa93ea64a67d170ba2f80c5af086917
2019-05-07 10:40:16 -07:00
Pascal Hartig
484f38a814 Update logs-plugin.md (#435)
Summary:
Fix some typos.
Pull Request resolved: https://github.com/facebook/flipper/pull/435

Reviewed By: jknoxville

Differential Revision: D15239797

Pulled By: passy

fbshipit-source-id: baf0518f10998bb8027dcdf97490452aff101a42
2019-05-07 10:32:50 -07:00
Pascal Hartig
1c67540bf7 Fix javadoc typo
Summary: Drive-by fix.

Reviewed By: jknoxville

Differential Revision: D15241511

fbshipit-source-id: e87f31a9929c24aa56b8101303703342d2ae64c5
2019-05-07 10:27:57 -07:00