Commit Graph

389 Commits

Author SHA1 Message Date
Michel Weststrate
04e58cd6c2 Extended trouble shooting for React Native
Summary: We get a lot of requests related to things not working on RN. The questions and solutions are often quite similar, so wrote down all the answers I know from the top of my head. From now on we can link to this guide, and extend it were needed with better answers

Reviewed By: passy

Differential Revision: D22042296

fbshipit-source-id: ba8a71f3ef6f241aaa1d2883d1348c0471a38e3b
2020-06-15 07:10:50 -07:00
John Knox
2a5d1d8ff9 Fix website syntax highlighting
Summary:
We have a bunch of code blocks using languages that aren't rendered by default, so adding syntax highlighting for those languages.

Also, some uses are using the wrong "name" for the language, so I've fixed them.

Reviewed By: mweststrate

Differential Revision: D21974341

fbshipit-source-id: 17146ea5ae4979241c51b3707035470e9742a104
2020-06-10 08:44:51 -07:00
Pascal Hartig
027685542d Fix react native sub-links
Summary:
Relative links like these appear to have broken with Docusaurus 2.

Supersedes, closes https://github.com/facebook/flipper/pull/1200.

Reviewed By: jknoxville

Differential Revision: D21935451

fbshipit-source-id: 72a50730fba02b395a1bcd924745bfbaf066cb93
2020-06-09 11:11:29 -07:00
generatedunixname89002005306973
8fa547c719 Flipper Snapshot Bump: v0.46.1-SNAPSHOT
Summary: Releasing snapshot version 0.46.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D21952712

fbshipit-source-id: a809d722be79b0f6902ee202f3631242cceac59e
2020-06-09 10:14:19 -07:00
generatedunixname89002005306973
c0eb2648b7 Flipper Release: v0.46.0
Summary: Releasing version 0.46.0

Reviewed By: nikoant

Differential Revision: D21952711

fbshipit-source-id: 8681a244d64c50f2ad50f6c9c5e0ea766fd9ff20
2020-06-09 10:14:19 -07:00
generatedunixname89002005306973
650030598a Flipper Snapshot Bump: v0.45.1-SNAPSHOT
Summary: Releasing snapshot version 0.45.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D21860036

fbshipit-source-id: 1e8a195513af7d9eb836a0cfcef73b689b6d49b1
2020-06-03 08:28:54 -07:00
generatedunixname89002005306973
23d80bf3d5 Flipper Release: v0.45.0
Summary: Releasing version 0.45.0

Reviewed By: mweststrate

Differential Revision: D21860035

