Commit Graph

2291 Commits

Author SHA1 Message Date
Hilal Alsibai
447e918607 Make copying an element list out its attributes instead of a useless id
Summary: When copying elements from the layout inspector its much more useful to copy all associated attributes rather than just the name and an implementation detail id.

Reviewed By: jknoxville

Differential Revision: D17727520

fbshipit-source-id: 8ac1828059cc10f7f9faf0bdc72eb3d57c881121
2019-10-03 03:40:51 -07:00
Pascal Hartig
9bce894b71 Add publishing/installing docs
Summary:
Adding publishing and installation procedure docs to
our tutorial to round things off.

Reviewed By: jknoxville

Differential Revision: D17711800

fbshipit-source-id: 57c848c559208eb2a0ca790a72bcd493730baf16
2019-10-02 08:56:38 -07:00
Pascal Hartig
1de1bbaf8a Prepare for TypeScript 3.7
Summary:
These are the only four errors currently happening when upgrading to the 3.7 beta.
Luckily, these are all forwards-compatible changes.

Reviewed By: jknoxville

Differential Revision: D17711797

fbshipit-source-id: 429036e90300c81848cc3252b67bb89871ff2e32
2019-10-02 08:35:39 -07:00
Kfir Schindelhaim
52976f1ee3 Introduce CKMountable protocol
Summary:
- Introduce new base protocol `CKMountable`
  - Contains Layout & Mount methods that have been extracted from `CKComponent`
  - This will allows us to introduce a new lighter version of `CKComponent`, which doesn't rely on Scope/State/Controllers/etc
- Refactor `CKComponentLayout` to work with `CKMountable` instead of `CKComponent`, which will allows us to interop between `CKComponent` and a new type of components.
- Refactor the codebase to support this change

Reviewed By: kevin0571

Differential Revision: D17668253

fbshipit-source-id: 13db5ff4acb37b338e291ca2dd7d67cd25dbc6d2
2019-10-02 08:20:00 -07:00
Pritesh Nandgaonkar
9bad9ba976 Add status messages for the Support Form
Summary: Shows status messages for the Support Form

Reviewed By: passy

Differential Revision: D17601944

fbshipit-source-id: a2a8ad392dfbaf467625eb809020d687d066da57
2019-10-02 05:48:03 -07:00
Pritesh Nandgaonkar
05328167c6 Add support for status bar
Summary:
This diff adds a status bar, which can be used to show the status messages, for example for Litho Support Form.
The logic for the status bar is as follows:

It maintains the array of the messages. At any point it shows the last pushed message. It will keep showing that message until it is being removed, once removed it will show second last message. The messages will be removed as and when its corresponding task/Promise is fulfilled.

Reviewed By: danielbuechele

Differential Revision: D17551495

fbshipit-source-id: 96b2f401599b9ee8a472607e6a2f027e63b3b807
2019-10-02 05:48:03 -07:00
Mateo Silguero
4ec8ffcf53 Update images-plugin.md (#562)
Summary:
the name of the plugin into documentation is not correct.

## Changelog

chore: plugin-name
Pull Request resolved: https://github.com/facebook/flipper/pull/562

Differential Revision: D17709629

Pulled By: passy

fbshipit-source-id: ce6233ce9cac67c42b0501bd969c46114d74365a
2019-10-02 01:51:45 -07:00
Mateo Silguero
4c3028bd91 Update databases-plugin.md (#564)
Summary:
## Changelog
Pull Request resolved: https://github.com/facebook/flipper/pull/564

Differential Revision: D17709625

Pulled By: passy

fbshipit-source-id: fe62f8958872893b04e12527ef338b6140a82a68
2019-10-02 01:46:41 -07:00
Pascal Hartig
b80e18762e Bump some dependencies manually to avoid security alerts
Reviewed By: jknoxville

Differential Revision: D17666660

fbshipit-source-id: 114379d1b8edb833417cf72253ddb18a3be593c6
2019-10-01 12:24:17 -07:00
Pascal Hartig
c6d5b8ccb5 Fix screen recording on Android
Summary:
There were two issues with the previous approach:

1) We didn't block the shell process, so we would immediately
    start pulling the video from the device as soon as we **started**
    recording it. This meant, you'd usually get the previous recording
    or just an empty file.
2) The stop side doesn't know when it's actually safe to start displaying
    the video as pulling takes time. So we need access to the process
    promise there.

