Commit Graph

359 Commits

Author SHA1 Message Date
Anton Nikolaev
d08dfee018 "init" command for flipper-pkg tool
Summary: Added command "init" to "flipper-pkg" which helps to quickly initialise Flipper desktop plugin.

Reviewed By: passy

Differential Revision: D21253819

fbshipit-source-id: 85a2fbde07ecb63737d180d2a7e5cc2846b4f533
2020-04-27 17:34:12 -07:00
Anton Nikolaev
21c574ac80 "lint" command for flipper-pkg tool
Summary:
Implemented json schema for flipper plugin package.json and used it for validation in "flipper-pkg lint" command.

Nice thing about json schema is that it not only allows to validate json, but also can be referenced using "$schema" property in json so IDEs like VSCode can find it and use for code completion, validation and to show properties documentation. I'm going to deploy the schema as a part of documentation website so it can be referenced as https://fbflipper.com/schemas/plugin-package/v2.json.

Also the "$schema" field can be used instead of "specVersion" to determine the specification according to which the plugin is defined. E.g., if specification version 3 would be created, it will be described in schema https://fbflipper.com/schemas/plugin-package/v3.json, etc.

Reviewed By: passy

Differential Revision: D21228294

fbshipit-source-id: f21351e584ef936a7d6b314436448489691f83a6
2020-04-27 17:34:11 -07:00
Michel Weststrate
b9c3d99f44 Stop connecting disabled background plugins
Summary:
Background for this diff: https://fb.quip.com/KqEfAlKYlgme

Some plugins don't respect that stuff (livefeed and graphql), but for others it seems to work fine.

This is just a PoC, there are some present bugs concerning the combination of selecting and bg plugins

Questions to investigate:

- [x] make sure that LiveFeed and GraphQL disconnect properly. There might be more plugins that need that
- [x] verifiy that we don't loose one of the original goals of background plugins, e.g. QPL collecting and sending data from device start. Does this still work as intended after this change?
- [x] how can we observe / measure improvements? Are dev builds more responsive after this? Is the layout inspector smoother for example because no QPL plugins are interweaved?
- [x] how is forward and backward compatibility?
   - If Flipper is updated, but device not: No change I think, as getBackgroundPlugins() will return an empty set, and background plugins are initiated as usual, so old behavior
  - If device is updated, but Flipper not, background plugins won't be started until they are selected. This is a degradation, but hopefully explainable.
- [x] Verify QPL buffer is not unbounded
- [x] Share architecutre changes with team

For Graphql updates: D20943455

Added runtime stats to monitor network traffic (sadly had to redo that since scuba couldn't handle the data format used at first, so probably will hold of landing this diff a week to make sure we can see some effects)

Follow up work:

[x] wait until we released the stat tracking before we release this, to be able to measure the effect?
[x] make sure graphql fix lands
[ ] use side effects abstraction
[ ] fix other background plugins (android only) or fix it in a generic way:

{F234394286}

Changelog: Background plugins will no longer receive a Flipper connection if they are disabled. This should significantly reduce the overall load of Flipper both on the device and desktop when unused plugins are disabled used, which could otherwise generate 10MB/s of network traffic certain scenarios. All plugins *should* be able to handle to this gracefully, but since this is quite a fundamental change, reach out to the Flipper team when in doubt!

Reviewed By: jknoxville

Differential Revision: D20942453

fbshipit-source-id: b699199cb95c1b3e4c36e026b6dfaee7d1652e1f
2020-04-27 09:46:13 -07:00
John Knox
5f1a0548f5 Migrate website to Docusaurus 2
Summary:
Docusaurus 2 is quite a lot more powerful than docu 1 it turns out.
This should convert the website fully.

* [done] Go through migration guide https://v2.docusaurus.io/docs/migrating-from-v1-to-v2
* [done] Convert landing page html
* [done] Convert all images to img tags
* [done] Convert all .md files to .mdx
* [done] Make sure ui-doc generation and including still works
* [done] Scan every page visually for sanity check
* [done] Make sure footer still works
* [done] Make sure search still works
* [done] Change all links/ to links/index
* [done] Change all links.md to links
* [done] Add some custom css to make the navbar look like the old one and darken the footer.

Reviewed By: passy

Differential Revision: D21158717

fbshipit-source-id: 5f45b711b1b6fd5ece4c5c15c55635c7ebbfb568
2020-04-27 04:05:01 -07:00
Michel Weststrate
7ba57dae33 Expose flipper as peer-, not full dependency
Summary: Flipper should never be a normal dependency of a flipper plugin. And since this an example, lets do it properly :)