fbshipit-source-id: 58af5bbc4e743024beac925eac8012e64bd76aa9
2020-06-03 08:28:54 -07:00
IdaszakDaniel
88a84a4d9f Fix typo in React Native doc (#1205)
Summary:
Fix typo in React Native doc

## Changelog

N/A
Pull Request resolved: https://github.com/facebook/flipper/pull/1205

Test Plan: N/A

Reviewed By: passy

Differential Revision: D21838116

Pulled By: mweststrate

fbshipit-source-id: ca18f3c7e6780a5ea4c29c24e270fcd6fc57feec
2020-06-02 09:39:46 -07:00
Pascal Hartig
829e3d7743 Add notes for testing RN changes
Summary: cekkaewnumchai asked about this and I didn't just want to type this out in a chat.

Reviewed By: cekkaewnumchai

Differential Revision: D21766920

fbshipit-source-id: e476d9d39461032d82bdd1bdf2b284d47a55af21
2020-05-29 07:05:07 -07:00
Lukas Kurucz
4d13b7ca2a Add architecture overview (#1073)
Summary:
Based on the issue here https://github.com/facebook/flipper/issues/967, I'm adding the flipper diagram to a documentation.
It should help explain briefly how does all parts communicate together and visualise key terms.

## Changelog

- Add Flipper architecture diagram to documentation
Pull Request resolved: https://github.com/facebook/flipper/pull/1073

Reviewed By: jknoxville

Differential Revision: D21278322

Pulled By: passy

fbshipit-source-id: 3cd8c71b2595b86911f5c9061bc2e8119da1d315
2020-05-29 07:05:06 -07:00
generatedunixname89002005306973
bd50f60316 Flipper Snapshot Bump: v0.44.2-SNAPSHOT
Summary: Releasing snapshot version 0.44.2-SNAPSHOT

Reviewed By: passy

Differential Revision: D21767291

fbshipit-source-id: a9c9958342417eb26e3d7b85287ed6f23c78320f
2020-05-29 05:02:23 -07:00
generatedunixname89002005306973
b18760823d Flipper Release: v0.44.1
Summary: Releasing version 0.44.1

Reviewed By: passy

Differential Revision: D21767292

fbshipit-source-id: 94276959d0421fa687cc24f9553a0951b398ea56
2020-05-29 05:02:23 -07:00
generatedunixname89002005306973
9cda8d03b7 Flipper Snapshot Bump: v0.44.1-SNAPSHOT
Summary: Releasing snapshot version 0.44.1-SNAPSHOT

Reviewed By: passy

Differential Revision: D21686079

fbshipit-source-id: 61675ef15cddd6aa160cbb7ed1dddd7806ce9a22
2020-05-21 11:31:57 -07:00
generatedunixname89002005306973
b538cead7a Flipper Release: v0.44.0
Summary: Releasing version 0.44.0

Reviewed By: passy

Differential Revision: D21686080

fbshipit-source-id: 83a8d997e99361e3fcc4472d484d3759f73ed964
2020-05-21 11:31:56 -07:00
Vamshi krishna
72880d3f3a wording mistake in plugin docs (#1164)
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/1164

Reviewed By: mweststrate

Differential Revision: D21613194

Pulled By: passy

fbshipit-source-id: 787232a5edc6a0dcd39280c8d1587b07f24de68e
2020-05-20 03:33:02 -07:00
generatedunixname89002005306973
f2b46e558f Flipper Snapshot Bump: v0.43.1-SNAPSHOT
Summary: Releasing snapshot version 0.43.1-SNAPSHOT

Reviewed By: cekkaewnumchai

Differential Revision: D21639653

fbshipit-source-id: e36bc1a83bb62d8c2ded2f622ed5f54539d4a771
2020-05-19 08:00:53 -07:00
generatedunixname89002005306973
4e618198cb Flipper Release: v0.43.0
Summary: Releasing version 0.43.0

Reviewed By: cekkaewnumchai

Differential Revision: D21639652

fbshipit-source-id: 5a775f6361283b2e9b2540b054afad497dab2a22
2020-05-19 08:00:52 -07:00
Michel Weststrate
f9ade3d74d add link to RN + Flipper talk
Summary: ^

Reviewed By: passy

Differential Revision: D21619630

fbshipit-source-id: f1570cc509b67d5a6bace76f1c094abe81b42522
2020-05-19 05:33:34 -07:00
generatedunixname89002005306973
76a177a282 Flipper Snapshot Bump: v0.42.1-SNAPSHOT
Summary: Releasing snapshot version 0.42.1-SNAPSHOT

Reviewed By: passy

Differential Revision: D21520624

fbshipit-source-id: 5fa389087e3881103fcfaa7fb84dd10ea8cca994
2020-05-13 02:16:13 -07:00
generatedunixname89002005306973
9bead5e05c Flipper Release: v0.42.0
Summary: Releasing version 0.42.0

Reviewed By: passy

Differential Revision: D21520625

fbshipit-source-id: 9f3ce5739a0856de84b18df3c640e5218fd3182e
2020-05-13 02:16:13 -07:00
generatedunixname89002005306973
1e7412a44b Flipper Snapshot Bump: v0.41.1-SNAPSHOT
Summary: Releasing snapshot version 0.41.1-SNAPSHOT

Reviewed By: jknoxville

Differential Revision: D21402375

fbshipit-source-id: 883da81b08764f9828b3f4081322543b90a7e68e
2020-05-05 08:31:29 -07:00
generatedunixname89002005306973
96d5949c19 Flipper Release: v0.41.0
Summary: Releasing version 0.41.0

Reviewed By: jknoxville

Differential Revision: D21402376

fbshipit-source-id: c2b5194afbb8f086097eb1c6fb337b950b4dffe7
2020-05-05 08:31:29 -07:00
Eloy Durán
c393ee9421 Entirely control Flipper being enabled through Podfile (#1086)
Summary:
Currently user’s are being told to add a definition of the `FB_SONARKIT_ENABLED` macro and examples, including those in stock React Native templates, set this for the user by making use of a `post_install` hook in the user’s `Podfile`. This leads to confusion, fragile code [when a user’s project dir structure deviates from vanilla], and is ultimately not necessary as CocoaPods already has dedicated mechanisms to:

* specify build settings (through the `xcconfig` property);
* and selectively include certain pods only in certain build configurations (e.g. debug).

Finally, this PR also includes a commit [to fix the current builds](https://github.com/facebook/flipper/pull/1086/files#r418526812).

## Changelog

> Entirely control Flipper being enabled through inclusion in Podfile and optionally limiting to certain build configurations using the `:configuration` directive.
Pull Request resolved: https://github.com/facebook/flipper/pull/1086

Test Plan: I have built and ran the Sample application, as well as used this version of Flipper with a new RN app built from `master`.

Reviewed By: passy

Differential Revision: D21381828

Pulled By: priteshrnandgaonkar

fbshipit-source-id: edf6dae28eb02336a49e8230654d6186360ea8d6
2020-05-05 03:11:45 -07:00
John Knox
4a777df617 Fix more links
Summary:
Somehow I missed these two the last time.
These are the final broken links reported by https://www.brokenlinkcheck.com/broken-links.php#status except for the "edit this page" link on the autogenerated ui-components page.

Reviewed By: mweststrate

Differential Revision: D21325511

fbshipit-source-id: dbc61bbed1366a007ed2cdde3a72f8ea974d871f
2020-04-30 05:59:01 -07:00
generatedunixname89002005306973
60e9ebb4f1 Flipper Snapshot Bump: v0.40.1-SNAPSHOT
Summary: Releasing snapshot version 0.40.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D21302036

fbshipit-source-id: cbf996760ca70db53607ebec722ac593fa882959
2020-04-29 08:33:04 -07:00
generatedunixname89002005306973
bd320b94e1 Flipper Release: v0.40.0
Summary: Releasing version 0.40.0

Reviewed By: nikoant

Differential Revision: D21302037

fbshipit-source-id: 2f2aeaf0aaf7a0d2fb65b21b6243c9ecd2684cdc
2020-04-29 08:33:04 -07:00
John Knox
7e4682b694 Fix the remaining broken links on fbflipper.com
Summary:
Used https://www.brokenlinkcheck.com/broken-links.php#status for now to find broken links and fixed them all.

Would be better to use some automated tool to check this at diff time, but that's not setup yet.

Reviewed By: passy

Differential Revision: D21301702

fbshipit-source-id: f13c8769b15d9f99563fc65dc0544320d07a2bfb
2020-04-29 07:33:43 -07:00
John Knox
281cd67ddb Fix some broken links
Summary:
KESHAmambo pointed out some internal links are broken on the website: https://twitter.com/KESHAmambo/status/1255443093542895619

The way relative links are processed in docusaurus v1 and v2 has changed. This fixes them up.

Reviewed By: mweststrate

Differential Revision: D21301293

fbshipit-source-id: 7610e38a55bc066625373cf2eee9a3efb63aec08
2020-04-29 05:21:31 -07:00
John Knox
6554f23853 Fix numbered list syntax
Summary:
Numbered list syntax changed during the docusaurus migration from v1 to v2.

It looks wrong at https://fbflipper.com/docs/extending/js-setup/

This fixes it.

I searched for "1)" and replaced all numbered lists it found.

Reviewed By: mweststrate

Differential Revision: D21283693

fbshipit-source-id: adeb6e04693f50e0a0cfe4b2de5f4663075c34ce
2020-04-28 17:33:25 -07:00
Anton Nikolaev
1cf3c30b7c "migrate" command for flipper-pkg tool
Summary: "migrate" command for easy migration of existing Flipper plugins to the specification version 2.

Reviewed By: passy

Differential Revision: D21253913

fbshipit-source-id: 9edb170fbaa10e9c3f670d5d68e69f4f6106c151
2020-04-28 05:01:06 -07:00
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