Reviewed By: jknoxville

Differential Revision: D17687827

fbshipit-source-id: 6ad5da52442f1888dd491b2a4c7f7a6b5a7885dd
2019-10-01 11:23:30 -07:00
Pascal Hartig
25cdca1d6f Explicit cast instead of ts-ignore
Summary: Slightly safer.

Reviewed By: jknoxville

Differential Revision: D17686947

fbshipit-source-id: 2c478707e20a1475427be4a652283960e4515cf9
2019-10-01 08:48:11 -07:00
John Knox
be72debf99 Improve headless test running script
Summary: Now emits a warning if api version doesn't match expected one.

Reviewed By: cekkaewnumchai

Differential Revision: D17685261

fbshipit-source-id: 2a01d64e2e160d411d7a58125b5bb45437476f8f
2019-10-01 07:47:04 -07:00
Chaiwat Ekkaewnumchai
7e4696cf95 Update Snapshot for Headless Test
Summary:
D14932994 changes the layout, but we did not update the snapshot.

Another option is to disable a test for now.

Reviewed By: jknoxville

Differential Revision: D17548543

fbshipit-source-id: 455e5047eab0044cabd503cae7cbc386443f376e
2019-10-01 06:16:03 -07:00
John Knox
d6f7d75e83 Remove sheet animation delay
Summary: I noticed every time you open a sheet it feels laggy and unresponsive. This removes the wait time to make it immediate.

Reviewed By: passy

Differential Revision: D17684407

fbshipit-source-id: f918bf8ca3bb0ef68c3fe01991c67d50f3967d68
2019-10-01 03:27:40 -07:00
Andres Suarez
c4c5d453c2 Fix license headers
Reviewed By: scottrice

Differential Revision: D17673481

fbshipit-source-id: 1794e0a6e92e6894b5634b24c6e7910847616261
2019-09-30 15:10:17 -07:00
Pritesh Nandgaonkar
920d4eaa1d Migrate Mobile Config plugin to tsx
Summary: This diff migrates the Mobile config plugin to typescript. In the later diffs, I will refactor the logic of the plugin to use persisted state as it can then be used to export the data, which is required for the litho support form.

Reviewed By: jknoxville

Differential Revision: D17628276

fbshipit-source-id: b48d4fb346b582408774ef08ffbead23adc7aaac
2019-09-30 07:20:58 -07:00
John Knox
8e623d7a05 Add .ignore file to speed up ripgrep
Summary:
Some repositories disable using .gitignore files with ripgrep. This adds an explicit .ignore symlink so that it is always used.
Vastly speeds up using ripgrep in VS code.

Reviewed By: passy

Differential Revision: D17664864

fbshipit-source-id: cd798a41b813e32f64e8e75b6100445ace6b00d8
2019-09-30 06:41:57 -07:00
Pascal Hartig
e6d8844ceb Potential fix for console proxying
Summary: My hypothesis is that on hot reloads / `Ctrl+R`s calls to `this.log` from within the proxy would call the proxy itself. So the only truly relevant change here should be the `.bind(this)` removal. But I'm still not 100% sure that this was the reason for the stack overflow error. Let's keep an eye on this.

Reviewed By: jknoxville

Differential Revision: D17664509

fbshipit-source-id: c9e1c5fe32048b04ef0585f7162bd00ad5ccf18a
2019-09-30 06:32:34 -07:00
Pascal Hartig
31f9d865b2 Fix screenshot taking and video recording for Windows
Summary: Turns out Windows really doesn't like colons in filenames. Sigh.

Reviewed By: jknoxville

Differential Revision: D17664236

fbshipit-source-id: 664885308815d862007c8a9a9d1278c426b4e756
2019-09-30 05:24:19 -07:00
Pascal Hartig
0039d5be4a Use 'open' module to open stuff
Summary:
Instead of our ad-hoc mechanism. There's quite a bit
of trickery involved to make this work reliably on Windows
so I'd rather take an off-the-shelf solution than reimplement this
myself.

Reviewed By: jknoxville

Differential Revision: D17628949

fbshipit-source-id: 98806b60a107231d9ee07b721ebb70f2cbd8aec1
2019-09-30 03:49:06 -07:00
Vladyslav Stepanov
ba559ac338 Added new Flipper API
Differential Revision: D17542140