Reviewed By: jknoxville, passy

Differential Revision: D21228427

fbshipit-source-id: 72166c8706a213e2cb649f1201984dd722b63d2f
2020-04-24 10:44:49 -07:00
Anton Nikolaev
fe09dae237 Update tutorial to reflect changes in plugin packaging format
Summary: Tutorial updated to reflect changes in plugin packaging format

Reviewed By: passy

Differential Revision: D21161268

fbshipit-source-id: b7c6d272be8dd56b76a0af87acdc347df4216f6c
2020-04-23 05:58:39 -07:00
Anton Nikolaev
e165c2cd95 Desktop plugin development workflow
Summary: Updated docs describing workflow for creating Flipper desktop plugins

Reviewed By: passy

Differential Revision: D21129688

fbshipit-source-id: 68921e5d3784e3ab6b3e8397199b10101348a86a
2020-04-23 05:58:39 -07:00
generatedunixname89002005306973
3a95875f67 Flipper Snapshot Bump: v0.39.1-SNAPSHOT
Summary: Releasing snapshot version 0.39.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D21199719

fbshipit-source-id: 8413813d2bbda124e216c937c7dde6183fae47dc
2020-04-23 03:57:12 -07:00
generatedunixname89002005306973
99c5a427c7 Flipper Release: v0.39.0
Summary: Releasing version 0.39.0

Reviewed By: mweststrate

Differential Revision: D21199718

fbshipit-source-id: 1082098a2b4fcfaa7b7efb201e8321331fd4bdc4
2020-04-23 03:57:12 -07:00
Michel Weststrate
c611ae12f0 Flipper Snapshot Bump: v0.38.1-SNAPSHOT
Summary: Releasing snapshot version 0.38.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D21155372

fbshipit-source-id: 97360d17c973162db2ece2078c0d4c24df5a414e
2020-04-21 13:10:57 -07:00
Michel Weststrate
18b88a7e03 Flipper Release: v0.38.0
Summary: Releasing version 0.38.0

Reviewed By: cekkaewnumchai

Differential Revision: D21155371

fbshipit-source-id: 554393fc357135cd8538c9b77eee023f8a3e1525
2020-04-21 13:10:56 -07:00
Pascal Hartig
756987e4bf Fix typo in architecture
Summary: Per title.

Reviewed By: jknoxville

Differential Revision: D21158664

fbshipit-source-id: 953d968da18768db91507b4148e53ff8a042c53d
2020-04-21 11:38:33 -07:00
John Knox
4b54eb3ec6 Fix broken asset link
Summary:
Assets should never be referenced by /doc/assets, as it breaks docusaurus' baseUrl conversion.

I'd write a lint rule for this but I don't know if it affects docusaurus v2, might be better to just migrate to that.

Reviewed By: passy

Differential Revision: D21153686

