Commit Graph

4640 Commits

Author SHA1 Message Date
Pascal Hartig
3f16da4db0 Upgrade gradle plugin (#1936)
Summary:
Upgraded to the latest Android Studio and this popped up.

Pull Request resolved: https://github.com/facebook/flipper/pull/1936

Test Plan:
Built the sample app.

Repro'd the previous build failure. Weirdly enough, this only occurred on Linux, not on my Mac. Now it's passing.

Reviewed By: mweststrate

Differential Revision: D26483694

Pulled By: passy

fbshipit-source-id: 9c27eb6d28a0f390154899d67469a504d68c2ad4
2021-02-19 03:29:50 -08:00
Anton Nikolaev
1433dd4b73 Flipper Snapshot Bump: v0.76.1-SNAPSHOT
Summary: Releasing snapshot version 0.76.1-SNAPSHOT

Reviewed By: muraziz

Differential Revision: D26515192

fbshipit-source-id: aca77266825bbe5dffcc2642ad4ee563104e1653
2021-02-19 02:58:32 -08:00
Anton Nikolaev
208e899b4f Flipper Release: v0.76.0
Summary: Releasing version 0.76.0

Reviewed By: jknoxville

Differential Revision: D26515193

fbshipit-source-id: 38d547195a2d1e214e6f31a990c1d9e3f7869869
2021-02-19 02:58:32 -08:00
Pascal Hartig
b25de27b8a Move bolts dependencies to Fresco plugin (#1937)
Summary:
Fixes https://github.com/facebook/flipper/issues/1919

Somehow the diff author put the dependencies in the root `build.gradle`, which is unnecessary as this is only used by Fresco.

Pull Request resolved: https://github.com/facebook/flipper/pull/1937

Test Plan:
Built the sample app, checked that the Fresco stuff continues to work.
![Screenshot_1613565381](https://user-images.githubusercontent.com/9906/108205459-0366ef80-711d-11eb-8b3b-f804f02622af.png)

Reviewed By: mweststrate

Differential Revision: D26483701

Pulled By: passy

fbshipit-source-id: 88f056ed0897f2c00844e02721eb45d5b85c6908
2021-02-18 09:31:04 -08:00
Pascal Hartig
e3d1e41cc1 Dedupe errors when sending
Summary: Keeps a small ring buffer of errors we're sending and checks if they're tracked. I'm sure there's a better data structure for this out there were we could have O(1) membership checks, but since we're not keeping that many errors to begin with and we're saving a lot of CPU that would go into sending the errors to Scribe, this should be a net positive.

Reviewed By: mweststrate

Differential Revision: D26488825

fbshipit-source-id: fdcf58e88d43864852c13e4741a7ab620d596094
2021-02-18 09:05:11 -08:00
Timur Valiev
6667a15f2c Lispy grammar parser
Summary:
Grammar parsers for Lispy language (it's a lisp) - to be used later to
1) extract meaningful data from binding scripts
2) better presentation of the scripts

There a are two parsers - one is transforming lispy to 'honest', raw tree
Another one does some simplifications - unwrap consts,arrays and maps

It uses https://nearley.js.org/docs/grammar parser and moo lexer

Reviewed By: yousuf-haque

Differential Revision: D26422882

fbshipit-source-id: 09c8aa91b635e4605104f9a52fa4699b53990006
2021-02-18 08:37:16 -08:00
Anton Nikolaev
f6026de2f0 Record video always in 1280x720
Summary:
Video recording for Android devices is quite unreliable now, because not all resolutions are supported:
https://android.stackexchange.com/questions/168944/unable-to-get-output-buffers-err-38-when-attempting-to-screen-record-emulator

In this diff I changed resolution for the captured videos to always be 1280x720 or 720x1280. These resolutions are always supported because they are used by default if device native resolution cannot be detected.

Changelog: Android video is now always captured in 1280x720 / 720x1280 to avoid the issue when video cannot be captured because of unsupported resolution (err=-38)

Reviewed By: mweststrate

Differential Revision: D26225203

fbshipit-source-id: 0f9491309bf049fd975f20e096c5c7362d830adc
2021-02-18 08:11:03 -08:00
Anton Nikolaev
c0010bea4c Fix to avoid loading of disabled device plugins
Summary: There is a bug right now that even for disabled plugins we're loading them. In particular, this led to the Flipper freezes caused by Logs plugin even if it is disabled.

Reviewed By: passy

Differential Revision: D26503012

fbshipit-source-id: 2068626f4637ced44c457ee1b7ba7fffdcf5aa47
2021-02-18 04:00:21 -08:00
Patrik Tomas Chamelo
805261b429 Basic skeleton for no diff found
Summary:
- populate the state
- will render some UI that you can reload
- next up showing the diff number and title

Differential Revision: D26477472

fbshipit-source-id: d5c5175771c324c9f893a6b6c6a14a40a2f0f0fe
2021-02-17 21:15:19 -08:00
Patrik Tomas Chamelo
2fc3c2a4c1 Update the plugin name and icon
Summary: ^

Differential Revision: D26476419

fbshipit-source-id: 9274cd84552171b9af84e51554b202deb9507398
2021-02-17 21:15:19 -08:00
Pritesh Nandgaonkar
6d2206769c Fix the regex to allow xcode from non standard location (#1939)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/1939

This diff fixes T84865014. We used to assume in our xcode cli check that xcode will be run from standard /Applications folder. But as mentioned in the above tasks, its not always true.

Reviewed By: passy

Differential Revision: D26484287

fbshipit-source-id: 32d343dece53576f99cbbb6d193138e803505935
2021-02-17 09:45:19 -08:00
Pascal Hartig
e491ed55af Upgrade to Electron v11.2.3
Summary:
I'm on-call and this seems like an on-call-y thing to do. Who knows, maybe one of these crash backports addresses the Big Crasher.

The JSON got reformatted by the script but the contents are unchanged apart from the version numbers.

Created by `cd electron-updater && cargo run 11.2.3`.

Reviewed By: fabiomassimo

Differential Revision: D26483726

fbshipit-source-id: a8b76102283fde94f42961d1b715a55ac89d66c7
2021-02-17 09:22:31 -08:00
Michel Weststrate
d37f1c282a Fixed issue with reseting logs
Summary:
Noticed that subsequent `adb logcat` invocations are stateful, and we didn't clear it's state when clearing the logs in memory.

This is a bandaid to get back to the previous behavior. I am wondering whether it wouldn't be just much more intuitive to always clear the logs (`adb logcat -c`) before we start the streaming log listener, so that users are never shown old logs from before flipper was connected?

Also fixed a leak in cleaning up the log listeners that was revealed by the possibility to disable the log plugin

Reviewed By: nikoant

Differential Revision: D26450262

fbshipit-source-id: 5b426e2d0e1fafdbc512d48d22b7bd4f30b61309
2021-02-17 08:19:28 -08:00
dependabot[bot]
d50c253159 Bump eslint from 7.18.0 to 7.20.0 in /flipper-js-client-sdk (#1927)
Summary:
Bumps [eslint](https://github.com/eslint/eslint) from 7.18.0 to 7.20.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/eslint/eslint/releases">eslint's releases</a>.</em></p>
<blockquote>
<h2>v7.20.0</h2>
<ul>
<li><a href="f4ac3b0e70"><code>f4ac3b0</code></a> Docs: fix sibling selector descriptions (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14099">#14099</a>) (Milos Djermanovic)</li>
<li><a href="9d6063add9"><code>9d6063a</code></a> Fix: Crash with esquery when using JSX (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13639">#13639</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14072">#14072</a>) (Yosuke Ota)</li>
<li><a href="a0871f1840"><code>a0871f1</code></a> Docs: Triage process (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14014">#14014</a>) (Nicholas C. Zakas)</li>
<li><a href="ad9076183b"><code>ad90761</code></a> Update: add enforceForJSX option to no-unused-expressions rule (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14012">#14012</a>) (Duncan Beevers)</li>
<li><a href="d6c84af673"><code>d6c84af</code></a> Fix: <code>--init</code> autoconfig shouldn't add deprecated rules (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14017">#14017</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14060">#14060</a>) (Milos Djermanovic)</li>
<li><a href="9b277a16a7"><code>9b277a1</code></a> Fix: Support ENOTDIR error code in the folder existence checking utility (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13973">#13973</a>) (Constantine Genchevsky)</li>
<li><a href="7aeb12798f"><code>7aeb127</code></a> Upgrade: pin babel/code-frame@7.12.11 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14067">#14067</a>) (Milos Djermanovic)</li>
<li><a href="b4e2af5db1"><code>b4e2af5</code></a> Docs: Add more fields to bug report template (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14039">#14039</a>) (Nicholas C. Zakas)</li>
<li><a href="96f1d49a46"><code>96f1d49</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="cb27b0abed"><code>cb27b0a</code></a> Build: package.json update for eslint-config-eslint release (ESLint Jenkins)</li>
<li><a href="4cab165bf4"><code>4cab165</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
</ul>
<h2>v7.19.0</h2>
<ul>
<li><a href="ce7f06121d"><code>ce7f061</code></a> Update: add shadowed variable loc to message in no-shadow (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13646">#13646</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13841">#13841</a>) (t-mangoe)</li>
<li><a href="c60e23ff30"><code>c60e23f</code></a> Update: fix <code>let</code> logic in for-in and for-of loops in no-extra-parens (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14011">#14011</a>) (Milos Djermanovic)</li>
<li><a href="d76e8f69bd"><code>d76e8f6</code></a> Fix: no-useless-rename invalid autofix with parenthesized identifiers (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14032">#14032</a>) (Milos Djermanovic)</li>
<li><a href="5800d92114"><code>5800d92</code></a> Docs: Clarify stylistic rule update policy (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14052">#14052</a>) (Brandon Mills)</li>
<li><a href="0ccf6d2001"><code>0ccf6d2</code></a> Docs: remove configuring.md (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14036">#14036</a>) (Milos Djermanovic)</li>
<li><a href="65bb0abde5"><code>65bb0ab</code></a> Chore: Clean up new issue workflow (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14040">#14040</a>) (Nicholas C. Zakas)</li>
<li><a href="e1da90fc41"><code>e1da90f</code></a> Fix: nested indenting for offsetTernaryExpressions: true (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13971">#13971</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13972">#13972</a>) (Chris Brody)</li>
<li><a href="1a078b9166"><code>1a078b9</code></a> Update: check ternary <code>:</code> even if <code>?</code> was reported in space-infix-ops (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13963">#13963</a>) (Milos Djermanovic)</li>
<li><a href="fb27422624"><code>fb27422</code></a> Fix: extend prefer-const fixer range to whole declaration (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13899">#13899</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14033">#14033</a>) (Nitin Kumar)</li>
<li><a href="e0b05c704f"><code>e0b05c7</code></a> Docs: add a correct example to no-unsafe-optional-chaining (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14029">#14029</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14050">#14050</a>) (armin yahya)</li>
<li><a href="46e836d464"><code>46e836d</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="3fc4fa485c"><code>3fc4fa4</code></a> Docs: update configuring links (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14038">#14038</a>) (Milos Djermanovic)</li>
<li><a href="8561c2116e"><code>8561c21</code></a> Docs: fix broken links in configuring/README.md (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14046">#14046</a>) (Milos Djermanovic)</li>
<li><a href="1c309ebca4"><code>1c309eb</code></a> Update: fix no-invalid-regexp false negatives with no flags specified (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14018">#14018</a>) (Milos Djermanovic)</li>
<li><a href="f6602d5694"><code>f6602d5</code></a> Docs: Reorganize Configuration Documentation (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13837">#13837</a>) (klkhan)</li>
<li><a href="c753b442ef"><code>c753b44</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="a4fdb7001a"><code>a4fdb70</code></a> Docs: Fixed Typo (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14007">#14007</a>) (Yash Singh)</li>
<li><a href="f7ca48165d"><code>f7ca481</code></a> Docs: Explain why we disable lock files (refs <a href="https://github-redirect.dependabot.com/eslint/tsc-meetings/issues/234">eslint/tsc-meetings#234</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14006">#14006</a>) (Brandon Mills)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/eslint/eslint/blob/master/CHANGELOG.md">eslint's changelog</a>.</em></p>
<blockquote>
<p>v7.20.0 - February 12, 2021</p>
<ul>
<li><a href="f4ac3b0e70"><code>f4ac3b0</code></a> Docs: fix sibling selector descriptions (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14099">#14099</a>) (Milos Djermanovic)</li>
<li><a href="9d6063add9"><code>9d6063a</code></a> Fix: Crash with esquery when using JSX (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13639">#13639</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14072">#14072</a>) (Yosuke Ota)</li>
<li><a href="a0871f1840"><code>a0871f1</code></a> Docs: Triage process (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14014">#14014</a>) (Nicholas C. Zakas)</li>
<li><a href="ad9076183b"><code>ad90761</code></a> Update: add enforceForJSX option to no-unused-expressions rule (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14012">#14012</a>) (Duncan Beevers)</li>
<li><a href="d6c84af673"><code>d6c84af</code></a> Fix: <code>--init</code> autoconfig shouldn't add deprecated rules (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14017">#14017</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14060">#14060</a>) (Milos Djermanovic)</li>
<li><a href="9b277a16a7"><code>9b277a1</code></a> Fix: Support ENOTDIR error code in the folder existence checking utility (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13973">#13973</a>) (Constantine Genchevsky)</li>
<li><a href="7aeb12798f"><code>7aeb127</code></a> Upgrade: pin babel/code-frame@7.12.11 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14067">#14067</a>) (Milos Djermanovic)</li>
<li><a href="b4e2af5db1"><code>b4e2af5</code></a> Docs: Add more fields to bug report template (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14039">#14039</a>) (Nicholas C. Zakas)</li>
<li><a href="96f1d49a46"><code>96f1d49</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="cb27b0abed"><code>cb27b0a</code></a> Build: package.json update for eslint-config-eslint release (ESLint Jenkins)</li>
<li><a href="4cab165bf4"><code>4cab165</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
</ul>
<p>v7.19.0 - January 30, 2021</p>
<ul>
<li><a href="ce7f06121d"><code>ce7f061</code></a> Update: add shadowed variable loc to message in no-shadow (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13646">#13646</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13841">#13841</a>) (t-mangoe)</li>
<li><a href="c60e23ff30"><code>c60e23f</code></a> Update: fix <code>let</code> logic in for-in and for-of loops in no-extra-parens (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14011">#14011</a>) (Milos Djermanovic)</li>
<li><a href="d76e8f69bd"><code>d76e8f6</code></a> Fix: no-useless-rename invalid autofix with parenthesized identifiers (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14032">#14032</a>) (Milos Djermanovic)</li>
<li><a href="5800d92114"><code>5800d92</code></a> Docs: Clarify stylistic rule update policy (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14052">#14052</a>) (Brandon Mills)</li>
<li><a href="0ccf6d2001"><code>0ccf6d2</code></a> Docs: remove configuring.md (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14036">#14036</a>) (Milos Djermanovic)</li>
<li><a href="65bb0abde5"><code>65bb0ab</code></a> Chore: Clean up new issue workflow (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14040">#14040</a>) (Nicholas C. Zakas)</li>
<li><a href="e1da90fc41"><code>e1da90f</code></a> Fix: nested indenting for offsetTernaryExpressions: true (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13971">#13971</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13972">#13972</a>) (Chris Brody)</li>
<li><a href="1a078b9166"><code>1a078b9</code></a> Update: check ternary <code>:</code> even if <code>?</code> was reported in space-infix-ops (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13963">#13963</a>) (Milos Djermanovic)</li>
<li><a href="fb27422624"><code>fb27422</code></a> Fix: extend prefer-const fixer range to whole declaration (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13899">#13899</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14033">#14033</a>) (Nitin Kumar)</li>
<li><a href="e0b05c704f"><code>e0b05c7</code></a> Docs: add a correct example to no-unsafe-optional-chaining (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14029">#14029</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14050">#14050</a>) (armin yahya)</li>
<li><a href="46e836d464"><code>46e836d</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="3fc4fa485c"><code>3fc4fa4</code></a> Docs: update configuring links (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14038">#14038</a>) (Milos Djermanovic)</li>
<li><a href="8561c2116e"><code>8561c21</code></a> Docs: fix broken links in configuring/README.md (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14046">#14046</a>) (Milos Djermanovic)</li>
<li><a href="1c309ebca4"><code>1c309eb</code></a> Update: fix no-invalid-regexp false negatives with no flags specified (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14018">#14018</a>) (Milos Djermanovic)</li>
<li><a href="f6602d5694"><code>f6602d5</code></a> Docs: Reorganize Configuration Documentation (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13837">#13837</a>) (klkhan)</li>
<li><a href="c753b442ef"><code>c753b44</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="a4fdb7001a"><code>a4fdb70</code></a> Docs: Fixed Typo (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14007">#14007</a>) (Yash Singh)</li>
<li><a href="f7ca48165d"><code>f7ca481</code></a> Docs: Explain why we disable lock files (refs <a href="https://github-redirect.dependabot.com/eslint/tsc-meetings/issues/234">eslint/tsc-meetings#234</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14006">#14006</a>) (Brandon Mills)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="a665b69381"><code>a665b69</code></a> 7.20.0</li>
<li><a href="38293d5d84"><code>38293d5</code></a> Build: changelog update for 7.20.0</li>
<li><a href="f4ac3b0e70"><code>f4ac3b0</code></a> Docs: fix sibling selector descriptions (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14099">#14099</a>)</li>
<li><a href="9d6063add9"><code>9d6063a</code></a> Fix: Crash with esquery when using JSX (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13639">#13639</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14072">#14072</a>)</li>
<li><a href="a0871f1840"><code>a0871f1</code></a> Docs: Triage process (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14014">#14014</a>)</li>
<li><a href="ad9076183b"><code>ad90761</code></a> Update: add enforceForJSX option to no-unused-expressions rule (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14012">#14012</a>)</li>
<li><a href="d6c84af673"><code>d6c84af</code></a> Fix: <code>--init</code> autoconfig shouldn't add deprecated rules (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14017">#14017</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14060">#14060</a>)</li>
<li><a href="9b277a16a7"><code>9b277a1</code></a> Fix: Support ENOTDIR error code in the folder existence checking utility (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13">https://github.com/facebook/flipper/issues/13</a>...</li>
<li><a href="7aeb12798f"><code>7aeb127</code></a> Upgrade: pin babel/code-frame@7.12.11 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14067">#14067</a>)</li>
<li><a href="b4e2af5db1"><code>b4e2af5</code></a> Docs: Add more fields to bug report template (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14039">#14039</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/eslint/eslint/compare/v7.18.0...v7.20.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint&package-manager=npm_and_yarn&previous-version=7.18.0&new-version=7.20.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/1927

Reviewed By: priteshrnandgaonkar

Differential Revision: D26465602

Pulled By: passy

fbshipit-source-id: fc00b778559aa4abc9693f5a13a4ab9a6e7feb21
2021-02-17 05:14:13 -08:00
dependabot[bot]
ac263e6bee Bump js-base64 from 3.5.2 to 3.6.0 in /desktop (#1935)
Summary:
Bumps [js-base64](https://github.com/dankogai/js-base64) from 3.5.2 to 3.6.0.
<details>
<summary>Commits</summary>
<ul>
<li><a href="ad8897c84b"><code>ad8897c</code></a> version 3.6.0</li>
<li><a href="78016271df"><code>7801627</code></a> add isValid()</li>
<li>See full diff in <a href="https://github.com/dankogai/js-base64/compare/3.5.2...3.6.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=js-base64&package-manager=npm_and_yarn&previous-version=3.5.2&new-version=3.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/1935

Reviewed By: mweststrate

Differential Revision: D26463175

Pulled By: passy

fbshipit-source-id: 06b223e8d89c75f5bda1e67b4e41403f7663ec7e
2021-02-17 05:14:13 -08:00
dependabot[bot]
1ca3d5e3f9 Bump @typescript-eslint/eslint-plugin from 4.14.2 to 4.15.0 in /flipper-js-client-sdk (#1930)
Summary:
Bumps [typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.14.2 to 4.15.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/releases"><code>typescript-eslint/eslint-plugin's releases</code></a>.</em></p>
<blockquote>
<h2>v4.15.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.14.2...v4.15.0">4.15.0</a> (2021-02-08)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-extra-parens] handle ESLint 7.19.0 (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2993">#2993</a>) (<a href="4615048d24">4615048</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-function-type] correct fixer when signature ends with a semi (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3002">#3002</a>) (<a href="898dd39619">898dd39</a>)</li>
<li><strong>scope-manager:</strong> fix visiting of TSImportType (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3008">#3008</a>) (<a href="ce4fcbf440">ce4fcbf</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3006">#3006</a></li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>typescript-estree:</strong> improve logic used to escape string literals in jsx (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2995">#2995</a>) (<a href="3cb3aade28">3cb3aad</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md"><code>typescript-eslint/eslint-plugin's changelog</code></a>.</em></p>
<blockquote>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.14.2...v4.15.0">4.15.0</a> (2021-02-08)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-extra-parens] handle ESLint 7.19.0 (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2993">#2993</a>) (<a href="4615048d24">4615048</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-function-type] correct fixer when signature ends with a semi (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3002">#3002</a>) (<a href="898dd39619">898dd39</a>)</li>
<li><strong>scope-manager:</strong> fix visiting of TSImportType (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3008">#3008</a>) (<a href="ce4fcbf440">ce4fcbf</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3006">#3006</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="964cda3d9d"><code>964cda3</code></a> chore: publish v4.15.0</li>
<li><a href="4615048d24"><code>4615048</code></a> fix(eslint-plugin): [no-extra-parens] handle ESLint 7.19.0 (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/2993">#2993</a>)</li>
<li><a href="ce4fcbf440"><code>ce4fcbf</code></a> fix(scope-manager): fix visiting of TSImportType (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3008">#3008</a>)</li>
<li><a href="898dd39619"><code>898dd39</code></a> fix(eslint-plugin): [prefer-function-type] correct fixer when signature ends ...</li>
<li>See full diff in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.0/packages/eslint-plugin">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@typescript-eslint/eslint-plugin&package-manager=npm_and_yarn&previous-version=4.14.2&new-version=4.15.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/1930

Reviewed By: mweststrate

Differential Revision: D26463222

Pulled By: passy

fbshipit-source-id: c8d05f659d76a950b76e03b0cdf6af1a7f391305
2021-02-17 05:14:13 -08:00
Stacey Ilioukhina
bf8fbe3f70 Update Flipper to use grouped data
Summary: Updated FileList to traverse folders

Reviewed By: jdlehman

Differential Revision: D26372158

fbshipit-source-id: 16fadb179545cb701d0a970e3cc2411860ee8ed9
2021-02-16 15:15:36 -08:00
dependabot[bot]
14d79062ff Bump react-native-flipper from 0.74.0 to 0.75.1 in /react-native/ReactNativeFlipperExample (#1933)
Summary:
Bumps [react-native-flipper](https://github.com/facebook/flipper) from 0.74.0 to 0.75.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/flipper/releases">react-native-flipper's releases</a>.</em></p>
<blockquote>
<h2>v0.75.1</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/master/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/master/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.75.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/master/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/master/desktop/static/CHANGELOG.md</a>
for full notes.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="0633e5bfd7"><code>0633e5b</code></a> Flipper Release: v0.75.1</li>
<li><a href="f69723978d"><code>f697239</code></a> Upgrade deps</li>
<li><a href="7fd0c7d82e"><code>7fd0c7d</code></a> Fix upload of sample app apk (<a href="https://github-redirect.dependabot.com/facebook/flipper/issues/1920">https://github.com/facebook/flipper/issues/1920</a>)</li>
<li><a href="061ca274fd"><code>061ca27</code></a> Add docs for new Android release</li>
<li><a href="af9475bca1"><code>af9475b</code></a> Update JCenter reference in the docs</li>
<li><a href="c1b43f44b0"><code>c1b43f4</code></a> Update Maven badge in Readme</li>
<li><a href="27f34be824"><code>27f34be</code></a> Suppress Metro error</li>
<li><a href="eff1ce5ba7"><code>eff1ce5</code></a> Catch errors when querying physical devices</li>
<li><a href="92f3ab8ff4"><code>92f3ab8</code></a> Improve error handling for iOSDevices</li>
<li><a href="8d5f136a34"><code>8d5f136</code></a> Fix active state reducer mutating existing state</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/flipper/compare/v0.74.0...v0.75.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-native-flipper&package-manager=npm_and_yarn&previous-version=0.74.0&new-version=0.75.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/1933

Reviewed By: mweststrate

Differential Revision: D26463208

Pulled By: passy

fbshipit-source-id: bf9d0254a4c662031b0cbf257edcd2a65d9736bb
2021-02-16 11:28:02 -08:00
Anton Nikolaev
4390ff44ce Device plugin management (7/n): Show warnings for the device plugins defined in the legacy format
Summary: Show warnings for the device plugins defined in the legacy format and suggest to migrate them

Reviewed By: mweststrate

Differential Revision: D26459321

fbshipit-source-id: 4e45cd58a63a4ff9903ecaf12e6f9ba4a43e71e1
2021-02-16 10:50:20 -08:00
Anton Nikolaev
c4489f9c2a Device plugin management (6/n): Enable bundled device plugins by default
Summary: Enable device plugins by default to minimise breaking changes for users. Users will be able disable them if they want.

Reviewed By: mweststrate

Differential Revision: D26439227

fbshipit-source-id: 95c19e9335d583646c8aafd70a03e73bcf86c3bc
2021-02-16 10:50:20 -08:00
Anton Nikolaev
1c898bd2da Device plugin management (5/n): Docs
Summary: Updated docs to mention the new way of specifying device plugins compatibility metadata.

Reviewed By: mweststrate

Differential Revision: D26424203

fbshipit-source-id: 313e15ee54a8877c95850a37a13c5684b3c165f0
2021-02-16 10:50:19 -08:00
Anton Nikolaev
68248a7c63 Device plugin management (4/n): Allow choosing "device" plugin type in "flipper-pkg init"
Summary:
Added option to bootstrap device plugin in "flipper-pkg".

Changelog: "flipper-pkg init" can now be used to bootstrap device plugins

Reviewed By: mweststrate

Differential Revision: D26389429

fbshipit-source-id: 90773011bd50289004cd747111e1787402840922
2021-02-16 10:50:19 -08:00
Anton Nikolaev
4cb40de3f5 Device plugin management (3/n): unbundle less used device plugins from Flipper Insiders builds
Summary: Now as we can install device plugins from Marketplace, I was able to unbundle device plugins which were used quite rarely, but still added ~3 MB to the final Flipper bundle.

Reviewed By: mweststrate

Differential Revision: D26337297

fbshipit-source-id: 23a36cc15ca976a1215440192718d985e1f322fd
2021-02-16 10:50:19 -08:00
Anton Nikolaev
4541cdc23b Device plugin management (2/n): enable/disable, install/uninstall
Summary:
*Stack summary*: this stack adds ability to manage device plugins in the same way as client plugins: install, update, uninstall, enable (star) and disable (unstar) them.

*Diff summary*: implemented all plugin management actions for device plugins.

Changelog: it is now possible to enable/disable and install/uninstall device plugins

Reviewed By: mweststrate

Differential Revision: D26337377

fbshipit-source-id: 7d1ed61a8dc5f3339e5e548c613b67bca0c27f4f
2021-02-16 10:50:18 -08:00
Anton Nikolaev
899fcd0783 Device plugin management (1/n): use static metadata for checking plugin compatibility with devices
Summary:
*Stack summary*: this stack adds ability to manage device plugins in the same way as client plugins: install, update, uninstall, enable (star) and disable (unstar) them.

*Diff summary*: changed the way how plugin compatibility with devices is checked from dynamic call to "supportsDevice" to static checks of "supportedDevices" metadata property which make it possible to check compatibility without even downloading plugin from Marketplace.

Changelog: plugin compatibility with devices is now checked according to metadata in property "supportedDevices" in package.json

Reviewed By: mweststrate

Differential Revision: D26315848

fbshipit-source-id: 6e4b052c4ea0507ee185fc17999b6211cdb11093
2021-02-16 10:50:18 -08:00
Anton Nikolaev
19f2fccc79 Command processing (5/n): Star plugin
Summary:
*Stack summary*: this stack refactors plugin management actions to perform them in a dispatcher rather than in the root reducer (store.tsx) as all of these actions has side effects. To do that, we store requested plugin management actions (install/update/uninstall, star/unstar) in a queue which is then handled by pluginManager dispatcher. This dispatcher then dispatches all required state updates.

*Diff summary*: refactored "star plugin" operation to perform it in pluginManager dispatcher.

Reviewed By: mweststrate

Differential Revision: D26305576

fbshipit-source-id: 90516af4e9ba8504720ddfa587f691f53e71b702
2021-02-16 10:50:18 -08:00
Anton Nikolaev
0b803f810e Command processing (4/n): Load plugin
Summary:
*Stack summary*: this stack refactors plugin management actions to perform them in a dispatcher rather than in the root reducer (store.tsx) as all of these actions has side effects. To do that, we store requested plugin management actions (install/update/uninstall, star/unstar) in a queue which is then handled by pluginManager dispatcher. This dispatcher then dispatches all required state updates.

*Diff summary*: refactored "load plugin" operation to perform it in pluginManager dispatcher.

Reviewed By: mweststrate

Differential Revision: D26166654

fbshipit-source-id: e1fe48fa2cfc5533ad4f801ca56f00fc2ca3f4c4
2021-02-16 10:50:18 -08:00
Anton Nikolaev
01f02b2cab Command processing (3/n): Uninstall plugin
Summary:
*Stack summary*: this stack refactors plugin management actions to perform them in a dispatcher rather than in the root reducer (store.tsx) as all of these actions has side effects. To do that, we store requested plugin management actions (install/update/uninstall, star/unstar) in a queue which is then handled by pluginManager dispatcher. This dispatcher then dispatches all required state updates.

*Diff summary*: refactored "uninstall plugin" operation to perform it in pluginManager dispatcher

Reviewed By: mweststrate

Differential Revision: D26166198

fbshipit-source-id: d74a1d690102d9036c6d3d8612d2428f5ecef4e6
2021-02-16 10:50:17 -08:00
Anton Nikolaev
24aed8fd45 Command processing (2/n): testing
Summary:
*Stack summary*: this stack refactors plugin management actions to perform them in a dispatcher rather than in the root reducer (store.tsx) as all of these actions has side effects. To do that, we store requested plugin management actions (install/update/uninstall, star/unstar) in a queue which is then handled by pluginManager dispatcher. This dispatcher then dispatches all required state updates.

*Diff summary*: refactored Flipper mocking helpers to allow testing of plugin commands, and wrote some tests for pluginManager.

Reviewed By: mweststrate

Differential Revision: D26450344

fbshipit-source-id: 0e8414517cc1ad353781dffd7ffb4a5f9a815d38
2021-02-16 10:50:17 -08:00
Anton Nikolaev
8efdde08c4 Command processing (1/n)
Summary:
*Stack summary*: this stack refactors plugin management actions to perform them in a dispatcher rather than in the root reducer (store.tsx) as all of these actions has side effects. To do that, we store requested plugin management actions (install/update/uninstall, star/unstar) in a queue which is then handled by pluginManager dispatcher. This dispatcher then dispatches all required state updates.

*Diff summary*: implemented basic plugin action queue processing.

Reviewed By: mweststrate

Differential Revision: D26164945

fbshipit-source-id: 5d8ad9b4d7b1300e92883d24a71da9ca1f85b183
2021-02-16 10:50:17 -08:00
Pascal Hartig
f10f963ff1 Add sandcastle tech talk as doc
Reviewed By: fabiomassimo

Differential Revision: D26460572

fbshipit-source-id: d5faf3af1424b271b14e6754c73d5995332abbfc
2021-02-16 07:42:23 -08:00
Pascal Hartig
3cda93dade Cache Android builds on GitHub Actions (#1922)
Summary:
Builds up a file with checksums of all `build.gradle` files. Deliberately excludes the `gradle.properties` which changes all the time. The cache shouldn't require nuking except in some rare circumstances.

Pull Request resolved: https://github.com/facebook/flipper/pull/1922

Test Plan: From 41 minutes down to 17: https://github.com/passy/flipper-1/actions/runs/561501374

Reviewed By: mweststrate

Differential Revision: D26427242

Pulled By: passy

fbshipit-source-id: ff1d7370d477c9d7b57c62082ec985108a5ba698
2021-02-16 04:18:28 -08:00
Pascal Hartig
d42932c111 Add rule for warning against electron.remote
Summary:
I don't think there's an easy way to do this based on types
which would be ideal ...

So instead I'm checking for

- Importing `remote` from `electron`.
- Accessing `electron.remote`.

You can still hack this by importing `electron`, saving
it to a differently named variable and accessing `remote` on it,
but this should cover all reasonable cases we see in real code.

Reviewed By: mweststrate

Differential Revision: D26453006

fbshipit-source-id: 4b3d223bed43ca3f0d1a4f592ea8f8060a823479
2021-02-16 04:15:51 -08:00
Pascal Hartig
fe3a6bd55e Bump maven release gradle plugin
Summary:
This includes some improvements to the closing process, which
is quite important for us.

Reviewed By: mweststrate

Differential Revision: D26452587

fbshipit-source-id: 533e97148160c4f15da52e31fbe8b136ab884e0b
2021-02-16 04:09:13 -08:00
Pascal Hartig
761f1354db Clean up secrets (#1921)
Summary:
See this being done elsewhere. I don't think it's necessary but why not?

Pull Request resolved: https://github.com/facebook/flipper/pull/1921

Test Plan: eyes

Reviewed By: jknoxville

Differential Revision: D26427191

Pulled By: passy

fbshipit-source-id: 80823bf50d6416d29d54c82cef433650c1451ac0
2021-02-15 10:31:03 -08:00
Anton Nikolaev
b6372ad006 Fix appMatchPatterns error
Summary: Fixed error thrown by navigation plugin in Flipper release builds (T84083443)

Reviewed By: passy

Differential Revision: D26402201

fbshipit-source-id: 7433457e3074c26ad17ac5158522d287232e2ede
2021-02-12 09:22:21 -08:00
Michel Weststrate
b4ec0d62a5 Fix device cleanup
Summary: Found some code duplication causing old devices not entirely to be cleaned up as they should

Reviewed By: nikoant

Differential Revision: D26422665

fbshipit-source-id: f57757f7260ac5de17edd80e9f66cc844d1a6213
2021-02-12 06:44:58 -08:00
Michel Weststrate
4964966b91 Fix Flipper crashing to an empty screen
Summary:
Changelog: Fixed issue where a Flipper crash would result in an entirely blank screen, rather than a useful error message.

While debugging another issue, discovered that React errors that happen outside a Plugin aren't caught at all, resulting in the infamous gray screen of deaths. This was the case because no error boundary has been set up for our Chrome, and since React 16 the default error handling has becoming rendering blank, rather than freezing. See https://reactjs.org/docs/error-boundaries.html#new-behavior-for-uncaught-errors.

Thanks to ant.design styling this decently was trivial :). But sadly involved a component class since error boundaries are not yet available as hook.

With these changes the errors should also end up more readably in our monitoring.

Reviewed By: nikoant

Differential Revision: D26422666

fbshipit-source-id: 6c0f8611c80a4a5e0d7e61d58afcf5eabe410e57
2021-02-12 06:44:58 -08:00
generatedunixname89002005306973
11548c9cd6 Flipper Snapshot Bump: v0.75.2-SNAPSHOT
Summary: Releasing snapshot version 0.75.2-SNAPSHOT

Reviewed By: passy

Differential Revision: D26422940

fbshipit-source-id: 00bb4b5cc947679acf4dbfd7556984653c806891
2021-02-12 05:14:57 -08:00
generatedunixname89002005306973
0633e5bfd7 Flipper Release: v0.75.1
Summary: Releasing version 0.75.1

Reviewed By: passy

Differential Revision: D26422941

fbshipit-source-id: 655a898289c877b44a9c7bd3e359dcf045688988
2021-02-12 05:14:57 -08:00
Pascal Hartig
f69723978d Upgrade deps
Summary:
Couldn't do this because we were stuck on an old version
of digest internally with breaking changes. Now there's a
`sha2-9` option to make it build.

Reviewed By: mweststrate

Differential Revision: D26404582

fbshipit-source-id: 9851de3439ea263eaddb558daaf4cf9e73b062cc
2021-02-12 04:43:16 -08:00
Pascal Hartig
7fd0c7d82e Fix upload of sample app apk (#1920)
Summary:
This was an expected failure, you can see here how the last step of the "Publish Android" workflow currently fails: https://github.com/facebook/flipper/runs/1873750507?check_suite_focus=true

This is because it no longer runs in a tagging context. We're now providing the tag as an input and my custom action knows how to attach to existing tags by name.

Pull Request resolved: https://github.com/facebook/flipper/pull/1920

Test Plan:
Test run here finished successfully: https://github.com/passy/flipper-1/actions/runs/560774414
Publish Android job: https://github.com/passy/flipper-1/actions/runs/560775419
Attached release: https://github.com/passy/flipper-1/releases/tag/v0.0.7
Artifacts on Central: https://repo.maven.apache.org/maven2/com/facebook/flipper/flipper/0.0.7/

{F372552533}

{F372552532}

Reviewed By: mweststrate

Differential Revision: D26402629

Pulled By: passy

fbshipit-source-id: 7290e6bb8d1078ee20a0cf10105dc37f1e7aa99a
2021-02-12 04:36:11 -08:00
Pascal Hartig
061ca274fd Add docs for new Android release
Summary:
Tried to give as much context here not just for how it works but also
how to set it up. For other projects and if we need to redo something.

Reviewed By: mweststrate

Differential Revision: D26400452

fbshipit-source-id: 9b41fd1a36c45554c7a7b562b73b4b9753f7ecfe
2021-02-12 04:36:10 -08:00
Pascal Hartig
af9475bca1 Update JCenter reference in the docs
Summary: Still need to update the actual release doc. That's next.

Reviewed By: mweststrate

Differential Revision: D26399883

fbshipit-source-id: 87c27b254f4def07810a99fd0e1c817b6afb967e
2021-02-12 04:36:10 -08:00
Pascal Hartig
c1b43f44b0 Update Maven badge in Readme
Summary: Jcenter is ded. Using a Maven Central badge instead.

Reviewed By: mweststrate

Differential Revision: D26399859

fbshipit-source-id: dbbf0ede62ec4b5b76aaa21fbbed8754a3378451
2021-02-12 04:36:10 -08:00
Pascal Hartig
27f34be824 Suppress Metro error
Summary:
T84629221 shows this is quite common and is not something we want
to log errors for.

Reviewed By: mweststrate

Differential Revision: D26371400

fbshipit-source-id: 748a83d8ad484b0ceb1f3bf7e3a447602ae4c961
2021-02-11 05:08:37 -08:00
Pascal Hartig
eff1ce5ba7 Catch errors when querying physical devices
Summary:
This is our #1 error and always means there's something off with
the user's setup.

Reviewed By: mweststrate

Differential Revision: D26370974

fbshipit-source-id: 5e2644ce9de8a7d28614a22fab5ce54dab0561d3
2021-02-11 05:08:37 -08:00
Pascal Hartig
92f3ab8ff4 Improve error handling for iOSDevices
Summary:
Adding context everywhere as naked messages are hard to track down
and making common errors like missing Xcode license agreements
a warning + error popup instead.

Changelog: Reduce spamminess of iOS connection warnings

Reviewed By: mweststrate

Differential Revision: D26370235

fbshipit-source-id: b283d297479c2bf76a11b5a3f96a59fad70a4a67
2021-02-11 05:08:36 -08:00
Michel Weststrate
8d5f136a34 Fix active state reducer mutating existing state
Summary:
This reducer was mutating existing state, which will throw since we freeze state to prevent exactly that. Fixed it by using a defensive copy.

Note that `newActiveNotifications` doesn't suffer from the same as it is freshly allocated.

See https://www.internalfb.com/intern/diffusion/FBS/browse/master/xplat/sonar/desktop/app/src/reducers/notifications.tsx?commit=29b592866b44&lines=160

Reviewed By: passy

Differential Revision: D26399200

fbshipit-source-id: 5f9f22db3de48f4f595a028faf9e9ec547641cfb
2021-02-11 03:41:54 -08:00
dependabot[bot]
a1194b27b7 Bump react-native-flipper from 0.73.0 to 0.74.0 in /react-native/ReactNativeFlipperExample (#1902)
Summary:
Bumps [react-native-flipper](https://github.com/facebook/flipper) from 0.73.0 to 0.74.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/flipper/releases">react-native-flipper's releases</a>.</em></p>
<blockquote>
<h2>v0.74.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/master/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/master/desktop/static/CHANGELOG.md</a>
for full notes.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="0429c1892f"><code>0429c18</code></a> Flipper Release: v0.74.0</li>
<li><a href="0ebe3956a4"><code>0ebe395</code></a> Update OpenSSL pod and remove exclude arch setting (<a href="https://github-redirect.dependabot.com/facebook/flipper/issues/1892">https://github.com/facebook/flipper/issues/1892</a>)</li>
<li><a href="87caca9e77"><code>87caca9</code></a> Demote iOS connection errors</li>
<li><a href="661af25ff9"><code>661af25</code></a> getAppVersion for UpdateIndicator</li>
<li><a href="2f03aca5eb"><code>2f03aca</code></a> Revert D26222885 (9fe82dd6c7): Upgrade metro to 0.65.0</li>
<li><a href="642d89213d"><code>642d892</code></a> Extract getAppVersion() util</li>
<li><a href="40abef860f"><code>40abef8</code></a> Fix key warning</li>
<li><a href="9fe82dd6c7"><code>9fe82dd</code></a> Upgrade metro to 0.65.0</li>
<li><a href="e09e3c82ee"><code>e09e3c8</code></a> Bump antd from 4.9.1 to 4.11.2 in /desktop (<a href="https://github-redirect.dependabot.com/facebook/flipper/issues/1886">https://github.com/facebook/flipper/issues/1886</a>)</li>
<li><a href="05d1bd1ccb"><code>05d1bd1</code></a> Bump react-native-flipper from 0.72.0 to 0.73.0 in /react-native/ReactNativeF...</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/flipper/compare/v0.73.0...v0.74.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-native-flipper&package-manager=npm_and_yarn&previous-version=0.73.0&new-version=0.74.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/1902

Reviewed By: mweststrate

Differential Revision: D26341287

Pulled By: passy

fbshipit-source-id: 5c281870c10dbca2029310b8985e2e02360c68d8
2021-02-10 10:49:46 -08:00