fbshipit-source-id: 2d7512b345d1d5e8add76a607e62effe4f4a5f16
2019-09-27 17:11:49 -07:00
James Donald
5bc5c34d2e Remove unused variable in catch(...) expressions
Summary:
D17629896 was intended to fix this in ovrsource, but it turns out these changes should be made on fbsource first then get synced.

The MSVC build of OculusPCSDK has numerous warnings, including these low-hanging fruit:

```
c:\open\ovrsource\xplat\omnistore\client\common\reportsubscriptionstatetiming.cpp(28): warning C4101: 'e': unreferenced local variable
c:\open\ovrsource\xplat\omnistore\client\common\databaseanalyticsmetadatatiming.cpp(23): warning C4101: 'e': unreferenced local variable
c:\open\ovrsource\xplat\omnistore\client\common\sendqueuereportbacklogtiming.cpp(32): warning C4101: 'e': unreferenced local variable
c:\open\ovrsource\xplat\omnistore\client\common\omnistore.cpp(192): warning C4101: 'e': unreferenced local variable
c:\open\ovrsource\xplat\omnistore\client\common\omnistore.cpp(907): warning C4101: 'e': unreferenced local variable
c:\open\ovrsource\xplat\omnistore\client\common\omnistore.cpp(934): warning C4101: 'e': unreferenced local variable
c:\open\ovrsource\xplat\omnistore\client\common\omnistore.cpp(946): warning C4101: 'e': unreferenced local variable
```

Clang doesn't complain, but the code is just as clear without the 'e' so best to remove.

Reviewed By: vener91

Differential Revision: D17631747

fbshipit-source-id: 0190a48e640311b40c9d1b988b0c07cfbdcfd7e5
2019-09-27 15:47:03 -07:00
Pascal Hartig
4b60433425 Add warning when config parsing fails
Summary:
This can quite easily happen if you manually edit it and
aren't careful. The least we can do is tell the user about it,
because it be a bit surprising otherwise.

Reviewed By: jknoxville

Differential Revision: D17626760

fbshipit-source-id: 8c7d64b041fa4b97ce2753116800d0e855442dd9
2019-09-27 08:14:53 -07:00
Alexander Putilin
dda800c4a3 Initial support for KaiOS device plugins
Summary: Introduces basic KaiOSDevice class. Since kaios phones support adb, it is inherited from AndroidDevice

Reviewed By: jknoxville

Differential Revision: D17608605

fbshipit-source-id: 6b2c5834a1f5862b864c8e76202d0d401e58cbcc
2019-09-27 06:11:18 -07:00
John Knox
1c9fc75457 Add some uncached icons to the preloaded set
Reviewed By: passy

Differential Revision: D17602891

fbshipit-source-id: f06b2de37eec0909dd7098dd0b2ea0f0514c5ab5
2019-09-27 03:36:27 -07:00
John Knox
2bd8548252 Warn when uncached icons are used
Reviewed By: passy

Differential Revision: D17602743

fbshipit-source-id: 8f7dc0cc8d181ad4f7784ed3aafe064d816832c9
2019-09-27 03:36:27 -07:00
John Knox
9d4cc64bc9 Fix outline icon caching
Summary:
The build-release script was using different logic to construct the local url, than the lookup file.
Changed so they both use the same function.
And unit tests added.

Reviewed By: passy

Differential Revision: D17602476

fbshipit-source-id: 6aaedd58eafb2cc59adcdc0ebb4dd329bf99c33a
2019-09-27 03:00:49 -07:00
John Knox
74b9ba5c40 Auto-format FlipperClient.cpp
Reviewed By: passy

Differential Revision: D17601356

fbshipit-source-id: 04701b409a838ad4dac54ae7c4f5f97cfa574dbe
2019-09-27 02:57:13 -07:00
John Knox
6796a87e76 Enable adbConfig test
Summary:
I noticed this didn't have the node prefix so isn't run during `yarn test`.
Now it runs and passes :)
Also checked `ls **/__tests__/*.js` for any similar files and found none.

Reviewed By: passy

Differential Revision: D17601931

fbshipit-source-id: cf45a0ba578d5d0000ba1d25ae4fb26a4f7fc7af
2019-09-27 02:45:28 -07:00
Pascal Hartig
48161cb6cf Flipper Bump: v0.25.1-SNAPSHOT
Summary: Back to snapshots.