fbshipit-source-id: d839015e989a64f897617855ece77439da388cb7
2020-04-21 06:53:48 -07:00
Pritesh Nandgaonkar
9b8974eeb3 Remove the Yogakit change from post install (#1016)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/1016

YogaKit's version is compatible recent version of swift and also before the last release its swift version was not mentioned, which caused issues, but now there is no need to set the swift version.

Reviewed By: passy

Differential Revision: D21054723

fbshipit-source-id: 2210cf4beab86088533302028091e0bc44b9d232
2020-04-17 07:56:15 -07:00
Pascal Hartig
9aaac09b1c Bump SoLoader version reference in getting started
Summary: ^

Reviewed By: nikoant

Differential Revision: D21062443

fbshipit-source-id: 80730e6fa72ca64fa56f50d96155b4531e3d858b
2020-04-16 06:11:35 -07:00
Lucas Bento
bb3159df83 Add correct Troubleshooting page links (#1013)
Summary:
This PR fixes a broken `Troubleshooting` link in the iOS setup page as well as adds that link to the React Native iOS one.

## Changelog

Add correct `Troubleshooting` page links
Pull Request resolved: https://github.com/facebook/flipper/pull/1013

Test Plan: Check `docs/getting-started/native-ios` and `docs/getting-started/react-native-ios`.

Reviewed By: mweststrate

Differential Revision: D21042264

Pulled By: passy

fbshipit-source-id: 3b069b3ffa51d5d290af410d8c85ecb316d76c32
2020-04-16 04:26:34 -07:00
Jamon Holmgren
8c9de002bf Add Reactotron's Flipper plugin to docs / website (#1009)
Summary:
We've ported [Reactotron](https://infinite.red/reactotron) to work as a Flipper plugin. This adds a new section listing known community plugins and starts with Reactotron-in-Flipper as an example.

## Changelog

Added one section to the React Native page.
Pull Request resolved: https://github.com/facebook/flipper/pull/1009

Test Plan: Docs-only.

Reviewed By: passy

Differential Revision: D21039079

Pulled By: mweststrate

fbshipit-source-id: 1187119d78baba321012f8ffa243685b25441e9d
2020-04-15 06:20:31 -07:00
generatedunixname89002005306973
8364e78e71 Flipper Snapshot Bump: v0.37.1-SNAPSHOT
Summary: Releasing snapshot version 0.37.1-SNAPSHOT

Reviewed By: jknoxville

Differential Revision: D20919248

fbshipit-source-id: 6e0e4c03b28d68dd3c65469d097147a96e3797bf
2020-04-09 03:07:19 -07:00
generatedunixname89002005306973
2d27b90bd9 Flipper Release: v0.37.0
Summary: Releasing version 0.37.0

Reviewed By: jknoxville

Differential Revision: D20919249

fbshipit-source-id: 59ec28ba10043da03c460d9eaadb30a8fd2e4a6f
2020-04-09 03:07:19 -07:00
Anton Nikolaev
0a79118ee7 Fix bumping podspecs in "Getting Started" docs in prepare-release.sh
Summary: Fixed bumping podspecs in "Getting Started" docs in prepare-release.sh

Reviewed By: mweststrate

Differential Revision: D20869684

fbshipit-source-id: 78a3b7064de51dbd8ca505db863595726d038326
2020-04-06 11:10:56 -07:00
Pascal Hartig
2823307c62 Add RN Android/iOS docs
Summary:
I trimmed the previous versions of this down a lot to only
focus on what RN developers need to know without duplicating
what we have in the non-RN docs.

Reviewed By: mweststrate

Differential Revision: D20816115

fbshipit-source-id: 9d88a6fb0d49e823194cce647e64b86d61d6229a
2020-04-06 08:27:20 -07:00
John Knox
f1e8297800 Fix broken links on website and github readme
Summary:
The url for the getting started page was changed yesterday. (no longer getting-started.html)
This fixes some links that were broken because of it.

Reviewed By: cekkaewnumchai

Differential Revision: D20855343

fbshipit-source-id: 788efb75f3581e4fe6cecd5f69f11dd64b03e7df
2020-04-04 02:30:52 -07:00
Anton Nikolaev
492b1076d2 Flipper Snapshot Bump: v0.36.1-SNAPSHOT
Summary: Releasing snapshot version 0.36.1-SNAPSHOT

Reviewed By: passy

Differential Revision: D20835544

fbshipit-source-id: 41b8688d544817d8d57522adbafb1315c77f079c
2020-04-03 08:36:49 -07:00
Anton Nikolaev
e35bf2c1ae Flipper Release: v0.36.0
Summary: Releasing version 0.36.0

Reviewed By: passy

Differential Revision: D20835543

fbshipit-source-id: f5d9e8884410b294d4f37cb98db614da4592e6df
2020-04-03 08:36:49 -07:00
Pascal Hartig
0a68044649 Split up getting started docs
Summary:
This is a first step in breaking up the getting started docs.
Ultimately, the React Native Android and iOS bits will become
separate sections, too, but I won't to keep the diffs a bit smaller.
This one doesn't really do much apart from reorganising the current
content.

Reviewed By: mweststrate

Differential Revision: D20815235

fbshipit-source-id: 5c85b788211699a2a9f5808b9e2590c7db68a1c1
2020-04-03 06:17:49 -07:00
John Knox
5ad8106e3f Fix image links with baseUrl
Summary:
When using baseUrl in site config, it adds a prefix to all link paths.

But for assets, it doesn't work if you refer to them as `docs/assets/...`, you have to use just `assets/...`. Source: https://github.com/facebook/Docusaurus/issues/861

Reviewed By: passy

Differential Revision: D20796933

fbshipit-source-id: 2346e42b8b548f576a1e143f56ee5236eab55073
2020-04-02 03:14:08 -07:00
Monero Jeanniton
8b9c3322f1 Imported <DescriptorMapping> and <InspectorFlipperPlugin> (#941)
Summary:
Fixed cannot find symbols: `DescriptorMapping` and `InspectorFlipperPlugin`
Pull Request resolved: https://github.com/facebook/flipper/pull/941

Reviewed By: nikoant

Differential Revision: D20725263

Pulled By: passy

fbshipit-source-id: b56dad354f936d8a2a51f55445b7b3c19394bb66
2020-03-30 06:15:11 -07:00
Lucas Bento
6a7386e2bd Make the RN tutorials link clearer (#935)
Summary:
Minor change to better specify the React Native tutorials, definitely open for opinions.
Pull Request resolved: https://github.com/facebook/flipper/pull/935

Reviewed By: mweststrate

Differential Revision: D20691447

Pulled By: passy

fbshipit-source-id: 00a5e107c010053bd291922a13ce6a2ed8ee1fb1
2020-03-27 04:46:04 -07:00
Michel Weststrate
60ec958f6b Add (manual) tests to be able to verify working of network and logs
Summary: Added some UI so that we can manually verify that logging and network inspection is working in RN + Flipper.

Reviewed By: jknoxville

Differential Revision: D20668428

fbshipit-source-id: 4271595583e055b2b0324b3da7ac216c39717093
2020-03-26 04:54:24 -07:00
generatedunixname89002005306973
39f0e0445e Flipper Snapshot Bump: v0.35.1-SNAPSHOT
Summary: Releasing snapshot version 0.35.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D20655535

fbshipit-source-id: d5722e7f63bc13df1994e09f0eb5ad83b166ae99
2020-03-25 16:38:04 -07:00
generatedunixname89002005306973
fa8ae9cbe1 Flipper Release: v0.35.0
Summary: Releasing version 0.35.0

Reviewed By: jknoxville

Differential Revision: D20655536

fbshipit-source-id: f965954ed0c1ff58382f08caf2dd02032cd84785
2020-03-25 16:38:03 -07:00
Michel Weststrate
8060bcb664 Add feature page for react native integration
Summary: https://pxl.cl/144pb

Reviewed By: jknoxville

Differential Revision: D20648205

fbshipit-source-id: 1349723755ed2be5b577f42ec1e45df07c25c94f
2020-03-25 15:36:22 -07:00
John Knox
0275d35233 Add lifecycle diagrams for regular and background plugins
Summary:
I think this'll clarify how to use the lifecycle methods.

Diagram edit link: https://excalidraw.com/#json=5696112581148672,nDwD6t1BNXVreQ8YE8917g

Reviewed By: mweststrate

Differential Revision: D20645302

fbshipit-source-id: 0814dbe8421cfe8e85c297bd5bfb4a8f1a83c353
2020-03-25 12:50:29 -07:00
Michel Weststrate
da89a92875 Update getting started docs for RN 0.62
Summary:
Kinda what is in the title. But shouldn't be merged yet as RN 0.62 didn't ship yet.

Also, the iOS tutorial hasn't been verified yet, as the relevant diff hasn't been merged yet (see D19391739)

Reviewed By: passy

Differential Revision: D19468497

fbshipit-source-id: 9e7d90123d3637a1a552c4a9def6420137cf8246
2020-03-24 13:33:32 -07:00
Pritesh Nandgaonkar
a2c43653cf Update podfile for Cocoapods 1.9 (#892)
Summary:
Updates the instructions to integrate iOS pods for the case with the usage of `use_frameworks!` for cocoapods 1.9. Also changed our podfile for Tutorial app and add travis test for the same, so that in future if there are any further changes with the API in new releases of cocoapods, we can catch it.
## Changelog

- Added travis test for iOS Tutorial app
- Updated the getting started guide for iOS
Pull Request resolved: https://github.com/facebook/flipper/pull/892

Test Plan: Travis test passed and also tested that tutorial app builds with cocoapods 1.9

Reviewed By: mweststrate

Differential Revision: D20587989

Pulled By: priteshrnandgaonkar

fbshipit-source-id: b297e6b1298a20a9279ad6414e9d099917876fb1
2020-03-23 04:55:52 -07:00
generatedunixname89002005306973
4297b3061f Flipper Snapshot Bump: v0.34.1-SNAPSHOT
Summary: Releasing snapshot version 0.34.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D20480418

fbshipit-source-id: 401706e76326e3af8e9b48f3f4aa1ebc264d3d8e
2020-03-17 05:31:04 -07:00
generatedunixname89002005306973
afa8d6274a Flipper Release: v0.34.0
Summary: Releasing version 0.34.0

Reviewed By: nikoant

Differential Revision: D20480419

fbshipit-source-id: e83a532690c6df8e781683b3dcc2418b8744c961
2020-03-17 05:31:04 -07:00
Anton Nikolaev
0e920e8558 Few fixes in docs after folders re-arrangements
Summary: Few fixes in docs after folders re-arrangements

Reviewed By: mweststrate

Differential Revision: D20465905

fbshipit-source-id: f65a154731a9956cd0cb6ab66a42eaeecaaf8af0
2020-03-16 03:29:04 -07:00
Adam Ernst
d9a2167019 Refactor SKSubDescriptor
Reviewed By: d16r

Differential Revision: D20458337

fbshipit-source-id: e8ea848c6e2f7521c5a6c6eb4110bba0bfe25593
2020-03-15 19:42:39 -07:00
Anton Nikolaev
10d990c32c Move plugins to "sonar/desktop/plugins"
Summary:
Plugins moved from "sonar/desktop/src/plugins" to "sonar/desktop/plugins".

Fixed all the paths after moving.

New "desktop" folder structure:
- `src` - Flipper desktop app JS code executing in Electron Renderer (Chrome) process.
- `static` - Flipper desktop app JS code executing in Electron Main (Node.js) process.
- `plugins` - Flipper desktop JS plugins.
- `pkg` - Flipper packaging lib and CLI tool.
- `doctor` - Flipper diagnostics lib and CLI tool.
- `scripts` - Build scripts for Flipper desktop app.
- `headless` - Headless version of Flipper desktop app.
- `headless-tests` - Integration tests running agains Flipper headless version.

Reviewed By: mweststrate

Differential Revision: D20344186

fbshipit-source-id: d020da970b2ea1e001f9061a8782bfeb54e31ba0
2020-03-14 14:35:18 -07:00
Anton Nikolaev
85c13bb1f3 Move desktop-related code to "desktop" subfolder (#872)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/872
Move all the JS code related to desktop app to "desktop" subfolder.

The structure of "desktop" folder:
- `src` - JS code of Flipper desktop app executing in Electron Renderer (Chrome) process. This folder also contains all the Flipper plugins in subfolder "src/plugins".
- `static` - JS code of Flipper desktop app bootstrapping executing in Electron Main (Node.js) process
- `pkg` - Flipper packaging lib and CLI tool
- `doctor` - Flipper diagnostics lib and CLI tool
- `scripts` - Build scripts for Flipper desktop app
- `headless` - Headless version of Flipper app
- `headless-tests` - Integration tests running agains Flipper headless version

Reviewed By: passy

Differential Revision: D20249304

fbshipit-source-id: 9a51c63b51b92b758a02fc8ebf7d3d116770efe9
2020-03-14 14:35:17 -07:00
Pascal Hartig
3113d2c180 Flipper Bump: v0.33.2-SNAPSHOT
Summary: Back to snapshots.

Reviewed By: mweststrate

Differential Revision: D20344544

fbshipit-source-id: 8153028d9567b2cfff807e3be4159ad8991c258f
2020-03-09 15:12:37 -07:00
Pascal Hartig
60e13335dc Flipper Release: v0.33.1
Summary: Re-release of 0.33.0.

Reviewed By: mweststrate

Differential Revision: D20344545

fbshipit-source-id: 38fd5baa8d36bc7cfa9a66a15144078e7b1f53c3
2020-03-09 15:12:37 -07:00
Pascal Hartig
87f5831ad1 Flipper Bump: v0.33.1-SNAPSHOT
Summary: ohsnap_pickles

Reviewed By: priteshrnandgaonkar

Differential Revision: D20308822

fbshipit-source-id: 1d0b979db891e2e361f0ae06e59cbcc438301498
2020-03-09 07:42:35 -07:00
Pascal Hartig
e797caff16 Flipper Release: v0.33.0
Summary:
Changelog TBD.

== Highlights ==

- React Native global hotkeys in the settings menu.

== Fixes ==

- iOS 9 support restored.

Reviewed By: priteshrnandgaonkar

Differential Revision: D20308823

fbshipit-source-id: e4d089d911af8155384c07678668662094c0c8b3
2020-03-09 07:42:35 -07:00
Pascal Hartig
5c441d5efb Flipper Bump: v0.32.3-SNAPSHOT
Summary:
psyduckphoto

(Note: this ignores all push blocking failures!)

Reviewed By: nikoant

Differential Revision: D20158708

fbshipit-source-id: 0751a582a310547757703a926b31a5bb5ef2be26
2020-02-28 08:51:35 -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
2ed6230013 Flipper Bump: v0.32.2-SNAPSHOT
Summary: Back to snapshots.

Reviewed By: cekkaewnumchai

Differential Revision: D20115910

fbshipit-source-id: d9e452f544edeb4f3506757b108c6273cc4ca99a
2020-02-27 09:50:55 -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
fee93e6cff Flipper Bump: v0.32.1-SNAPSHOT
Summary: oh_snaptu

Reviewed By: nikoant

Differential Revision: D20067793

fbshipit-source-id: d097603a3efc822b276dd6de07cb3fa108853409
2020-02-24 06:53:42 -08:00