Commit Graph

7249 Commits

Author SHA1 Message Date
Lorenzo Blasa
747b91da5f Add file:// as possible origin
Summary:
For Flipper Desktop, Electron based, the origin maybe file:// as shown in tests:

```
Refused socket connection from cross domain request, origin: file://, host: localhost:52342.

Expected origins: http://localhost:52342 or http://[::1]:52342 or http://::1:52342 or http://localhost:3000.
Expected hosts: localhost:52342 or [::1]:52342 or ::1:52342 or localhost:3000
```

This change effectively adds `file://` as a valid origin.

Reviewed By: passy

Differential Revision: D37212809

fbshipit-source-id: 311a93bb8872587d15c6be4329238af6b0f6988d
2022-06-16 10:45:08 -07:00
Lorenzo Blasa
8a1e484d0c Handle ws operations in a safe manner
Summary:
After doing some tests, any error thrown during ws events can result in flipper-server shutting down.

To avoid this, effectively, errors throughout should be properly handled.

The problem is that there's no guarantees this is or will be the case.

Instead, wrap the event handlers in a safe function execution wrapper. Any errors will be caught and logged.

Reviewed By: aigoncharov

Differential Revision: D37206923

fbshipit-source-id: 6f7cadc297ac39768030962c6eaadde55048fd21
2022-06-16 10:35:17 -07:00
Lorenzo Blasa
2712ea3481 Add flipper-server-log.out to .gitignore
Summary: Add flipper-server-log.out to .gitignore

Reviewed By: lawrencelomax

Differential Revision: D37206855

