Commit Graph

7674 Commits

Author SHA1 Message Date
Luke De Feo
f70b2a2d1e Fragment bounds
Reviewed By: lblasa

Differential Revision: D41220272

fbshipit-source-id: e3ff054c7aa8c290e3c04e70a71cb7d752393cfe
2022-11-14 07:05:58 -08:00
Luke De Feo
477eae1993 Hit test can produce multiple nodes
Summary:
There are situations where multiple siblings overlap and they are both hit. Previously we picked the first one in the hierachy. Now we produce a list of hit children. The list will not have 2 nodes in the same ancestor path.

We store the hovered nodes as a list as we may want to present a modal in future to ask user which node they indented to select. That said simply sorting nodes by area seems to give decent results so we can start with this

Reviewed By: lblasa

Differential Revision: D41220271

fbshipit-source-id: 643a369113da28e8c4749725a7aee7aa5d08c401
2022-11-14 07:05:58 -08:00
Luke De Feo
062e87f50f Use mouse position for hit test for 2D vizualizer
Summary:
The Dom events for the divs that are very close together were not firing correctly causing the old implementation to not track the hovered node correctly. This was really frustrating trying to select a node amongst many close neighbours.

The new approach uses the mouse x,y position and performs a hit test. Currently we do a dfs looking for the first deepest child that interests the mouse x,y. In a future diff we will extract a list when there are multiple candidates.

Hovered node was removed from react props since both the tree and visualisor depend on it meaning when hover state changes the whole app is rerendered. Instead we have moved hover state to an atom which is subscribed to by each visualsation node. Only if the old or new value matches the particular nodes id do we set state. The viz nodes were memo'd to prevent children renderning. The result is that for a hover change at most 2 nodes out of the 500 or so will rerender.

I attempted to do the same with the tree but it wasnt working with the controlled tree environment + focus state. The perf seems fine as is so will leave it for now

Reviewed By: lblasa

Differential Revision: D41218324

fbshipit-source-id: 7f80bcee256abad2689a88d7e209f92417aab672
2022-11-14 07:05:58 -08:00
Luke De Feo
bfe098485f Nested node structure for vizualiser
Summary: This structure makes sense for the vizualiser which itself is a nested structure. It also saves the awkward branch of there is no key in the map.

Reviewed By: lblasa

Differential Revision: D40670371

fbshipit-source-id: 6c1b960a77749be9e8a193decf6b8d50ce6c7968
2022-11-14 07:05:58 -08:00
Luke De Feo
1398e2aa8a Make node bounds mandatory in protocol
Summary: This makes life on the desktop easier as 99% of the time bounds were there but we were dealing with non sensical non null branches.

Reviewed By: lblasa

Differential Revision: D41218325

fbshipit-source-id: e490d3775720c1c55dcb8f4a2a85520294f5e2a9
2022-11-14 07:05:58 -08:00
Luke De Feo
a4d3167fae Application, window and activity all inherit window bounds
Reviewed By: lblasa

Differential Revision: D41218326

fbshipit-source-id: aa0fad5c80e482629a70240da81c347217d12ea7
2022-11-14 07:05:58 -08:00
Michel Weststrate
7626453f55 Fall back to memory password storage if keytar is not available
Summary:
Not in all environments keytar is available, but still it will be useful to be able to login to intern with Flipper, even for temporarily sessions. This solution falls back to in memory storage.

Note that the underlying assuption is that multiple different users are not connected to the same Flipper server, as this would share their session!

https://fb.workplace.com/groups/flippersupport/permalink/1498550730625580/

Reviewed By: passy

Differential Revision: D41218132

fbshipit-source-id: 6e518d742df639bfbdc9a36ed1fa56ecb363a0b0
2022-11-11 08:28:25 -08:00
Shreesh Ayachit
79bf56e72c Add export and import to Shared Preferences plugin
Summary:
We want to enable backing up and restoring debug settings between app installations.

Currently it is a manual process to click into menu and perform multiple operations.

With this feature, we can export and import shared preferences which will eliminate manual steps on devices.

Reviewed By: mweststrate

Differential Revision: D40987341

fbshipit-source-id: 15dd9600ee5cfd80a085117bdba4d434e4d2198f
2022-11-11 07:09:09 -08:00
Lorenzo Blasa
7ae0eac13a Litho Props
Summary:
This diff adds support for layout and component props from Litho.

Notes:
- Each component could register a descriptor for itself.

Reviewed By: LukeDefeo

Differential Revision: D40680095

fbshipit-source-id: 57c78a199db58e05dd6dac4ed32ff6a869a73b0a
2022-11-11 04:49:02 -08:00
Lorenzo Blasa
612bd69605 Styles refactoring
Summary: This change extracts most styles used across the inspector components and puts them in Styles.tsx

Reviewed By: passy

Differential Revision: D41026862

fbshipit-source-id: 461a78fb4a707d9a455281ec020bac95191ddfce
2022-11-11 03:22:39 -08:00
Lorenzo Blasa
f33e3fc78b Add qualified name to Node
Summary:
Our descriptors currently have a method to return the name as it will be displayed on the elements hierarchy.

However, it doesn't provide enough context if the name is to be used to discover the type in our code base.

This change adds a qualified name method that can provide a more complete name which can indeed be used by the Open In IDE functionality, for example.

Reviewed By: passy

Differential Revision: D40936785