Reviewed By: priteshrnandgaonkar

Differential Revision: D17601073

fbshipit-source-id: 4987f717d34ecd13577f06e39fff86419346bad6
2019-09-26 11:05:37 -07:00
Pascal Hartig
2e3499cd4a Flipper Release: v0.25.0
Summary:
**Highlights**

- Android: Leakcanary is no longer part of the core distribution but a separate artifact: `com.facebook.flipper:flipper-leakcanary-plugin`.

Reviewed By: priteshrnandgaonkar

Differential Revision: D17601074

fbshipit-source-id: 862fc44d45b4ddc95059deb3959476af162b1cb0
2019-09-26 11:05:37 -07:00
Pascal Hartig
8a8316097a Update bump binaries
Summary: Compiled versions of scripts/bump/.

Reviewed By: priteshrnandgaonkar

Differential Revision: D17572052

fbshipit-source-id: 91f273b43daf4f59cdb0e7d2cd4ee97648ca53b9
2019-09-26 11:05:36 -07:00
Pascal Hartig
c401f2c27d Add new bump paths
Summary: Make sure our docs get updated on release.

Reviewed By: danielbuechele

Differential Revision: D17571990

fbshipit-source-id: 36d19601cb5fb5d215e0894ef4a362e364d32880
2019-09-26 11:05:36 -07:00
Daniel Büchele
2c66e3d4d0 install dependencies
Summary:
In the previous implementation plugins were downloaded from npm, but dependencies weren't. This diff uses the `live-plugin-manager` which does mostly what we want. It install a package from NPM with all its dependencies.
live-plugin-manager puts the plugin and its dependencies in the same folder. We expect the plugins to be in `node_modules`. For this reason, we are installing the plugin into `$pluginName/node_modules` and move the plugin after the installation out of the `node_modules` folder.

* Fixed plugin loading path for thirdparty plugins.
* Disabled hot reloading for plugins in the flipper folder to prevent reloads when moving around files and installing dependencies here.
* an empty `.watchmanconfig` is created, because metro requires it
* tsx files are added to the list of supported extensions for metro

Reviewed By: passy

Differential Revision: D17570413

fbshipit-source-id: ecbedc60841b36188fec9c83da41ef1f27e5e155
2019-09-26 07:57:54 -07:00
John Knox
f72e6e0f5e Isolate background plugin initialization
Summary:
Background plugins are initialised when flipper connects.
But there's no isolation, so if any fail to initialize, then we don't carry on initializing the rest.
This fixes that by skipping failed ones only.

Reviewed By: passy

Differential Revision: D17600854

fbshipit-source-id: 2ef04cbcecda78ca448c2f4d56639ba63792e2f7
2019-09-26 07:01:40 -07:00
Pascal Hartig
c907e53189 Update bump dependencies
Summary: Update to latest LTS, remove some unnecessary options.

Reviewed By: danielbuechele

Differential Revision: D17571303

fbshipit-source-id: e7eeaec7eb011d814f78126f2cd7862361faa285
2019-09-26 06:44:18 -07:00
Pascal Hartig
12f766a080 Mention leakcanary plugin artifact in docs
Summary: Per title.

Reviewed By: danielbuechele

Differential Revision: D17571218

fbshipit-source-id: 35f0f2d90cd8582200d6a50127c43a38f823aba2
2019-09-26 06:44:18 -07:00
Pascal Hartig
38cb7f7031 Upload leakcanary-plugin on release
Summary: Just as the others.

Reviewed By: danielbuechele

Differential Revision: D17571208

fbshipit-source-id: 196da6ac149134cdf93174cbd263245b04961c79
2019-09-26 06:44:18 -07:00
Pritesh Nandgaonkar
8d4d642330 Attach Flipper Trace in the support form
Summary: This diff sets up Flipper to attach flipper trace to the support form. This diff adds a property named `exportResult` in the redux store. This will hold the export url or the path of the export, depending on the type of the flipper export. Once the exportResult is populated, we listen for this change and update the button style and fill the comment box.

Reviewed By: passy

Differential Revision: D17478491

fbshipit-source-id: 10dd5e130a9e3df5f41afde42b92b08959d9ed9e
2019-09-25 06:09:13 -07:00
Chaiwat Ekkaewnumchai
053cfc09f3 Make LeakCanary a Separate Plugin
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/559