fbshipit-source-id: eccbc0ddddbd06c5c8e0f7a47a4340b1e76f46df
2022-06-16 08:22:05 -07:00
Andrey Goncharov
41d7b2a307 Update OSS node version (#3822)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/3822

Update Node version in CI pipeline

Reviewed By: lblasa

Differential Revision: D37207646

fbshipit-source-id: 157d1da9b01ca3ad34047908abc629f84d6736bc
2022-06-16 06:27:01 -07:00
Anton Kastritskiy
f5992d3489 setup engines to stop people from using npm
Summary:
Following the discussion from D37080670 (ea7ff7eb8a)

Unfortunately at some people npm changed the order in which things happen when running `npm install` and now dependency resolution happens before validating engines 🤷‍♂️

But this will work regardless

https://www.internalfb.com/intern/px/p/261cr

Reviewed By: aigoncharov

Differential Revision: D37142960

fbshipit-source-id: 306f1a4e7444dc099c1a11c4c9e22dafceacdbaa
2022-06-15 07:37:54 -07:00
Zeh Fernando
3a60f8c5be Add new icon
Summary: Add new icon for internal plugin

Reviewed By: aigoncharov

Differential Revision: D36641872

fbshipit-source-id: ff45810b9cbaf207dd392f251fcf42a8df5fd509
2022-06-15 06:38:38 -07:00
Ruslan Latypov
e43884cf11 fixing more imports
Summary: Some files relying on -include_pch and therefore they miss Foundation.h and UIKit.h includes. This diff is fixing missing imports

Reviewed By: rmaz

Differential Revision: D37140239

fbshipit-source-id: bc57921e0c8365e0e9a5a571d607ba40ff1b31f3
2022-06-14 13:37:04 -07:00
dependabot[bot]
0dd3ef2a71 Bump mockito-core from 4.5.1 to 4.6.1 (#3793)
Summary:
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.5.1 to 4.6.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.6.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.6.1</h4>
<ul>
<li>2022-06-02 - <a href="https://github.com/mockito/mockito/compare/v4.6.0...v4.6.1">6 commit(s)</a> by Andy Coates, Chen Ni, dependabot[bot]</li>
<li>Bump material from 1.6.0 to 1.6.1 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2662">https://github.com/facebook/flipper/issues/2662</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2662">mockito/mockito#2662</a>)</li>
<li>Bump core-ktx from 1.7.0 to 1.8.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2661">https://github.com/facebook/flipper/issues/2661</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2661">mockito/mockito#2661</a>)</li>
<li>Bump groovy from 3.0.10 to 3.0.11 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2660">https://github.com/facebook/flipper/issues/2660</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2660">mockito/mockito#2660</a>)</li>
<li>Fix for Issue2656 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2659">https://github.com/facebook/flipper/issues/2659</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2659">mockito/mockito#2659</a>)</li>
<li>Bump assertj-core from 3.22.0 to 3.23.1 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2658">https://github.com/facebook/flipper/issues/2658</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2658">mockito/mockito#2658</a>)</li>
<li>Regression? Strictness set in <code>MockitoSettings</code> ignored after upgrade from 4.5.1 to 4.6.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2656">https://github.com/facebook/flipper/issues/2656</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2656">mockito/mockito#2656</a>)</li>
<li>Fix typo [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2655">https://github.com/facebook/flipper/issues/2655</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2655">mockito/mockito#2655</a>)</li>
</ul>
<h2>v4.6.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.6.0</h4>
<ul>
<li>2022-05-27 - <a href="https://github.com/mockito/mockito/compare/v4.5.1...v4.6.0">14 commit(s)</a> by Hervé Boutemy, K. Siva Prasad Reddy, Rafael Winterhalter, dependabot[bot]</li>
<li>Bump shipkit-changelog from 1.1.15 to 1.2.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2654">https://github.com/facebook/flipper/issues/2654</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2654">mockito/mockito#2654</a>)</li>
<li>Bump versions.errorprone from 2.13.1 to 2.14.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2653">https://github.com/facebook/flipper/issues/2653</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2653">mockito/mockito#2653</a>)</li>
<li>Bump shipkit-auto-version from 1.1.20 to 1.2.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2651">https://github.com/facebook/flipper/issues/2651</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2651">mockito/mockito#2651</a>)</li>
<li>Fixes <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2648">https://github.com/facebook/flipper/issues/2648</a> : Add support for customising strictness via <a href="https://github.com/Mock"><code>@​Mock</code></a> annotation and MockSettings [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2650">https://github.com/facebook/flipper/issues/2650</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2650">mockito/mockito#2650</a>)</li>
<li>Any way to enable Strict Stubbing when using Mockito.mock() without using <a href="https://github.com/Mock"><code>@​Mock</code></a>? [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2648">https://github.com/facebook/flipper/issues/2648</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2648">mockito/mockito#2648</a>)</li>
<li>Reintroduce inheriting type annotations from interfaces if only one interface is mocked, including additional interfaces. [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2645">https://github.com/facebook/flipper/issues/2645</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2645">mockito/mockito#2645</a>)</li>
<li>Bump com.diffplug.spotless from 6.6.0 to 6.6.1 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2643">https://github.com/facebook/flipper/issues/2643</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2643">mockito/mockito#2643</a>)</li>
<li>fix Reproducible Build issue [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2642">https://github.com/facebook/flipper/issues/2642</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2642">mockito/mockito#2642</a>)</li>
<li>Bump com.diffplug.spotless from 6.5.2 to 6.6.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2641">https://github.com/facebook/flipper/issues/2641</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2641">mockito/mockito#2641</a>)</li>
<li>Mockito mock of interfaces lost annotation information [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2640">https://github.com/facebook/flipper/issues/2640</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2640">mockito/mockito#2640</a>)</li>
<li>Bump material from 1.5.0 to 1.6.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2637">https://github.com/facebook/flipper/issues/2637</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2637">mockito/mockito#2637</a>)</li>
<li>Bump com.diffplug.spotless from 6.5.1 to 6.5.2 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2636">https://github.com/facebook/flipper/issues/2636</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2636">mockito/mockito#2636</a>)</li>
<li>Bump versions.bytebuddy from 1.12.9 to 1.12.10 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2635">https://github.com/facebook/flipper/issues/2635</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2635">mockito/mockito#2635</a>)</li>
<li>Bump com.diffplug.spotless from 6.5.0 to 6.5.1 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2632">https://github.com/facebook/flipper/issues/2632</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2632">mockito/mockito#2632</a>)</li>
<li>Bump com.diffplug.spotless from 6.4.2 to 6.5.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2631">https://github.com/facebook/flipper/issues/2631</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2631">mockito/mockito#2631</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="ff98622a8f"><code>ff98622</code></a> Restore behavior for mocks configured without strictness (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2659">https://github.com/facebook/flipper/issues/2659</a>)</li>
<li><a href="1fbef57f8a"><code>1fbef57</code></a> Bump groovy from 3.0.10 to 3.0.11 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2660">https://github.com/facebook/flipper/issues/2660</a>)</li>
<li><a href="c47c7ecedd"><code>c47c7ec</code></a> Bump core-ktx from 1.7.0 to 1.8.0 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2661">https://github.com/facebook/flipper/issues/2661</a>)</li>
<li><a href="2bbf7963b1"><code>2bbf796</code></a> Bump material from 1.6.0 to 1.6.1 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2662">https://github.com/facebook/flipper/issues/2662</a>)</li>
<li><a href="4f41700cfb"><code>4f41700</code></a> Bump assertj-core from 3.22.0 to 3.23.1 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2658">https://github.com/facebook/flipper/issues/2658</a>)</li>
<li><a href="e5a06c5dba"><code>e5a06c5</code></a> Fix typo (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2655">https://github.com/facebook/flipper/issues/2655</a>)</li>
<li><a href="93bba1171c"><code>93bba11</code></a> Bump shipkit-changelog from 1.1.15 to 1.2.0 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2654">https://github.com/facebook/flipper/issues/2654</a>)</li>
<li><a href="70cf2d2f48"><code>70cf2d2</code></a> Add support for customizing strictness via <code>Mock</code> annotation and `MockSettin...</li>
<li><a href="6ce278b473"><code>6ce278b</code></a> Bump versions.errorprone from 2.13.1 to 2.14.0 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2653">https://github.com/facebook/flipper/issues/2653</a>)</li>
<li><a href="7d2e4cce07"><code>7d2e4cc</code></a> Bump shipkit-auto-version from 1.1.20 to 1.2.0 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2651">https://github.com/facebook/flipper/issues/2651</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/mockito/mockito/compare/v4.5.1...v4.6.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.5.1&new-version=4.6.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/3793

Reviewed By: lawrencelomax

Differential Revision: D37070903

Pulled By: passy

fbshipit-source-id: 5a0ad5cf1e64e69ee1be2c0b6b902bcdc8f2a568
2022-06-13 08:41:02 -07:00
dependabot[bot]
7965b130ae Bump constraintlayout from 2.1.2 to 2.1.4 (#3748)
Summary:
Bumps [constraintlayout](https://github.com/androidx/constraintlayout) from 2.1.2 to 2.1.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/androidx/constraintlayout/releases">constraintlayout's releases</a>.</em></p>
<blockquote>
<h2>2.1.3</h2>
<p>Point release of the constraintlayout library.</p>
<p>ConstraintLayout</p>
<ul>
<li>Add getSceneString on ConstraintLayout which gets a json formatted dump of the layout and constraints</li>
<li>Add attribute to GuideLine guidelineuseRTL to enable / disable if guideline is using RTL</li>
</ul>
<p>ConstraintLayout Compose</p>
<ul>
<li>add support for Margin in barrier <code>id: {type: 'barrier', direction: 'end' , contains: ['id1', 'id2'], margin: -12}</code></li>
<li>add json support for vbias/hbias  <code>id: { centerVertically: 'parent',  vBias: 0.45 }</code></li>
<li>improve json min/max support <code> width: { value: 'wrap', max: 300, min:20 },</code></li>
<li>mprove chain in dsl <code>val chain1 = createHorizontalChain(box1, box2, chainStyle = ChainStyle.Spread)</code></li>
<li>add DSL for goneMargin , Reset dimensions and transforms</li>
<li>add bias <code>centerHorizontallyTo(parent, bias = 0.2f)</code></li>
</ul>
<p>MotionLayout Compose</p>
<ul>
<li>Make Compose MotionLayout <a href="https://github.com/ExperimentalMotionApi"><code>@​ExperimentalMotionApi</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/androidx/constraintlayout/commits">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=androidx.constraintlayout:constraintlayout&package-manager=gradle&previous-version=2.1.2&new-version=2.1.4)](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/3748

Reviewed By: lawrencelomax

Differential Revision: D37070948

Pulled By: passy

fbshipit-source-id: 4cc9389149490e85bc9aa0cbcb4b386072775010
2022-06-13 08:33:02 -07:00
dependabot[bot]
a752b4711d Bump core-ktx from 1.7.0 to 1.8.0 (#3794)
Summary:
Bumps core-ktx from 1.7.0 to 1.8.0.

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=androidx.core:core-ktx&package-manager=gradle&previous-version=1.7.0&new-version=1.8.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/3794

Reviewed By: lawrencelomax

Differential Revision: D37070913

Pulled By: passy

fbshipit-source-id: 98f817ee76bde2dfec2ebf3eb5080214c746cdc4
2022-06-13 08:29:14 -07:00
dependabot[bot]
d54944346c Bump gradle-maven-publish-plugin from 0.19.0 to 0.20.0 (#3795)
Summary:
Bumps [gradle-maven-publish-plugin](https://github.com/vanniktech/gradle-maven-publish-plugin) from 0.19.0 to 0.20.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/vanniktech/gradle-maven-publish-plugin/releases">gradle-maven-publish-plugin's releases</a>.</em></p>
<blockquote>
<h2>0.20.0</h2>
<p><a href="https://github.com/vanniktech/gradle-maven-publish-plugin/blob/master/CHANGELOG.md#version-0200-2022-06-02">Changelog</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/vanniktech/gradle-maven-publish-plugin/blob/master/CHANGELOG.md">gradle-maven-publish-plugin's changelog</a>.</em></p>
<blockquote>
<h2>Version 0.20.0 <em>(2022-06-02)</em></h2>
<p><strong>Upcoming behavior change</strong></p>
<p>In the next release after this the <code>com.vanniktech.maven.publish</code> will stop adding Maven Central (Sonatype OSS) as a
publishing target and will not enable GPG signing by default. If you are curretly relying on this behavior the plugin
will print a warning during configuration phase. To continue publishing to maven central and signing artifacts either
add this to your build files:</p>
<pre lang="gradle"><code>mavenPublishing {
  publishToMavenCentral() // use publishToMavenCentral(&quot;S01&quot;) for publishing through s01.oss.sonatype.org
  enableReleaseSigning()
}
</code></pre>
<p>or the following to your <code>gradle.properties</code>:</p>
<pre lang="gradle"><code>SONATYPE_HOST=DEFAULT
# SONATYPE_HOST=S01 for publishing through s01.oss.sonatype.org
RELEASE_SIGNING_ENABLED=true
</code></pre>
<p>The base plugin is unaffected by these changes because it already has this behavior.</p>
<p><strong>Deprecation</strong></p>
<p>The old <code>mavenPublish</code> extension has been deprecated.</p>
<p>If you were using it to set <code>sonatypeHost</code> to <code>S01</code> use</p>
<pre lang="gradle"><code>mavenPublishing {
  publishToMavenCentral(&quot;S01&quot;)
}
</code></pre>
<p>instead or add <code>SONATYPE_HOST=S01</code> to your gradle.properties.</p>
<p>If <code>sonatypeHost</code> was used to disable adding Maven Central as a publishing target add <code>SONATYPE_HOST=</code> until 0.21.0 is out and this becomes the default behavior.</p>
<p>If you set <code>releaseSigningEnabled</code> to false add <code>RELEASE_SIGNING_ENABLED=false</code> to your gradle.properties until 0.21.0 is out and this becomes the default behavior.</p>
<p><strong>New</strong></p>
<p>Added support to set the following pom values through properties (thanks to <a href="https://github.com/jaredsburrows"><code>@​jaredsburrows</code></a> for the contribution)</p>
<ul>
<li><code>POM_ISSUE_SYSTEM</code> sets <code>issueManagement.system</code></li>
<li><code>POM_ISSUE_URL</code> sets <code>issueManagement.url</code></li>
<li><code>POM_DEVELOPER_EMAIL</code> sets <code>developer.email</code></li>
</ul>
<p><strong>Fixed</strong></p>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="300595008c"><code>3005950</code></a> Prepare for release 0.20.0.</li>
<li><a href="643bea069f"><code>643bea0</code></a> update changelog for 0.20.0 (<a href="https://github-redirect.dependabot.com/vanniktech/gradle-maven-publish-plugin/issues/352">https://github.com/facebook/flipper/issues/352</a>)</li>
<li><a href="582f0d4fb9"><code>582f0d4</code></a> fix Kotlin MPP project not being configured when Android plugin is present (#...</li>
<li><a href="399b0f9b23"><code>399b0f9</code></a> fix legacy Android setup in mpp projects (<a href="https://github-redirect.dependabot.com/vanniktech/gradle-maven-publish-plugin/issues/350">https://github.com/facebook/flipper/issues/350</a>)</li>
<li><a href="c8dd40ce5a"><code>c8dd40c</code></a> deprecate old mavenPublish extension (<a href="https://github-redirect.dependabot.com/vanniktech/gradle-maven-publish-plugin/issues/340">https://github.com/facebook/flipper/issues/340</a>)</li>
<li><a href="8e1f12d659"><code>8e1f12d</code></a> fix error message when no repo is found (<a href="https://github-redirect.dependabot.com/vanniktech/gradle-maven-publish-plugin/issues/337">https://github.com/facebook/flipper/issues/337</a>)</li>
<li><a href="6134aa06ef"><code>6134aa0</code></a> Bump actions/setup-java from 2 to 3 (<a href="https://github-redirect.dependabot.com/vanniktech/gradle-maven-publish-plugin/issues/348">https://github.com/facebook/flipper/issues/348</a>)</li>
<li><a href="e6fee7ceba"><code>e6fee7c</code></a> Bump actions/checkout from 2 to 3 (<a href="https://github-redirect.dependabot.com/vanniktech/gradle-maven-publish-plugin/issues/349">https://github.com/facebook/flipper/issues/349</a>)</li>
<li><a href="951262297f"><code>9512622</code></a> Create dependabot.yml (<a href="https://github-redirect.dependabot.com/vanniktech/gradle-maven-publish-plugin/issues/347">https://github.com/facebook/flipper/issues/347</a>)</li>
<li><a href="d03e6e586b"><code>d03e6e5</code></a> Support more POM properties (<a href="https://github-redirect.dependabot.com/vanniktech/gradle-maven-publish-plugin/issues/345">https://github.com/facebook/flipper/issues/345</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/vanniktech/gradle-maven-publish-plugin/compare/0.19.0...0.20.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.vanniktech:gradle-maven-publish-plugin&package-manager=gradle&previous-version=0.19.0&new-version=0.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/3795

Reviewed By: lawrencelomax

Differential Revision: D37070881

Pulled By: passy

fbshipit-source-id: df3df877a5dd182a289608e624099e32f687e076
2022-06-13 08:21:42 -07:00
Pascal Hartig
b25a212890 Remove SupportRequestFormV2
Summary: This is now replaced by the support entry point and we need to delete the calling sites before we can clean up the everstore type.

Reviewed By: lawrencelomax

Differential Revision: D37090901

fbshipit-source-id: 597684bb149783d75e46ba61113e73878bf271a8
2022-06-13 07:16:47 -07:00
Pascal Hartig
ad7d2e0362 Upgrade ReactNativeFlipperExample deps
Summary: Like the previous diff, combining a few upgrades.

Reviewed By: antonk52

Differential Revision: D37074518

fbshipit-source-id: bdfdcdef1b0910ae886ef91b8ac9d0e3bd3b8a21
2022-06-13 05:18:42 -07:00
Pascal Hartig
a52e3e65a3 Combined dep bump
Summary: There are a bunch of open tasks. Combining them into one with `yarn upgrade-interactive`.

Reviewed By: antonk52

Differential Revision: D37070919

fbshipit-source-id: f89b63d1f3b15c5b625d7a0f1bc566d9c37e5e42
2022-06-13 05:18:42 -07:00
Pascal Hartig
ea7ff7eb8a Remove duplicate lock introduced in D36985721
Summary: Bad practice to have both.

Reviewed By: mweststrate

Differential Revision: D37080670

fbshipit-source-id: b239bb5216fd39ba5dae61f4a5e4388fa96bfdaf
2022-06-13 04:18:15 -07:00
Thiago
28bf342707 Docs: fix typo (#3803)
Summary:
Fix typo on word Recommended

Update Docs to fix a typo on Manual Android Setup

Addresses:

- https://github.com/facebook/flipper/issues/3790

## Changelog
Fix typo on Manual Android Setup  documentation.

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

Test Plan: Not needed.

Reviewed By: antonk52

Differential Revision: D37070896

Pulled By: passy

fbshipit-source-id: da55e164d23f42f9b53ce3cadcb125b01ebeed81
2022-06-13 04:05:00 -07:00
Andrey Goncharov
d987e36c62 Add a single place to initialize Flipper utilitary folders
Summary: We have several folders Flipper uses that sometimes we forget to create before Flipper starts. With this diff we have a single place to initialise the necessary folder structure.

Reviewed By: lblasa

Differential Revision: D37036601

fbshipit-source-id: f945f2bfdfc6be24ba87bd4b13c7fcef3fd74451
2022-06-10 06:38:50 -07:00
facebook-flipper-bot
60f9a5e8de Automated: Update Podfile.lock (#3804)
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/3804

Reviewed By: nikoant

Differential Revision: D37068378

Pulled By: passy

fbshipit-source-id: d7f30af8f568f6440fc3ab66d4c1c1fe9a99790e
2022-06-10 05:40:58 -07:00
Kevin Strider
490fdbd4c4 desktop-plugin-structure.mdx (Creating Plugins - Plugin Structure)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: passy

Differential Revision: D37035954

fbshipit-source-id: e6e6a0e23989b676a59390ab6f0d068b449ee21d
2022-06-10 02:17:00 -07:00
Lorenzo Blasa
4b396e1ef3 Use flipper-server if running, otherwise initiate one
Summary:
Provided that GK passes:

- If a flipper-server instance is running, use and connect.

- If not, start flipper-server and connect.

Reviewed By: passy

Differential Revision: D37034960

fbshipit-source-id: ff79e56e80e74415373f84b78305b4fc3e31f7d0
2022-06-09 14:26:17 -07:00
Flipper Bot
184372c271 Flipper Snapshot Bump: v0.149.1-SNAPSHOT
Summary: Releasing snapshot version 0.149.1-SNAPSHOT

Reviewed By: passy

Differential Revision: D36999203

fbshipit-source-id: cde3b316fae0531afb3ad501456774df614821ff
2022-06-09 10:32:12 -07:00
Flipper Bot
ad19b51069 Flipper Release: v0.149.0
Summary: Releasing version 0.149.0

Reviewed By: passy

Differential Revision: D36999205

fbshipit-source-id: 9bf6df029e3d359c166f21bd12f158a2d19b6516
2022-06-09 10:32:12 -07:00
Kevin Strider
e43ae6cd5f documentation-writing-guide.mdx (Under the Hood - Writing Guide)
Summary: A new page, whiich is part of the new Contributing to Documentation section (see diff D37004092 (b81fb44017))

Reviewed By: lblasa

Differential Revision: D37006980

fbshipit-source-id: 94d428c9c75ccd4170dc6f1be7c8d2f9d5cb5137
2022-06-09 09:40:20 -07:00
Kevin Strider
af1c0c5ee6 documentation-formatting.mdx (Under the Hood - Formatting Tips)
Summary: A new page, which is part of the new Contributing to Documentation section (see diff D37004092 (b81fb44017))

Reviewed By: lblasa

Differential Revision: D37006489

fbshipit-source-id: e9ea74aadc5d578aa7ce21a41379546251872704
2022-06-09 09:40:20 -07:00
Kevin Strider
b81fb44017 new Contributing to the Documentation section
Summary:
This is a new section under 'Contributing to the Documentation', in the 'Under the Hood' menu.

It includes two new pages:

* Documentation Formatting Tips (created here.  For content, see D37006489)
* Writing Guide (created here.  For content, see D37006980)

Setup in sidebar.js.

Reviewed By: lblasa

Differential Revision: D37004092

fbshipit-source-id: 5fa0a38632f7fa9d9178b69a89d9b21f5bda39ab
2022-06-09 06:10:06 -07:00
Kevin Strider
235ff6c926 index.mdx (Under the Hood - Introduction)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: lblasa

Differential Revision: D37003485

fbshipit-source-id: c36fde0d7962e079f369836b1b8581b82a2f5934
2022-06-09 05:45:28 -07:00
Kevin Strider
d230cbfba1 contributing.mdx (Under the Hood - Contributing Code)
Summary:
Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).
This title of the page has changed as there will be a new section called 'Contributing to the Documentation'

Reviewed By: lblasa

Differential Revision: D37003755

fbshipit-source-id: bc2412e371c941e87e25429fe801f4c3e7148f9c
2022-06-09 04:43:02 -07:00
Andrey Goncharov
fec2650afb Remove redundant GK definition from flipper-common
Summary: Developers should use `getRenderHostInstance().GK(...)` instead

Reviewed By: lblasa

Differential Revision: D37034322

fbshipit-source-id: 41017f53a5256449252917a48fcd3a49a9b984c8
2022-06-09 03:34:04 -07:00
Hannah Kim
9b0535b0ff (2/n) Created JS Flipper plugin
Summary: Added JS side of plugin to be displayed in the local Flipper Desktop app

Differential Revision: D36985721

fbshipit-source-id: f9d3cc28e418e95283c572fed4d40dbecfd2f236
2022-06-08 09:25:05 -07:00
Kevin Strider
f0c0011d69 Miscellaneous
Summary: Some minor changes to Title and Sidebar Labels

Reviewed By: nikoant

Differential Revision: D36932615

fbshipit-source-id: 09da6f331433086e7033677904884fac7400bc14
2022-06-07 09:27:52 -07:00
Luke De Feo
48bebdc665 Improve typing of getValueAtPath
Summary: Context: https://www.internalfb.com/diff/D36663929 (e07d5c5bfe)?dst_version_fbid=701770760940095&transaction_fbid=714786499947486

Reviewed By: antonk52

Differential Revision: D36782095

fbshipit-source-id: 2eb29d70aa641d386b129bf957320b718e97c298
2022-06-07 04:29:16 -07:00
Luke De Feo
3412ddfb1b Added mouse hovered state when exploring tree
Summary:
Added a mouse hover state to detail inspector. The hover state follows you into and out of the hierarchy.

changelog: Added hover state to detail inspector

Reviewed By: mweststrate

Differential Revision: D36781553

fbshipit-source-id: eafbf119a81779bf07199142d305b06ad6b98c52
2022-06-07 04:29:16 -07:00
Luke De Feo
ae0a89c580 Fix context menu for nested/overlapping elements
Summary:
Previously if you activated context menu in detail inspector it would trigger a context menu for multiple
overlapping children. This behaviour can be observed in live by right clicking a nested property an selecting 'Copy value'.
Most of the time you will copy the entire tree as you are clicking on the parents context menu. This is
the solution recommended by the antd team. https://github.com/ant-design/ant-design/issues/33865 (see the
response fiddle from the maintainer)

changelog: Fixed bug when copying value from context menu in detail sidebar

Reviewed By: mweststrate

Differential Revision: D36781555

fbshipit-source-id: 010a04648eb90eb19a47aa0f1f2b0427c9f5f7cc
2022-06-07 04:29:16 -07:00
Luke De Feo
0200afca51 Added support for plugin supplied context menu items
Reviewed By: passy

Differential Revision: D36781556

fbshipit-source-id: 42124e0324bb2c850099b60410eb20872ebefe3c
2022-06-07 04:29:16 -07:00
Pascal Hartig
bb401fa70b Change server template
Summary:
This is a completely meaningless change *but* it actually has an important
semantic meaning. I recently changed the `+x` bit to be set on the node binary
while bundling which is not always true when packing on Linux.

However, we don't consider permission bits as part of the checksums we build,
which means you will always get the previous version until we update the node version
or this very script because it's part of the same bundle.

So let's just ship this "update".

Reviewed By: mweststrate

Differential Revision: D36954703

fbshipit-source-id: 2d89cb1ee2e7bcce125c3f9efc9d8d39101ac133
2022-06-07 04:15:42 -07:00
Michel Weststrate
f2bf48d4e4 DataTable delighter: Introduce search history
Summary:
Getting the behavior exactly right was tricky, now settled on the following:

* Don't automatically show the search history (the default) but introduce an explicit button to toggle it, as opening it by default was pretty obtrusive in testing
* Items are added to the history when using return / explicitly clicking search, to only get "clean" entries into the history, and not half complete searches. Needing to press enter might be to subtle since datatable will also search without that, but not searching on keypress felt as a regression as well.
* Introduced a menu item for clearing the search history
* Search history is persisted like search filters.

Yay to Antd's AutoComplete, which is really straightforward and cleanly composes with Input.Search.

Changelog: DataTable will now keep a history of search items when hitting <return> to search. Use the history button to bring up the history.

Reviewed By: aigoncharov

Differential Revision: D36736821

fbshipit-source-id: 8d18b85308a39bd1644057371040855d199545c7
2022-06-07 04:04:01 -07:00
Michel Weststrate
36b78131b7 update control filter toggling implementation
Summary:
The `Control` button press, that hides the current search filter, had some specific logic to make sure that the current selection remained visible. Since this is now generically supported, this is no longer needed.

Also updated the `Control` button behavior to also toggle back the search filter if needed, which was never finished in the original implementation.

Changelog: DataTable: pressing the control key can be used to temporarily turn the current search filter on and off.

Reviewed By: aigoncharov

Differential Revision: D36736494

fbshipit-source-id: 2c4949efa0d6935735f61ee43f9268b7e27d1fcf
2022-06-07 04:04:01 -07:00
Michel Weststrate
2037cf0595 preserve selection during filter changes
Summary:
During filter changes, DataTable would loose any selections made, which was posted multiple times as papercut

I didn't implement preserving multi line selections. That should be straightforward, but wasn't sure that'd be desirable or not.

Changelog: DataTable: Data tables will now preserve the current selection and scroll it into view when changing the search filter.

Reviewed By: aigoncharov

Differential Revision: D36736496

fbshipit-source-id: 401ef351c847f58a5d411cf9f352390f6a110b24
2022-06-07 04:04:01 -07:00
Michel Weststrate
fd3f6a0435 Improve selection color of datatable
Summary:
DataTable selected rows are a bit hard to spot when changing search, scrolling etc, so give them a bit more prominent background

Changelog: DataTable: more pronounced background color for selections

Reviewed By: aigoncharov

Differential Revision: D36736495

fbshipit-source-id: 2cab9eb99594ffaaccdd9ebe0d922691adb27bdc
2022-06-07 04:04:01 -07:00
Andrey Goncharov
2f2a101094 Deprecate kaios-big-allocations
Reviewed By: passy

Differential Revision: D36809144

fbshipit-source-id: ea04ddb2ed9d6114baa6586577f3e7ddd8b8bbf4
2022-06-07 04:00:02 -07:00
Andrey Goncharov
2b16916a85 Deprecate kaios-portal
Reviewed By: passy

Differential Revision: D36807506

fbshipit-source-id: 660f334a46dbf7847c90ce6e67f2dc974c1daf90
2022-06-07 04:00:02 -07:00
Lorenzo Blasa
9cc8e4076f flipper-server refactor
Summary:
This changes moves most of the functionality found in flipper-server to flipper-server-core.

flipper-server will mostly be a package that wraps around flipper-server-core. Staying in flipper-server:
- Command line args
- Orchestration to start the necessary servers

Reviewed By: aigoncharov

Differential Revision: D36807087

fbshipit-source-id: f29002c7cc5d08b8c5184fdaaa02ba22562a9f45
2022-06-07 02:42:16 -07:00
Harshit Bangar
c88e769013 Prototype: Added support for multiple host in mock (#3762)
Summary:
Apps usually communicate with multiple hosts to support pops and data centres. The problem currently is that for each host we need a different config in the mock tab in flipper. If the host change due to failover then the mocking stops working. Added support to enter the URL without a host in the flipper. We then check if the Url from the actual network request contains the mock URL without a host.

We can change the hint on flipper UI to suggest either entering the complete URL or without the host to allow matching across multiple hosts.

Resolve:[3751](https://github.com/facebook/flipper/issues/3751)

Let me know if the approach looks good.

## Changelog

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

Reviewed By: lblasa

Differential Revision: D36780307

Pulled By: passy

fbshipit-source-id: 744898fa24d13343132e9a2165750241861245bd
2022-06-06 12:40:55 -07:00
Kevin Strider
b7977a954a sidebar.js
Summary: Tiny change to capitalization of a sub-menu

Reviewed By: nikoant

Differential Revision: D36931810

fbshipit-source-id: 52e6030f75e547e0936893830c702a6939ff5775
2022-06-06 09:18:24 -07:00
Flipper Bot
55d8872448 Flipper Snapshot Bump: v0.148.1-SNAPSHOT
Summary: Releasing snapshot version 0.148.1-SNAPSHOT

Reviewed By: jknoxville

Differential Revision: D36805038

fbshipit-source-id: 46318f2a39efa6132bf2228e5d2fb3b9648b228c
2022-06-06 06:25:38 -07:00
Flipper Bot
5971d603bf Flipper Release: v0.148.0
Summary: Releasing version 0.148.0

Reviewed By: jknoxville

Differential Revision: D36805039

fbshipit-source-id: 8d97ba973c57de4558fc6aaa0a546dbac1ee08cd
2022-06-06 06:25:38 -07:00
Lorenzo Blasa
054fbf1298 Aggregate existing logs from the ones generated by flipper-server
Summary:
This change aggregates/redirects flipper-server logs with logs generated by the app.

This is a great approach, why:

As we tail the file, we deserialise the logs, and re-log them using console. This means, that they will be intercepted by the logging infrastructure flipper already has in place which will make these logs go to scribe, error reporting, etc.

Reviewed By: passy

Differential Revision: D36473790

fbshipit-source-id: a3547c5c8733217c61bb2d9b94990626bbf0a492
2022-06-01 04:37:36 -07:00
Andrey Goncharov
055b14c6dd Persist device ID
Summary: Linked to https://github.com/facebook/flipper/issues/3319

Reviewed By: passy

Differential Revision: D36786952

fbshipit-source-id: f3214f35039845a8e35fa14e63f509a6fbdddb1f
2022-06-01 02:49:25 -07:00
Lorenzo Blasa
ee64216725 Extract logger and write to file
Summary:
This change extracts logging logic out from startFlipperServer.

Logs will also be written to disk.

Reviewed By: passy

Differential Revision: D36473768

fbshipit-source-id: b1df9df79b4aced0d3ba2e8c243aa8d44cf83703
2022-06-01 02:37:03 -07:00
Andrey Goncharov
92cdb81096 Upgrade electron version
Summary:
CHANGELOG: Upgrade electron to 18.2.0.

In Electron 18.2.0 we no longer have access to `remote`. Instead, we are recommended to implement IPC communications. We re-implement `remote` methods used before as IPC commands. To support type-safe execution of the commands, we create electron IPC clients on both sides: the main process and renderer process. We also move the main menu creation to the main process and track its usage via sending IPC messages to the renderer process where the logging happens.

Reviewed By: mweststrate

Differential Revision: D36593625

fbshipit-source-id: 6dcf531461ef2edceb9cac372a650f84f3370953
2022-05-31 06:52:14 -07:00