fbshipit-source-id: 790ae02b9ebf37501765c52a24307fcaaaf9c14d
2022-11-11 03:22:39 -08:00
Lorenzo Blasa
51ca3a6cd7 Expose env via flipperLib
Summary:
This change exposes the env variables via the FlipperLib interface used by plugins.

The variables are already white-listed and safe to be used by plugins according to documentation.

Reviewed By: antonk52

Differential Revision: D40852147

fbshipit-source-id: bbb3b052d33bf5cf75c81166af2400fe6a359256
2022-11-10 12:40:27 -08:00
Lorenzo Blasa
caaded026b Big Grep Search
Summary: Add Big Grep Search for Android elements.

Reviewed By: antonk52

Differential Revision: D40634183

fbshipit-source-id: faecfc8900211478655ddff6499ff797e3136f91
2022-11-10 11:52:28 -08:00
Lorenzo Blasa
01dc22b1ab Attributes Metadata
Summary:
Before this change, attributes and attribute metadata were intermingled and sent as one unit via subtree update event.

This represented a few issues:
- Repetitiveness. For each declared and dynamic attribute, metadata was included on each value unit.
- Metadata can vary in size and thus can have a negative impact on payload size.
- The attribute name which is part of metadata is a string which always overhead on processing.
- Metadata instantiation is not cheap thus this also incurs in processing overhead i.e. even instantiating a single string can have an impact.

The proposal is to separate metadata of attributes from the actual node reported attributes. This solves the problems mentioned above.

Reviewed By: LukeDefeo

Differential Revision: D40674156

fbshipit-source-id: 0788551849fbce53065f819ba503e7e4afc03cc0
2022-11-10 11:52:28 -08:00
generatedunixname89002005306973
27428522ce Flipper Snapshot Bump: v0.174.1-SNAPSHOT
Summary: Releasing snapshot version 0.174.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D41154769

fbshipit-source-id: 411517dbc1f61ee65260173d2f59eb93d857372e
2022-11-10 06:52:13 -08:00
generatedunixname89002005306973
019bcaeb9e Flipper Release: v0.174.0
Summary: Releasing version 0.174.0

Reviewed By: mweststrate

Differential Revision: D41154768

fbshipit-source-id: bc9dbccae2ae413024a6573ec7ba57f4933f1741
2022-11-10 06:52:13 -08:00
John Knox
c8cbdffa96 Upgrade docusaurus plugin
Summary: Doing this to get better logging in case we get transient failures again when fetching code snippets

Reviewed By: antonk52

Differential Revision: D41118788

fbshipit-source-id: f6cb9e20a08920f5935b14d765ac4c053ac5c78f
2022-11-08 06:49:27 -08:00
Andrey Goncharov
a39ffb1c5f Update link to FlipperLib
Reviewed By: passy

Differential Revision: D41027669

fbshipit-source-id: c890f04241ebb5e6721c15bde028b50547847b50
2022-11-07 07:37:39 -08:00
Andrey Goncharov
7e9166137c Add verbose logging for Android cert exchange
Reviewed By: lblasa

Differential Revision: D40981864

fbshipit-source-id: f99f517c5abdce839a441c21d50ce8488b249313
2022-11-04 08:23:44 -07:00
Andrey Goncharov
2c767e1920 Make the universal export work on the older Android devices
Summary: On older Android devices (API 24) `-printf ` is not available

Reviewed By: lblasa

Differential Revision: D40980640

fbshipit-source-id: d1a1bcadc496deaf3d514c1e45b2e0104a937b18
2022-11-04 08:23:44 -07:00
Andrey Goncharov
26241cf5c0 Skip logging data for the 'upload-scibe-logs-event''
Summary:
Logging data for this event turnslogs into unreadable mess
{F789339377}

Reviewed By: lblasa

Differential Revision: D40978819

fbshipit-source-id: ac0894b2a490aa902180c50e7712b168211c7013
2022-11-04 08:23:44 -07:00
Andrey Goncharov
2a108854d2 Make flipper-server-client gracefully handle malformed messages
Summary: FlipperServerClient can use any socket to transfer the data. Since we do not control the socket, we cannot guarantee what comes out of it (hello, Jest E2E tunnel!). We need to handle unexpected messages gracefully.

Reviewed By: passy

Differential Revision: D40891384

fbshipit-source-id: 6f873037aa49bac3fc4c09fa49483cdec537ae40
2022-11-03 06:57:17 -07:00
Andrey Goncharov
60a439ef7b Remove window refernce from flipper-server-client
Summary: Remove `window` reference to use flipper-server-client in NodeJS context (windows is not defined there)

Reviewed By: passy

Differential Revision: D40859805

fbshipit-source-id: 23415f9d504e4dbba4035b942c73add86edf02de
2022-11-03 06:57:17 -07:00
Andrey Goncharov
82e5cfd368 Expose isLoggedIn to plugin creators
Summary: Re-expose one of the legacy exports we had before. Requested by MSYS

Reviewed By: passy

Differential Revision: D40979328

fbshipit-source-id: 7e8f089a182a62f392f3a720bee9b81698930f9d
2022-11-03 06:29:24 -07:00
John Knox
2736cfeeb6 Dont gitignore website/yarn.lock
Reviewed By: passy

Differential Revision: D40936268