Reviewed By: passy

Differential Revision: D17546936

fbshipit-source-id: dce128a771b73e8b18dfc2b78ee99502c3f1ce86
2019-09-25 03:05:56 -07:00
Pascal Hartig
a5f17494d5 Flipper Bump: v0.24.3-SNAPSHOT
Summary: grumpycatsmile

Reviewed By: jknoxville

Differential Revision: D17558478

fbshipit-source-id: 550f84e9ce4e3baeeaa077f09d3867b1736fe685
2019-09-25 02:01:18 -07:00
Pascal Hartig
9ffca9d049 Flipper Release: v0.24.2
Summary:
Another quick fix for https://github.com/facebook/flipper/issues/546#issuecomment-534697210

Includes the new SoLoader bump.

Reviewed By: jknoxville

Differential Revision: D17558480

fbshipit-source-id: 02eab2bea20d31e082423f32201c6b110e9fabe2
2019-09-25 02:01:18 -07:00
Assaf Gelber
34d96fa262 Fix documentation on options property in Select
Summary: Just updating the apparently copy-pasted comment about the `options` prop.

Reviewed By: passy

Differential Revision: D17567256

fbshipit-source-id: ed4ff93ad42ef8bdcadb5371fe11ae90dba47ca3
2019-09-25 01:41:15 -07:00
Pascal Hartig
9af2030b43 Bump SoLoader dependency
Summary: 0.8.0 is required for compatibility of our sample app with new fbjni.

Reviewed By: jknoxville

Differential Revision: D17547812

fbshipit-source-id: 5ad98fe5629cd63be8a253c881e20e8df4d0df74
2019-09-24 15:21:02 -07:00
Bhaskar gyan vardhan
36689add82 Update leak-canary-plugin.md (#519)
Summary:
Unexpected semicolon in refWatcher sample code

copy pasting the sample code for refWatcher giving below error due to a semicolon in refWatcher code
![image](https://user-images.githubusercontent.com/10504808/63110022-25236b80-bfa8-11e9-8756-c95afc7d68a9.png)

## Changelog

remove the semicolon from refWatcher sample code
Pull Request resolved: https://github.com/facebook/flipper/pull/519

Reviewed By: danielbuechele

Differential Revision: D17527312

Pulled By: passy

fbshipit-source-id: c573736dec63de2e93113b56c24a7bab72bb0067
2019-09-24 09:53:08 -07:00
Chaiwat Ekkaewnumchai
a4a3739d98 Skip Snapshop Test for Headless
Summary:
The test is failing right now because D14932994 changed the layout manipulation.

Disable the snapshot test for now and will be re-enabled in D17548543

Reviewed By: jknoxville

Differential Revision: D17549122

fbshipit-source-id: 8bf7a89594206e32cece150c8057ee03d190d2e5
2019-09-24 08:26:24 -07:00
Pascal Hartig
1114c47d1c Flipper Bump: v0.24.2-SNAPSHOT
Summary: Back to snapshots.

Reviewed By: danielbuechele

Differential Revision: D17528599

fbshipit-source-id: 2a0fa6d6cd99f6def644c23ad38c9711d300d8b0
2019-09-23 10:38:51 -07:00
Pascal Hartig
1a71d1e5d1 Flipper Release: v0.24.1
Summary: Fix for p-map error at startup and `fbjni` dependency on Android.

Reviewed By: danielbuechele

Differential Revision: D17528600

fbshipit-source-id: db0fd2e99bd35645ceef63500312b3ad16c04d57
2019-09-23 10:38:51 -07:00
Pascal Hartig
2cb89bd8d9 Add p-map to static package.json
Summary: Hotfix.

Reviewed By: danielbuechele

Differential Revision: D17528168

fbshipit-source-id: 4743510196c308f28819719098fd92012fe742df
2019-09-23 09:00:02 -07:00
Pascal Hartig
8c519abc7e Upgrade to fbjni 0.2.0 (#557)
Summary:
This is now published to Maven Central and doesn't require a
separate repository.
Pull Request resolved: https://github.com/facebook/flipper/pull/557

Test Plan: CI

Reviewed By: danielbuechele

Differential Revision: D17526448

Pulled By: passy

fbshipit-source-id: 169b5bc5f6568d40697e5e48a9873f8a64bd5e00
2019-09-23 08:14:08 -07:00