Commit Graph

2907 Commits

Author SHA1 Message Date
Pascal Hartig
474ff78bd8 Enable greenkeeper (#814)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/814

Per title.

Reviewed By: nikoant

Differential Revision: D19969813

fbshipit-source-id: f439c4d6496d4a88d70ef192bb544e5dfa6f9e2b
2020-02-20 04:30:50 -08:00
Hilal Alsibai
6f4de969fb Add theme information for Application, Activity and View descriptors
Summary: This will query for and display all of the associated theme information for each of the descriptors.

Reviewed By: passy

Differential Revision: D19987003

fbshipit-source-id: c9b51311d28712a1af76c45a434bfb25d28d5c54
2020-02-20 04:08:58 -08:00
Michel Weststrate
97f9b2494d Fix tooltips causing entire app to rerender
Summary:
Hovering a tooltip container would cause the full application to re-render. (Even if there isn't an actual tooltip!).

Fixed it by killing legacy context code, and using proper fragments rather than returning arrays.

Reviewed By: priteshrnandgaonkar

Differential Revision: D19969775

fbshipit-source-id: 59f6470d03b6c476305681fde7bbe3f0dca063aa
2020-02-19 22:17:24 -08:00
Michel Weststrate
07e5d7faf7 Don't subscribe to entire store. Don't cause rerender on every store change
Reviewed By: passy

Differential Revision: D19968715

fbshipit-source-id: 74e5ca9d2f68c6fa4e04771e7ad7ba1fecb207f3
2020-02-19 22:17:24 -08:00
greenkeeper[bot]
27c0a03ac2 Update @types/rsocket-core to the latest version � (#811)
Summary:
## The devDependency [types/rsocket-core](https://github.com/DefinitelyTyped/DefinitelyTyped) was updated from `0.0.4` to `0.0.5`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [types](https://www.npmjs.com/~types)
**License:** MIT

[Find out more about this release](https://github.com/DefinitelyTyped/DefinitelyTyped).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/811

Reviewed By: mweststrate

Differential Revision: D19969478

Pulled By: passy

fbshipit-source-id: b813bafdb5b0e9f72db16c11c822748383098a5a
2020-02-19 08:26:11 -08:00
Pascal Hartig
47471d2def Upgrade folly to v2020.02.17.00 (#809)
Summary:
# Summary

Folly became once again incompatible with the Android NDK, which caused our CI to fail to produce sample APK builds on release. I managed to repro this on my machine and it's working again now.

Sadly, I had to patch another file manually because something about the template parameter inference wasn't working ...

# Notes

This was done by first bumping the version, then going through the compiler errors and simply removing the lines that the C++ compiler in the NDK had trouble inferring the types for. We were lucky in that the exported symbols this affected weren't actually used, so I copied over the file to `overrides/Folly/` and set up another copy rule in Gradle.

# Meta

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

Test Plan:
```
./gradlew :sample:assembleDebug
```

Internal, external CI.

Reviewed By: mweststrate

Differential Revision: D19948797

Pulled By: passy

fbshipit-source-id: b2e98d3a5c89b0fc77c157683cde90997232fee0
2020-02-19 05:04:41 -08:00
Pascal Hartig
a0cd6e3adb Build Android sample app with GitHub Actions (#810)
Summary:
Getting really pissed off with Travis and this has significantly shorter queue times.

Mind that this probably won't work until the Folly PR is merged.
Pull Request resolved: https://github.com/facebook/flipper/pull/810

Test Plan: CI

Reviewed By: mweststrate

Differential Revision: D19951126

Pulled By: passy

fbshipit-source-id: ed51ad5ec6d4df3a59784dbd31e7c1667593d04f
2020-02-19 04:36:21 -08:00
Pritesh Nandgaonkar
972277b031 Fix warnings of FlipperKit in iOS
Summary:
This diff fixes the warnings raised from FlipperKit. Also this diff updates the deployement target of FlipperKit  to iOS 10. Even wilde assumes the min deployment OS version to be iOS 10. In layout plugin we use [UIAccessibiltyTraiTabBar](https://developer.apple.com/documentation/uikit/uiaccessibility/uiaccessibilitytraits/1648592-tabbar), which assumes iOS 10 and above.

Partially fixes https://github.com/facebook/flipper/issues/803

Still there are some warnings which are coming from the dependencies outside of Flipper.

Reviewed By: passy

Differential Revision: D19941558

fbshipit-source-id: 31809fedb9aa297bc318b5af72e29e8444f0142f
2020-02-18 12:47:21 -08:00
Pritesh Nandgaonkar
bd388f73e4 CLANGFORMAT the remaining files of xplat/sonar
Summary:
As per title.
Ran `arc lint -a --take CLANGFORMAT --paths-cmd 'hg files ./'` from xplat/sonar

Reviewed By: zertosh

Differential Revision: D19943131

fbshipit-source-id: c1dc10b27389fd6f54f055803519dac6bf0e7997
2020-02-18 05:27:56 -08:00
Pritesh Nandgaonkar
7db8d300a8 Run CLANGFORMAT on SonarKitTests
Summary: This diff runs CLANGFORMAT lint on SonarKitTests. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.

Reviewed By: cekkaewnumchai

Differential Revision: D19942169

fbshipit-source-id: d4a51dd4ffba3acb30177345c51eb469124f9f5f
2020-02-17 10:49:19 -08:00
Pritesh Nandgaonkar
0e4250b4af Run CLANGFORMAT on sample
Summary: This diff runs CLANGFORMAT lint on sample. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.

Reviewed By: passy

Differential Revision: D19942174

fbshipit-source-id: bef3e67bf31f13bb52417c81c4c330d6c258872d
2020-02-17 10:49:19 -08:00
Pritesh Nandgaonkar
e8b20d5b15 Run CLANGFORMAT on plugins
Summary:
This diff runs CLANGFORMAT lint on plugins. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.

Ran `arc lint -a --paths-cmd "find ./iOS/Plugins -type f" --verbose`

Reviewed By: passy

Differential Revision: D19942173

fbshipit-source-id: 8b975b0a344df073b02d69cd1f9ee5629af2799d
2020-02-17 10:49:18 -08:00
Pritesh Nandgaonkar
a19a430eee Run CLANGFORMAT for FlipperKitTestUtils
Summary:
This diff runs CLANGFORMAT lint on FlipperKitTestUtils. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.
Ran `arc lint -a --paths-cmd "find ./iOS/FlipperKitTestUtils -type f" --verbose`

Reviewed By: passy

Differential Revision: D19942175

fbshipit-source-id: a5067100e604aad438fef1842157217a8cd1734c
2020-02-17 10:49:18 -08:00
Pritesh Nandgaonkar
38478842df Run CLANGFORMAT for FlipperKitTests
Summary:
This diff runs CLANGFORMAT lint on FlipperKitTestUtils. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.
Ran `arc lint -a --paths-cmd "find ./iOS/FlipperKitTests -type f" --verbose`

Reviewed By: passy

Differential Revision: D19942172

fbshipit-source-id: 58322ef6a3a93f9666b3114e872a3a81a3c1cb35
2020-02-17 10:49:18 -08:00
Pritesh Nandgaonkar
36deab1d52 Run CLANGFORMAT on FBDefines
Summary:
This diff runs CLANGFORMAT lint on FlipperKitTestUtils. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.
Ran `arc lint -a --paths-cmd "find ./iOS/FBDefines -type f" --verbose`

Reviewed By: passy

Differential Revision: D19942171

fbshipit-source-id: a5e33c7dce2bee8ed29a58f72f5cf5935391f499
2020-02-17 10:49:17 -08:00
Pritesh Nandgaonkar
ca513cf370 Run CLANGFORMAT on FlipperKit folder
Summary:
This diff runs CLANGFORMAT lint on FlipperKit. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT.
Ran `arc lint -a --paths-cmd "find ./iOS/FlipperKit -type f" --verbose`

Reviewed By: passy

Differential Revision: D19942170

fbshipit-source-id: af677323af4edb761f61f8f7e289cab743aa31f2
2020-02-17 10:49:17 -08:00
greenkeeper[bot]
127eec5fa1 Update fix-path in group website to the latest version � (#804)
Summary:
## The dependency [fix-path](https://github.com/sindresorhus/fix-path) was updated from `2.1.0` to `3.0.0`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [sindresorhus](https://www.npmjs.com/~sindresorhus)
**License:** MIT

<details>
<summary>Release Notes for v3.0.0</summary>

<h3>Breaking</h3>
<ul>
<li>Require Node.js 10  <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="41133a9fa6/hovercard" href="41133a9fa6"><tt>41133a9</tt></a></li>
</ul>
<h3>Enhancements</h3>
<ul>
<li>Add TypeScript definition (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="522596993" data-permission-text="Issue title is private" data-url="https://github.com/sindresorhus/fix-path/issues/12" data-hovercard-type="pull_request" data-hovercard-url="/sindresorhus/fix-path/pull/12/hovercard" href="https://urls.greenkeeper.io/sindresorhus/fix-path/pull/12">https://github.com/facebook/flipper/issues/12</a>)  <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="096036c297/hovercard" href="096036c297"><tt>096036c</tt></a></li>
</ul>
<p><a class="commit-link" href="https://urls.greenkeeper.io/sindresorhus/fix-path/compare/v2.1.0...v3.0.0"><tt>v2.1.0...v3.0.0</tt></a></p>
</details>

<details>
<summary>Commits</summary>
<p>The new version differs by 5 commits.</p>
<ul>
<li><a href="8f12bec72e"><code>8f12bec</code></a> <code>3.0.0</code></li>
<li><a href="41133a9fa6"><code>41133a9</code></a> <code>Require Node.js 10</code></li>
<li><a href="096036c297"><code>096036c</code></a> <code>Add TypeScript definition (https://github.com/facebook/flipper/issues/12)</code></li>
<li><a href="df806209a2"><code>df80620</code></a> <code>Require Node.js 8</code></li>
<li><a href="e208dd064d"><code>e208dd0</code></a> <code>Create funding.yml</code></li>
</ul>
<p>See the <a href="b9fa7c4ce9...8f12bec72e">full diff</a></p>
</details>

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/804

Reviewed By: mweststrate

Differential Revision: D19938234

Pulled By: passy

fbshipit-source-id: b012360396d476d610e79136904052ec7395076d
2020-02-17 08:26:17 -08:00
Michel Weststrate
6b3a09e28e Flipper Bump: v0.31.3-SNAPSHOT
Summary: Releasing Flipper 0.31.2 as preview for the improved React Native support (blog post will follow)

Reviewed By: cekkaewnumchai

Differential Revision: D19939346

fbshipit-source-id: 20f352e5f2d700a6e02b7562d228732525b192a4
2020-02-17 06:21:46 -08:00
Michel Weststrate
7d92e3ee58 Flipper Release: v0.31.2
Summary: Releasing Flipper 0.31.2 as preview for the improved React Native support (blog post will follow)

Reviewed By: cekkaewnumchai

Differential Revision: D19939347

fbshipit-source-id: 4bff1aabdd4e63003de9c9c0af2002ed67504da1
2020-02-17 06:21:46 -08:00
Lucas Bento
9c873bd034 Add troubleshooting content about swift errors in React Native build (#794)
Summary:
Going through the `Getting Started` tutorial with `"react-native": "0.61.5"` makes the app crash when you build it, in order to get it working you must add a `.swift` file to the project.

## Changelog

Add troubleshooting content about swift errors in React Native build
Pull Request resolved: https://github.com/facebook/flipper/pull/794

Reviewed By: passy

Differential Revision: D19852986

Pulled By: mweststrate

fbshipit-source-id: 16bc44ad573dc20b90f57777ea1c9cfca7c7c4c9
2020-02-17 06:21:46 -08:00
Michel Weststrate
15cde55981 Convert Hermesdebugger to device plugin
Summary:
This diff exposes the Hermes debugger as a device plugin, for similar reasons as we did with React Devtools.

Also replaced an ugly hack with another just as ugly hack (rendering outside the React tree to preserve the state of the chrome devtools when switching to another plugin and coming back), that behaves at least correctly when resizing etc instead of doing absolute styling

Reviewed By: passy

Differential Revision: D19905082

fbshipit-source-id: 1e80c55fc9c5b1f8a9292f0ba1ef66b0b007b7fc
2020-02-17 03:41:14 -08:00
Michel Weststrate
1383260a7c Expose React Devtools as a Metro plugin
Summary:
This diff turns the DevTools plugin from a normal plugin in a device plugin. The reason for that can be seen at the end of the test plan in the first stack of this diff: Regardless on which client you open the devtools, you are always looking at the react tree of the app that happens to listen at the appropriate port, unrelated to the actively selected app. This diff moves the plugin from being a client plugin to a device plugin, a Metro device plugin to be precisely, as of the latter there is only one and they should typically correspond (which is why we can trigger reload as done in the previous diff)

Currently we have a Flipper plugin inside the iOS / Android apps with one purpose: to select different ports to listen to on different devices. But this functionality was never implemented, nor seems there to be much demand for. So these plugin don't offer any actual value. The widely used standalone version of the react devtools (https://www.npmjs.com/package/react-devtools) doesn't offer port customization either, so this limitation seems to be acceptable.

To make sure that this change is backward compatible, we make sure to show the metro device if we find metro, regardless whether it is new enough to support log forwarding and reload commands (previously we only showed the device if it has the /events endpoint).

The only case I can think of we are killing with this approach is where people are debugging a RN app, but with having metro running. I doubt that is an actual case, but probably rickhanlonii knows more about that.

Furthermore this diff makes sure that the devTools can connect to physical android devices. Also, making it to the end of this explanation means that you have done most of the reviewing for this diff. The actual code diff is shorter.

Reviewed By: passy

Differential Revision: D19878605

fbshipit-source-id: 3f33e59d4f6e4cce39102420f38afee10018999f
2020-02-17 03:41:13 -08:00
Michel Weststrate
56297d0cfc Automatically cause reload to trigger devTools
Summary:
To connect to the React Devtools, the app has to be reload (or the dev menu opened).
This diff does force a reload if the React Devtools don't connect timely

Reviewed By: passy

Differential Revision: D19878172

fbshipit-source-id: 0b3e22f70c9d24dae1fdbf0cc351d23367654ae1
2020-02-17 03:41:13 -08:00
Michel Weststrate
3849807d6b Show status of connection, so that user knows what is happening
Summary: In many cases the React DevTools fail to show up for RN. usually that is because the app didn't enter devMode yet. This diff adds the necessary logic to query the state of the DevTools and communicate back the current connection status

Reviewed By: passy

Differential Revision: D19878127

fbshipit-source-id: f5c3f5a92b23c87c87d778a468122210325eed17
2020-02-17 03:41:13 -08:00
Pritesh Nandgaonkar
14ebfb8439 Make network plugin a required plugin
Summary: Makes network plugin a required plugin for Graphql grps

Reviewed By: jonathoma

Differential Revision: D19905736

fbshipit-source-id: f72fddd5e04ce9b1670715d731dc86a8d4a19cc5
2020-02-15 08:13:48 -08:00
Pritesh Nandgaonkar
467b54a6fb Select both required and default plugins
Summary: This diff selects both required and default plugins in the plugin selection menu

Reviewed By: mweststrate

Differential Revision: D19905737

fbshipit-source-id: 86fb308f8f189350cc035d14174b34fac14a2cd1
2020-02-15 08:13:48 -08:00
Pritesh Nandgaonkar
35ed3ce1a4 Setup lint for iOS
Summary: uncrustify was not recommended to add in xplat thus I have added clangformat for xplat/sonar/iOS

Reviewed By: zertosh

Differential Revision: D19879977

fbshipit-source-id: 76f6dadf5d55a61a5342802cfde2821cbff38525
2020-02-14 21:17:11 -08:00
Janic Duplessis
44f5e35675 Implement react-native-flipper on iOS (#795)
Summary:
Implement the react-native-flipper native module on iOS. Uses very similar abstractions as on Android.

## Changelog

[react-native-flipper] Support iOS
Pull Request resolved: https://github.com/facebook/flipper/pull/795

Test Plan:
Tested using the RN TicTacToe example app

{F228406333}

Reviewed By: mweststrate

Differential Revision: D19853017

Pulled By: priteshrnandgaonkar

fbshipit-source-id: d93d35ff984b9ba75f812c4c8e3c82e4d550f0c0
2020-02-14 21:17:11 -08:00
greenkeeper[bot]
72c1c1fa4d Greenkeeper/react player 1.15.2 (#800)
Summary:
Fix https://github.com/facebook/flipper/issues/771
Pull Request resolved: https://github.com/facebook/flipper/pull/800

Reviewed By: mweststrate

Differential Revision: D19902547

Pulled By: passy

fbshipit-source-id: d6b0a1ae8355f8a87df87a45cdd9616963bf3597
2020-02-14 13:25:04 -08:00
greenkeeper[bot]
912cd1f2c3 Greenkeeper/website/react docgen 5.2.1 (#799)
Summary:
Fix https://github.com/facebook/flipper/issues/782
Pull Request resolved: https://github.com/facebook/flipper/pull/799

Reviewed By: mweststrate

Differential Revision: D19902542

Pulled By: passy

fbshipit-source-id: 01d71b27492a7eb0a17b4c4ac370abcdd95cab3e
2020-02-14 13:07:14 -08:00
Pascal Hartig
d8be529307 Add docs for verifying changes (#802)
Summary:
Per title.
Pull Request resolved: https://github.com/facebook/flipper/pull/802

Test Plan: corgi_eyes

Reviewed By: mweststrate

Differential Revision: D19903845

Pulled By: passy

fbshipit-source-id: 8bd1c05d6b73f4d270bc5944983c24276dc5bfdd
2020-02-14 12:58:59 -08:00
Pascal Hartig
b4fa7be97c Upload Flipper artifacts from GH Actions (#801)
Summary:
This makes testing and verifying of PRs much easier as you can directly download the resulting artifact from GitHub.

Close https://github.com/facebook/flipper/issues/796.
Pull Request resolved: https://github.com/facebook/flipper/pull/801

Test Plan: https://github.com/facebook/flipper/runs/446036416

Reviewed By: mweststrate

Differential Revision: D19903724

Pulled By: passy

fbshipit-source-id: 9efe37e93b2373d1ec98640496322ad85ea9a21b
2020-02-14 12:55:48 -08:00
Pascal Hartig
96c4d24cb9 Add boilerplate test
Summary: To verify that the infra is working.

Reviewed By: mweststrate

Differential Revision: D19881083

fbshipit-source-id: 92d5f55ecbef84003b6000b4c95df1fe0518719c
2020-02-14 12:52:49 -08:00
Michael Lefkowitz
cadf0fc6d7 Update network-plugin.md (#797)
Summary:
fixes typo

## Changelog

- fixes typo on network page
Pull Request resolved: https://github.com/facebook/flipper/pull/797

Test Plan: n/a

Reviewed By: priteshrnandgaonkar

Differential Revision: D19902534

Pulled By: passy

fbshipit-source-id: fc25d8a1fc0889a1b4e5003c724781f54d01f65d
2020-02-14 10:11:46 -08:00
John Knox
a24b043df0 Allow websocket connections from browser
Summary: Gets flipper to open up a websocket server for web browser connections.

Reviewed By: passy, priteshrnandgaonkar

Differential Revision: D19501123

fbshipit-source-id: e506f35d7ddce622128932494e8bb10802d3747b
2020-02-13 13:56:37 -08:00
Pascal Hartig
9f899c7026 Upgrade to SoLoader 0.8.2
Summary: No changes that should impact us in any way.

Reviewed By: priteshrnandgaonkar

Differential Revision: D19856578

fbshipit-source-id: 35113b4b9e56b6c0b09681ac5649705cf840f60c
2020-02-13 12:06:53 -08:00
Pascal Hartig
6f15e29b99 Set up project skeleton for flipper-pkg
Summary: TypeScript cli tool basics.

Reviewed By: jknoxville, nikoant

Differential Revision: D19856513

fbshipit-source-id: da148d1435c09221f74dc94285b655bed53d0494
2020-02-13 09:08:41 -08:00
Sarah Dong
00bfa39992 Integrate bloks into flipper and monitor state updates
Summary: Client implementation for the flipper send data lispy api

Reviewed By: adamjernst

Differential Revision: D19862378

fbshipit-source-id: 7a5cc8b47772bdbc0e89d723d0099ff824a81ed5
2020-02-13 08:58:06 -08:00
Pritesh Nandgaonkar
d99635c85e Update getting started docs
Summary: This diff updates the getting started docs for the pure Objective-C project

Reviewed By: passy

Differential Revision: D19878236

fbshipit-source-id: 3898f28214072e89c46f1bcd9443b61b8a639cab
2020-02-13 08:51:58 -08:00
Pritesh Nandgaonkar
db6edb9eee Remove dummy swift file
Summary: Removed the swift files in Sample app and instead added swift library paths in search paths

Reviewed By: passy

Differential Revision: D19877848

fbshipit-source-id: fdaeba8ba4ed58216e413125b29fe20bad9d03f5
2020-02-13 08:51:58 -08:00
Andres Suarez
58caa91fa4 Daily arc lint --take GOOGLEJAVAFORMAT
Summary:
Changelog:
[Internal]

Differential Revision: D19875191

fbshipit-source-id: 3a1e22a4342d523f556c847a9fa780a898a96771
2020-02-13 05:50:13 -08:00
greenkeeper[bot]
eeabb5dd13 Update react-debounce-render to the latest version � (#778)
Summary:
## The dependency [react-debounce-render](https://github.com/podefr/react-debounce-render) was updated from `5.0.0` to `6.0.0`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [podefr](https://www.npmjs.com/~podefr)
**License:** MIT

[Find out more about this release](https://github.com/podefr/react-debounce-render).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/778

Reviewed By: jknoxville

Differential Revision: D19854350

Pulled By: passy

fbshipit-source-id: f874123004e8551cd041eb4a1b3fe77ce187921c
2020-02-13 04:12:28 -08:00
Anton Nikolaev
707759f096 Install pre-bundled packages 2/N
Summary: A first simple version of pre-bundled plugin installation. Currently both pre-bundled and source-only plugins are supported. Pre-bundled plugins should have folder "dist" inside and package.json's "main" field should point to the entry point script there.

Reviewed By: passy

Differential Revision: D19834020

fbshipit-source-id: 7e0b495fb9666acbb22fc32ca2382339cd9dc72f
2020-02-12 04:57:31 -08:00
Andres Suarez
c315691b2d Apply clang-format
Differential Revision: D19843069

fbshipit-source-id: af3f3998e2259ca5070b43ffb19933cf9304319d
2020-02-11 19:29:23 -08:00
Anton Nikolaev
71928fdf08 Install pre-bundled packages 1/N
Summary: No functional changes in this diff. This is just plugin manager refactoring before implementing  new functionality for installing pre-bundled packages.

Reviewed By: passy

Differential Revision: D19832078

fbshipit-source-id: 56b7ff1c68b6beb4abb2941da607651268e5f71a
2020-02-11 12:54:06 -08:00
Michel Weststrate
463e8a7984 Show progress bar during metro rebuilds
Summary: Tiny detail, but this shows a progress bar in the reload button, just like the console.logs of metro do normally

Reviewed By: jknoxville

Differential Revision: D19813243

fbshipit-source-id: 70b360d55776fab08c81664c6cabf998402bbba6
2020-02-11 07:29:40 -08:00
Michel Weststrate
6fe69f6fc0 Make sure Metro's own messages are logged as well
Summary: This diff logs the Metro messages as well so that the logs also show it Metro dies or something

Reviewed By: jknoxville

Differential Revision: D19791112

fbshipit-source-id: 477ccdd291df90e49b016d4aeae121d4d81a3835
2020-02-11 07:29:39 -08:00
Michel Weststrate
535ed88bc3 Unwrap device plugins in sidebar in certain scenarios
Summary:
This diff removes the 'device plugins' section, and shows plugin at top level in certain scenarios:

- there are no other clients
- there is only one device plugin
- the device has been imported

This removes visual clutter

Reviewed By: nikoant

Differential Revision: D19789511

fbshipit-source-id: 6a5fce120ac811428662828ee43f7ab7f3331362
2020-02-11 07:29:39 -08:00
Michel Weststrate
3dcfe9f3ae Move Metro control buttons to titlebar
Summary:
The Metro control buttons are now in the titlebar. This has a few benefits:
- the buttons are accessible if you are inspecting other metro plugins
- the buttons are even usuable if you selected an app on the actual device. This should help with reducing the cognitive dissonance of having apps both as 'android' app and metro device
- killed the Metro plugin again :)

Reviewed By: nikoant

Differential Revision: D19789455

fbshipit-source-id: 476fd0af1d3fc7b51a33f1af6d3fc3578aeeefae
2020-02-11 07:29:39 -08:00
Michel Weststrate
182b2a629d Fixed bug where location bar remained active but empty on apps / devices that don't have nav
Summary: Fixed bug where location bar remained active but empty on apps / devices that don't have nav

Reviewed By: nikoant

Differential Revision: D19788337

fbshipit-source-id: c5f7299945783672164ed03d487a023ddaadc082
2020-02-11 07:29:38 -08:00