fbshipit-source-id: c28ad2f825b846b827ddffb555850e6adb10d83e
2022-11-02 05:23:55 -07:00
Akinola Orederu
42ecf919d6 removing null values for bindArgs so database plugin doesn't throw exception for beta builds
Summary:
Removing use of ```database.query``` with null values because its stopping the database plugin from working for whatsapp android.

The [release version of FrameworkSQLiteDatabase](https://androidx.tech/artifacts/sqlite/sqlite-framework/2.2.0-source/androidx/sqlite/db/framework/FrameworkSQLiteDatabase.java.html) is written in java which accepts a null value (although its still annotated NonNull for Object[] bindArgs)

But the [beta version of FrameworkSQLiteDatabase](https://androidx.tech/artifacts/sqlite/sqlite-framework/2.3.0-beta01-source/androidx/sqlite/db/framework/FrameworkSQLiteDatabase.kt.html) is written in kotlin which throws an exception for null values.

Reviewed By: passy, mweststrate

Differential Revision: D40870552

fbshipit-source-id: 72c99c1b62d052887d298145a3019d6123ea94f3
2022-11-01 09:41:25 -07:00
Andrey Goncharov
226ccf91f6 Create flipper-server-client package
Summary:
FlipperServerClient is a useful abstraction for any JS-based client of headless Flipper. No need to bundle it with flipper-frontend-core, as the rest is not useful for external clients.
Currently, I am planning to add it to jest-e2e to send commands to Flipper

Reviewed By: lblasa

Differential Revision: D40765668

fbshipit-source-id: af48710bb15444ac1ecd649fe9a2ab252f3088f3
2022-10-31 04:26:43 -07:00
generatedunixname89002005306973
0f5ba32736 Flipper Snapshot Bump: v0.173.1-SNAPSHOT
Summary: Releasing snapshot version 0.173.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D40803305

fbshipit-source-id: f2917e0777061c3244528e2cece0748d74401633
2022-10-28 09:27:02 -07:00
generatedunixname89002005306973
aef077f54f Flipper Release: v0.173.0
Summary: Releasing version 0.173.0

Reviewed By: lblasa

Differential Revision: D40803306

fbshipit-source-id: 502ae3cb94994454c31aee05573ec1d43150862a
2022-10-28 09:27:02 -07:00
Lorenzo Blasa
3598fb2cde Use correct bounds for litho debug components
Summary:
This change is a follow-up on Litho release:
https://central.sonatype.dev/artifact/com.facebook.litho/litho-widget-kotlin/0.44.0

This change ensures DebugComponent returns the correct Bounds.

Reviewed By: aigoncharov

Differential Revision: D40678191

fbshipit-source-id: 1d587efa114a9cd5c0b8162d219e93e3cbad282e
2022-10-28 04:58:52 -07:00
Lorenzo Blasa
587f428cf8 Allow plugins to use css
Summary:
Flipper plugins fail when importing css from third-party dependencies. This diff tries to fix that.

Effectively, the plugin can import the css and export it when is bundled.

When we load the plugin, we check if there's a css file for it. If there's one, we return it and try to use it.

Reviewed By: aigoncharov

Differential Revision: D40758178

fbshipit-source-id: e53afffcc481504905d5eeb1aea1f9114ee2a86b
2022-10-27 22:50:30 -07:00
facebook-flipper-bot
ff282630be Automated: Update Podfile.lock (#4271)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

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

Reviewed By: passy

Differential Revision: D40755392

Pulled By: aigoncharov

fbshipit-source-id: f296fe36535ff8744ddee6b6f9d2575d71c429f9
2022-10-27 05:30:53 -07:00
dependabot[bot]
202e8e72d3 Bump anyhow from 1.0.65 to 1.0.66 in /packer (#4244)
Summary:
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.65 to 1.0.66.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/dtolnay/anyhow/releases">anyhow's releases</a>.</em></p>
<blockquote>
<h2>1.0.66</h2>
<ul>
<li>Reduce unhelpful backtrace frames in backtraces captured during a <code>context</code> call (<a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/279">https://github.com/facebook/flipper/issues/279</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="8de29aafd4"><code>8de29aa</code></a> Release 1.0.66</li>
<li><a href="54fc812209"><code>54fc812</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/279">https://github.com/facebook/flipper/issues/279</a> from dtolnay/contextbacktrace</li>
<li><a href="131249b11c"><code>131249b</code></a> Remove 2 frames of noise from 'context' backtraces</li>
<li><a href="f2123ab51b"><code>f2123ab</code></a> Ui test changes for trybuild 1.0.66</li>
<li><a href="9bd74a1540"><code>9bd74a1</code></a> Restore pre-nightly-2022-10-05 behavior of test_path PhantomData tests</li>
<li><a href="77c4fa4566"><code>77c4fa4</code></a> Update test suite to nightly-2022-10-05</li>
<li><a href="7b171d651d"><code>7b171d6</code></a> Ignore bool_to_int_with_if clippy lint in test suite</li>
<li><a href="94ae34b0d5"><code>94ae34b</code></a> Raise minimum tested toolchain to rust 1.56</li>
<li><a href="94f6f4df66"><code>94f6f4d</code></a> Remove default package.readme metadata from Cargo.toml</li>
<li>See full diff in <a href="https://github.com/dtolnay/anyhow/compare/1.0.65...1.0.66">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=anyhow&package-manager=cargo&previous-version=1.0.65&new-version=1.0.66)](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/4244

Reviewed By: aigoncharov

Differential Revision: D40673596

Pulled By: passy

fbshipit-source-id: a4366270d368b88fd7f7019eb8763dde31abbc02
2022-10-26 09:25:02 -07:00
generatedunixname89002005306973
dd3640c100 Flipper Snapshot Bump: v0.172.1-SNAPSHOT
Summary: Releasing snapshot version 0.172.1-SNAPSHOT

Reviewed By: aigoncharov

Differential Revision: D40720214

fbshipit-source-id: 0a432bd940a82e5bdffddcdb36900c968c9b8d09
2022-10-26 08:55:46 -07:00
generatedunixname89002005306973
1923ad0142 Flipper Release: v0.172.0
Summary: Releasing version 0.172.0

Reviewed By: aigoncharov

Differential Revision: D40720215

fbshipit-source-id: 24b3c7a82d285ee6bfc1819a38aaa7243350ea0a
2022-10-26 08:55:46 -07:00
Andrey Goncharov
8aa226722c Revert adding ui-debugger css into the main bundle
Summary:
Importing CSS from nested node_modules residing inside of the plugins folder breaks publish-static-docs-flipper-diff job. See D40717045.
Reverting it to unblock the release

Reviewed By: lblasa

Differential Revision: D40717654

fbshipit-source-id: ac3f4ce92d69b0e3bed9cd116678785390e26e4e
2022-10-26 06:30:55 -07:00
Andrey Goncharov
b025cda861 Stop doing eval to load server add-ons
Summary:
Closes https://github.com/facebook/flipper/issues/4203

CHANGELOG: Stop doing eval to load server add-ons

On Windows `details.path`  contains backslashes. When we interpolate it, it loses one of the backslashes and subsequently `require` fails to load it. If we do not interpolate it (by ditching eval) it has the double backslash and work just fine.

Reviewed By: lblasa

Differential Revision: D40715523

fbshipit-source-id: 50c52f2a53690b585a32d3009f1692cf0b0d8428
2022-10-26 05:00:00 -07:00
Andrey Goncharov
3e88a53a3f Fix WebSocket server not starting on Windows
Summary: When Flipper starts with Flipper Server enabled, on Windows we forgot to attach the WebSocket handler. It led to a white screen on Electron or to connection timeout messages on Flipper Server.

Reviewed By: passy, lblasa

Differential Revision: D40679781

fbshipit-source-id: 1c8df8012efc54077409eb8891b1d82ddaf16689
2022-10-26 03:36:04 -07:00
Andrey Goncharov
13e06803c9 Migrate React Native Example app to react-native 0.69 (#4265)
Summary:
// allow-large-files

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

Related to https://github.com/facebook/flipper/issues/4240

Resolving https://github.com/facebook/flipper/issues/3859 led to breaking changes in react-native-flipper which made it incompatible with react-natvie < 0.69.
In this diff we migrate our example app to react-native 0.69 and add a notice to our readme about the react-native 0.69+ requirement

Reviewed By: lblasa

Differential Revision: D40673740

fbshipit-source-id: 18f4742449d115be7a5100f2bc4d834dcebea80f
2022-10-25 10:40:44 -07:00
dependabot[bot]
65a45ba6ba Bump serde from 1.0.145 to 1.0.147 in /packer (#4245)
Summary:
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.145 to 1.0.147.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/serde-rs/serde/releases">serde's releases</a>.</em></p>
<blockquote>
<h2>v1.0.147</h2>
<ul>
<li>Add <code>serde::de::value::EnumAccessDeserializer</code> which transforms an <code>EnumAccess</code> into a <code>Deserializer</code> (<a href="https://github-redirect.dependabot.com/serde-rs/serde/issues/2305">https://github.com/facebook/flipper/issues/2305</a>)</li>
</ul>
<h2>v1.0.146</h2>
<ul>
<li>Allow internally tagged newtype variant to contain unit (<a href="https://github-redirect.dependabot.com/serde-rs/serde/issues/2303">https://github.com/facebook/flipper/issues/2303</a>, thanks <a href="https://github.com/tage64"><code>@​tage64</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="f41509261e"><code>f415092</code></a> Release 1.0.147</li>
<li><a href="6d009711a2"><code>6d00971</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/serde-rs/serde/issues/2305">https://github.com/facebook/flipper/issues/2305</a> from serde-rs/enumaccessdeserializer</li>
<li><a href="354b48fd40"><code>354b48f</code></a> Add EnumAccessDeserializer to turn EnumAccess into a Deserializer</li>
<li><a href="3fd8e52f0c"><code>3fd8e52</code></a> Release 1.0.146</li>
<li><a href="142dce0d3d"><code>142dce0</code></a> Touch up PR 2303</li>
<li><a href="6aed101630"><code>6aed101</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/serde-rs/serde/issues/2303">https://github.com/facebook/flipper/issues/2303</a> from tage64/master</li>
<li><a href="e2ccfd9ea7"><code>e2ccfd9</code></a> Remove bad deserialization from sequence to internally tagged newtype variant...</li>
<li><a href="a07d794f74"><code>a07d794</code></a> Update test_suite/tests/test_annotations.rs</li>
<li><a href="90d28fc314"><code>90d28fc</code></a> Serialize and deserialize a tagged newtype variant over unit () as if it was ...</li>
<li><a href="55cf0ac51a"><code>55cf0ac</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/serde-rs/serde/issues/2297">https://github.com/facebook/flipper/issues/2297</a> from serde-rs/output</li>
<li>Additional commits viewable in <a href="https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.147">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=serde&package-manager=cargo&previous-version=1.0.145&new-version=1.0.147)](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/4245

Reviewed By: aigoncharov

Differential Revision: D40673597

Pulled By: passy

fbshipit-source-id: 8c0f22611c753edd148d413c0d0618d3b9bb6552
2022-10-25 09:50:10 -07:00
dependabot[bot]
3dfb7caf1a Bump mockito-core from 4.7.0 to 4.8.1 (#4250)
Summary:
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.7.0 to 4.8.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/mockito/mockito/releases">mockito-core's releases</a>.</em></p>
<blockquote>
<h2>v4.8.1</h2>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h4>4.8.1</h4>
<ul>
<li>2022-10-17 - <a href="https://github.com/mockito/mockito/compare/v4.8.0...v4.8.1">6 commit(s)</a> by andrepaschoal, dependabot[bot]</li>
<li>Possible fix <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2765">https://github.com/facebook/flipper/issues/2765</a>: Add task to download package-list file from java as element-list [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2766">https://github.com/facebook/flipper/issues/2766</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2766">mockito/mockito#2766</a>)</li>
<li>JavaDoc warning is blocking all pull requests [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2765">https://github.com/facebook/flipper/issues/2765</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2765">mockito/mockito#2765</a>)</li>
<li>Bump versions.junitJupiter from 5.9.0 to 5.9.1 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2758">https://github.com/facebook/flipper/issues/2758</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2758">mockito/mockito#2758</a>)</li>
<li>Bump groovy from 3.0.12 to 3.0.13 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2756">https://github.com/facebook/flipper/issues/2756</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2756">mockito/mockito#2756</a>)</li>
<li>Bump com.diffplug.spotless from 6.10.0 to 6.11.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2753">https://github.com/facebook/flipper/issues/2753</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2753">mockito/mockito#2753</a>)</li>
<li>Bump org.eclipse.osgi from 3.18.0 to 3.18.100 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2751">https://github.com/facebook/flipper/issues/2751</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2751">mockito/mockito#2751</a>)</li>
<li>Bump versions.bytebuddy from 1.12.14 to 1.12.16 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2747">https://github.com/facebook/flipper/issues/2747</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2747">mockito/mockito#2747</a>)</li>
</ul>
<h2>v4.8.0</h2>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h4>4.8.0</h4>
<ul>
<li>2022-09-07 - <a href="https://github.com/mockito/mockito/compare/v4.7.0...v4.8.0">10 commit(s)</a> by Alex, James Baker, Johannes Spangenberg, Kurt Alfred Kluever, Rafael Winterhalter, Thibault Helsmoortel, dependabot[bot]</li>
<li>GitHub Workflows security hardening [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2744">https://github.com/facebook/flipper/issues/2744</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2744">mockito/mockito#2744</a>)</li>
<li>Assign GlobalConfiguration initializer to unused variable [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2742">https://github.com/facebook/flipper/issues/2742</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2742">mockito/mockito#2742</a>)</li>
<li>Bump com.diffplug.spotless from 6.9.1 to 6.10.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2738">https://github.com/facebook/flipper/issues/2738</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2738">mockito/mockito#2738</a>)</li>
<li>Drop varargs collector before invoking a user method. [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2736">https://github.com/facebook/flipper/issues/2736</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2736">mockito/mockito#2736</a>)</li>
<li>Bump versions.bytebuddy from 1.12.13 to 1.12.14 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2734">https://github.com/facebook/flipper/issues/2734</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2734">mockito/mockito#2734</a>)</li>
<li>Remove useless thrown exception from constructor [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2732">https://github.com/facebook/flipper/issues/2732</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2732">mockito/mockito#2732</a>)</li>
<li>TypeSafeMatching no longer iterates over class methods inefficiently [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2729">https://github.com/facebook/flipper/issues/2729</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2729">mockito/mockito#2729</a>)</li>
<li>Fixes <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2720">https://github.com/facebook/flipper/issues/2720</a>: Use StackWalker on Java 9+ to create Locations [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2723">https://github.com/facebook/flipper/issues/2723</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2723">mockito/mockito#2723</a>)</li>
<li>LocationImpl adds performance overheads due to instantiating a stack trace [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2720">https://github.com/facebook/flipper/issues/2720</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2720">mockito/mockito#2720</a>)</li>
<li>Fixes <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2626">https://github.com/facebook/flipper/issues/2626</a> : Introduce MockSettings.mockMaker [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2701">https://github.com/facebook/flipper/issues/2701</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2701">mockito/mockito#2701</a>)</li>
<li>Introduce option to disable inline-mock-maker for a specific instance [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2626">https://github.com/facebook/flipper/issues/2626</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2626">mockito/mockito#2626</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="4d14d975ce"><code>4d14d97</code></a> Bump versions.junitJupiter from 5.9.0 to 5.9.1 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2758">https://github.com/facebook/flipper/issues/2758</a>)</li>
<li><a href="3507ce328f"><code>3507ce3</code></a> Use downloaded package-list file from Oracle for JavaDoc generation (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2766">https://github.com/facebook/flipper/issues/2766</a>)</li>
<li><a href="0a9aa26978"><code>0a9aa26</code></a> Bump groovy from 3.0.12 to 3.0.13 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2756">https://github.com/facebook/flipper/issues/2756</a>)</li>
<li><a href="ee3679bc03"><code>ee3679b</code></a> Bump com.diffplug.spotless from 6.10.0 to 6.11.0 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2753">https://github.com/facebook/flipper/issues/2753</a>)</li>
<li><a href="185ea11ae4"><code>185ea11</code></a> Bump org.eclipse.osgi from 3.18.0 to 3.18.100 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2751">https://github.com/facebook/flipper/issues/2751</a>)</li>
<li><a href="488d4b13c9"><code>488d4b1</code></a> Bump versions.bytebuddy from 1.12.14 to 1.12.16 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2747">https://github.com/facebook/flipper/issues/2747</a>)</li>
<li><a href="3e910ea990"><code>3e910ea</code></a> Fixes <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2626">https://github.com/facebook/flipper/issues/2626</a> : Introduce MockSettings.mockMaker (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2701">https://github.com/facebook/flipper/issues/2701</a>)</li>
<li><a href="0753d48161"><code>0753d48</code></a> Explicitly add permissions to GitHub actions (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2744">https://github.com/facebook/flipper/issues/2744</a>)</li>
<li><a href="530558ae3c"><code>530558a</code></a> Assign GlobalConfiguration initializer to unused variable (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2742">https://github.com/facebook/flipper/issues/2742</a>)</li>
<li><a href="4b8042e24e"><code>4b8042e</code></a> Bump com.diffplug.spotless from 6.9.1 to 6.10.0 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2738">https://github.com/facebook/flipper/issues/2738</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/mockito/mockito/compare/v4.7.0...v4.8.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.mockito:mockito-core&package-manager=gradle&previous-version=4.7.0&new-version=4.8.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/4250

Reviewed By: aigoncharov

Differential Revision: D40673613

Pulled By: passy

fbshipit-source-id: 8f300bb530c4a997cb9423063bf1a9ce2f472333
2022-10-25 09:49:51 -07:00
dependabot[bot]
b438ee37ca Bump serde_yaml from 0.9.13 to 0.9.14 in /packer (#4246)
Summary:
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.13 to 0.9.14.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/dtolnay/serde-yaml/releases">serde_yaml's releases</a>.</em></p>
<blockquote>
<h2>0.9.14</h2>
<ul>
<li>Implement <code>Deserializer</code> for <code>TaggedValue</code> and <code>&amp;TaggedValue</code> (<a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/339">https://github.com/facebook/flipper/issues/339</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="8948d368c0"><code>8948d36</code></a> Release 0.9.14</li>
<li><a href="8d95125eed"><code>8d95125</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/339">https://github.com/facebook/flipper/issues/339</a> from dtolnay/deserializertaggedvalue</li>
<li><a href="371f764d32"><code>371f764</code></a> Implement Deserializer for TaggedValue and &amp;TaggedValue</li>
<li><a href="c5523fe475"><code>c5523fe</code></a> Replace nonstandard SError name used only in Value Deserialize</li>
<li><a href="516fdff567"><code>516fdff</code></a> Ignore uninlined_format_args pedantic clippy lint</li>
<li><a href="31fa98e396"><code>31fa98e</code></a> Pull in unsafe-libyaml 0.2.4</li>
<li>See full diff in <a href="https://github.com/dtolnay/serde-yaml/compare/0.9.13...0.9.14">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=serde_yaml&package-manager=cargo&previous-version=0.9.13&new-version=0.9.14)](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/4246

Reviewed By: aigoncharov

Differential Revision: D40673599

Pulled By: passy

fbshipit-source-id: 2222937777ededf46d0ce49f791a44b0e84db6ad
2022-10-25 09:45:59 -07:00
dependabot[bot]
8ddba12ca5 Bump protobuf-java from 3.21.7 to 3.21.8 (#4251)
Summary:
Bumps [protobuf-java](https://github.com/protocolbuffers/protobuf) from 3.21.7 to 3.21.8.
<details>
<summary>Commits</summary>
<ul>
<li><a href="dab4d24d44"><code>dab4d24</code></a> Update changelog</li>
<li><a href="4d465ba341"><code>4d465ba</code></a> Updating version.json and repo version numbers to: 21.8</li>
<li><a href="3a0ae1d1eb"><code>3a0ae1d</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/protocolbuffers/protobuf/issues/10772">#10772</a> from deannagarcia/21.x</li>
<li><a href="dda7ffdc4f"><code>dda7ffd</code></a> Edit toolchain to work with absl dep</li>
<li><a href="4aab0bf621"><code>4aab0bf</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/protocolbuffers/protobuf/issues/10771">#10771</a> from protocolbuffers/gberg-cp-10770</li>
<li><a href="fa5a9e1035"><code>fa5a9e1</code></a> Auto capitalize enums name in Ruby (<a href="https://github-redirect.dependabot.com/protocolbuffers/protobuf/issues/10454">#10454</a>) (<a href="https://github-redirect.dependabot.com/protocolbuffers/protobuf/issues/10763">#10763</a>)</li>
<li><a href="1594ac1a2e"><code>1594ac1</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/protocolbuffers/protobuf/issues/10770">#10770</a> from protocolbuffers/googleberg-cl-480629524</li>
<li><a href="5d90ef2432"><code>5d90ef2</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/protocolbuffers/protobuf/issues/10743">#10743</a> from brad0/21_openbsd_platform_macros</li>
<li><a href="0ee5525a75"><code>0ee5525</code></a> Upgrade kokoro to Xcode 14 (<a href="https://github-redirect.dependabot.com/protocolbuffers/protobuf/issues/10732">#10732</a>)</li>
<li><a href="a971d06fc2"><code>a971d06</code></a> 21.x No longer define no_threadlocal on OpenBSD</li>
<li>Additional commits viewable in <a href="https://github.com/protocolbuffers/protobuf/compare/v3.21.7...v3.21.8">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.google.protobuf:protobuf-java&package-manager=gradle&previous-version=3.21.7&new-version=3.21.8)](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/4251

Reviewed By: aigoncharov

Differential Revision: D40673617

Pulled By: passy

fbshipit-source-id: 88316f649ec4c0ccc3584a6d31c5e5db87d11c5c
2022-10-25 09:39:43 -07:00
dependabot[bot]
a95de35771 Bump kotlinx-serialization-json from 1.4.0 to 1.4.1 (#4228)
Summary:
Bumps [kotlinx-serialization-json](https://github.com/Kotlin/kotlinx.serialization) from 1.4.0 to 1.4.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/Kotlin/kotlinx.serialization/releases">kotlinx-serialization-json's releases</a>.</em></p>
<blockquote>
<h2>1.4.1</h2>
<p>This patch release contains several bug fixes and improvements.
Kotlin 1.7.20 is used by default.</p>
<h3>Improvements</h3>
<ul>
<li>Add <a href="https://github.com/MustBeDocumented"><code>@​MustBeDocumented</code></a> to certain annotations (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2059">https://github.com/facebook/flipper/issues/2059</a>)</li>
<li>Deprecate .isNullable in SerialDescriptor builder (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2040">https://github.com/facebook/flipper/issues/2040</a>)</li>
<li>Unsigned primitives and unsigned arrays serializers can be retrieved as built-ins (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/1992">https://github.com/facebook/flipper/issues/1992</a>)</li>
<li>Serializers are now cached inside reflective lookup, leading to faster serializer retrieval (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2015">https://github.com/facebook/flipper/issues/2015</a>)</li>
<li>Compiler plugin can create enum serializers using static factories for better speed (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/1851">https://github.com/facebook/flipper/issues/1851</a>) (Kotlin 1.7.20 required)</li>
<li>Provide a foundation for compiler plugin intrinsics available in Kotlin 1.8.0 (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2031">https://github.com/facebook/flipper/issues/2031</a>)</li>
</ul>
<h3>Bugfixes</h3>
<ul>
<li>Support polymorphism in Properties format (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2052">https://github.com/facebook/flipper/issues/2052</a>) (thanks to <a href="https://github.com/rodrigovedovato">Rodrigo Vedovato</a>)</li>
<li>Added support of UTF-16 surrogate pairs to okio streams (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2033">https://github.com/facebook/flipper/issues/2033</a>)</li>
<li>Fix dependency on core module from HOCON module (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2020">https://github.com/facebook/flipper/issues/2020</a>) (thanks to <a href="https://github.com/osipxd">Osip Fatkullin</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/Kotlin/kotlinx.serialization/blob/master/CHANGELOG.md">kotlinx-serialization-json's changelog</a>.</em></p>
<blockquote>
<h1>1.4.1 / 2022-10-14</h1>
<p>This is patch release contains several bugfixes and improvements.
Kotlin 1.7.20 is used by default.</p>
<h3>Improvements</h3>
<ul>
<li>Add <a href="https://github.com/MustBeDocumented"><code>@​MustBeDocumented</code></a> to certain annotations (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2059">https://github.com/facebook/flipper/issues/2059</a>)</li>
<li>Deprecate .isNullable in SerialDescriptor builder (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2040">https://github.com/facebook/flipper/issues/2040</a>)</li>
<li>Unsigned primitives and unsigned arrays serializers can be retrieved as built-ins (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/1992">https://github.com/facebook/flipper/issues/1992</a>)</li>
<li>Serializers are now cached inside reflective lookup, leading to faster serializer retrieval (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2015">https://github.com/facebook/flipper/issues/2015</a>)</li>
<li>Compiler plugin can create enum serializers using static factories for better speed (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/1851">https://github.com/facebook/flipper/issues/1851</a>) (Kotlin 1.7.20 required)</li>
<li>Provide foundation for compiler plugin intrinsics available in Kotlin 1.8.0 (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2031">https://github.com/facebook/flipper/issues/2031</a>)</li>
</ul>
<h3>Bugfixes</h3>
<ul>
<li>Support polymorphism in Properties format (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2052">https://github.com/facebook/flipper/issues/2052</a>) (thanks to <a href="https://github.com/rodrigovedovato">Rodrigo Vedovato</a>)</li>
<li>Added support of UTF-16 surrogate pairs to okio streams (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2033">https://github.com/facebook/flipper/issues/2033</a>)</li>
<li>Fix dependency on core module from HOCON module (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2020">https://github.com/facebook/flipper/issues/2020</a>) (thanks to <a href="https://github.com/osipxd">Osip Fatkullin</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d7e58c2eeb"><code>d7e58c2</code></a> Prepare 1.4.1 release (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2063">https://github.com/facebook/flipper/issues/2063</a>)</li>
<li><a href="de6864af70"><code>de6864a</code></a> Merge remote-tracking branch 'origin/master' into dev</li>
<li><a href="0a1b6d856d"><code>0a1b6d8</code></a> Fix minor documentation and comment typos (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2061">https://github.com/facebook/flipper/issues/2061</a>)</li>
<li><a href="0f35682bbc"><code>0f35682</code></a> Fix incorrect behavior while deserializing maps to sealed classes (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2052">https://github.com/facebook/flipper/issues/2052</a>)</li>
<li><a href="dc9983a608"><code>dc9983a</code></a> Update test assertions to use IntelliJ &quot;Click to see difference&quot; format (<a href="https://github-redirect.dependabot.com/Kotlin/kotlinx.serialization/issues/2062">https://github.com/facebook/flipper/issues/2062</a>)</li>
<li><a href="cb6bcbb648"><code>cb6bcbb</code></a> Add <a href="https://github.com/MustBeDocumented"><code>@​MustBeDocumented</code></a> to certain annotations</li>
<li><a href="182c53e3c9"><code>182c53e</code></a> Add documentation on using typealias for means of global configuration</li>
<li><a href="98529cd8e2"><code>98529cd</code></a> Remove kotlin.Experimental from opt-ins as it would be removed in 1.8.20</li>
<li><a href="687d917b13"><code>687d917</code></a> Updated builtin-classes.md to mention Duration</li>
<li><a href="e311eb8f22"><code>e311eb8</code></a> Added support for the unsigned primitives and arrays as built-in</li>
<li>Additional commits viewable in <a href="https://github.com/Kotlin/kotlinx.serialization/compare/v1.4.0...v1.4.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.jetbrains.kotlinx:kotlinx-serialization-json&package-manager=gradle&previous-version=1.4.0&new-version=1.4.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/4228

Reviewed By: aigoncharov

Differential Revision: D40673607

Pulled By: passy

fbshipit-source-id: 72aa080a0919eedf4dc260a41b3179e1cc824d0e
2022-10-25 09:37:16 -07:00
Luke De Feo
b2c7d67586 More subtile selection and hover state for vizualizer
Summary:
Old hover state is now selection state
New hover state is a slightly thicker border

Reviewed By: lblasa

Differential Revision: D40637724

fbshipit-source-id: 7b13bc864bc1f626cf0982517befcb80615e7cc0
2022-10-25 07:10:38 -07:00
Luke De Feo
f282a5eb8a Ant tree -> React complex tree
Summary:
Upgraded from ant tree library to the much more capable React complex tree. Added the following:
1. Ability to expand / collapse nodes while automatically expanding / collapsing active/inactive children when they change
2. Keyboard controls of tree all the time
3. Basic search functionality
4. Selecting node in tree focuses and scrolls in the tree
5. Hover state for tree

Reviewed By: lblasa

Differential Revision: D40633876

fbshipit-source-id: 8dcef5ec2c277e476a3eb3cdaef62b15c25323c0
2022-10-25 07:10:38 -07:00
Luke De Feo
0c52ad307e Improve selection in vizualizer
Summary:
Clicking on a node a second time will unselect which was impossible before.

The behaviour of the on click handler doesnt always line up what is currently hovered, this is a temporary work around. There are deeper issues with this in that on exit we hover the parent, but in some situations the parent is too small to propagate. In future we will use the mouse position and do a hit test and drive selection / hover from that

Reviewed By: lblasa

Differential Revision: D40637356

fbshipit-source-id: 9df19dbf619845891bb46624730d7cf74f73cf25
2022-10-25 07:10:38 -07:00
Luke De Feo
b1bee28f08 Coordinate update event when litho scrolls or is shifted
Summary: See doc comment for explanation

Reviewed By: lblasa

Differential Revision: D40587610

fbshipit-source-id: f0909440c4e6e3cc9f5c7b557198a93ba8809bd9
2022-10-25 07:10:38 -07:00
Luke De Feo
a447712865 Change Litho observer from on scroll changed listener to on draw listener
Summary:
There are some situatuins where a litho view can move  without a mount occuring in that view. One situation is a litho view in a recycler view. If a neighbouring view is deleted or changes its width/height this will shift the whole recycler view. Since each view in the recycler view is typically a separate comonent tree. The children of the recycler view are not aware of their siblings changes through mount. And these situations do not count as a scroll which was the previous method of detecting change.

This is a work around to listen to on draw which seems to be fired in all situations.

Reviewed By: lblasa

Differential Revision: D40430777

fbshipit-source-id: a9c8196f31a6bdfd4a2fed398cfcaed190972959
2022-10-25 07:10:38 -07:00
Luke De Feo
1aacc51d12 Use mount extension for litho integration
Summary:
Initial implementation of Litho extensions using mount extension. After mount is called on the main thread and we traverse the hierachy. In future we can use mount extensions to construct a sparse tree rather  than sending everything every time.

Scroll is handled with a native UI scroll listener for each litho view. This may break if the litho view is not a direct child of the scroll view.

Reviewed By: mihaelao

Differential Revision: D40021840

fbshipit-source-id: b09086a7a16660225885620609009dddf5b90d3b
2022-10-25 07:10:38 -07:00