Commit Graph

2214 Commits

Author SHA1 Message Date
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
Pascal Hartig
bd0435f856 Update android versions
Summary:
Putting this diff up now so we don't forget to land this once
the artifacts are released.

Reviewed By: danielbuechele

Differential Revision: D17480535

fbshipit-source-id: fcf1d2cf34581849bf50e606afcfcebc01cf45a2
2019-09-23 07:22:57 -07:00
Pascal Hartig
79117e37dd Flipper Bump: v0.24.1-SNAPSHOT
Summary: Back to snapshots.

Reviewed By: danielbuechele

Differential Revision: D17480405

fbshipit-source-id: 458eba3fb49f020568e3421163084912e97c7399
2019-09-23 07:22:56 -07:00
Pascal Hartig
1b21657507 Flipper Release: v0.24.0
Summary:
# Highlights

- Android: Separate artifacts for the Litho, Fresco and Network plugins.

This does not yet include updates to the docs as the publishing process requires manual approval by Bintray first.

Reviewed By: danielbuechele

Differential Revision: D17480406

fbshipit-source-id: 92cd54e708bc1718e40e9ea95ca62f8c73b11fdc
2019-09-23 07:22:56 -07:00
John Knox
e871822a05 Use API for eligibility check
Summary: Change flipper from using the dodgy webview check that requires auth, to using the interngraph api for eligibility checking.

Reviewed By: passy

Differential Revision: D17498724

fbshipit-source-id: b81fd8b7b0bd36a7fcf73ba05d9885b61e420c61
2019-09-23 06:44:38 -07:00
Daniel Büchele
4e5ede6d37 Allow navigation to URI in Wilde via Flipper
Summary:
Here I add functionality to Wilde that allows navigation to internal deeplinks via Flipper. I beleive this was once a feature by allowing access to non whitelisted URL's but this has since been removed.

The Flipper plugin can now receive a navigate_to command which then emits a url over the navigateTo socket. This is picked up by the FBNavigationFlipperLogger plugin where it gets an instance of the NavigationCoordinator and opens the url.

Reviewed By: kolinkrewinkel

Differential Revision: D17282530

fbshipit-source-id: 0ba29aeac2a32d5464e8fa1dfa4e53af7cf94159
2019-09-23 06:41:32 -07:00
John Knox
976101449d Fix infinite spinner after cert exchange
Summary:
After the '(Outdated SDK)' addition to apps when they need to be updated, the uninitilaized clients weren't matching up with the fully initialized ones, so instead of being replaced by the full client in the side bar, they sit there forever looking like they are loading.

This applies the same name change to both fully and non-initialized clients so they always match up.

Reviewed By: passy

Differential Revision: D17501718

fbshipit-source-id: 6f2090b717a17c16c2cff37701e184363c82d36f
2019-09-23 06:22:01 -07:00
Pascal Hartig
741fb7d292 Update docs for new plugins
Summary: ilovedocs

Reviewed By: danielbuechele

Differential Revision: D17501537

fbshipit-source-id: 1f5d872928b5a644ee98db025ad60b038b7126a8
2019-09-23 06:18:14 -07:00
Pascal Hartig
96d5e3ceff Bump gradle version
Summary: Android Studio asked me to.

Reviewed By: danielbuechele

Differential Revision: D17501199

fbshipit-source-id: 4e57fad00c2b92ff04909d21474f3869d9adedc1
2019-09-23 06:18:14 -07:00
John Knox
9871a6d155 Devserver: Only listen on localhost
Summary:
In response to https://github.com/facebook/flipper/issues/553

This server is just serving the local assets to the electron instance, when you are running flipper from source (`yarn start`). It's not used in production releases.

I don't think there's a need to encrypt this traffic - it's analogous to running a local web server while you are developing it, however I don't see a reason not to restrict it to localhost.

Reviewed By: danielbuechele

Differential Revision: D17500039

fbshipit-source-id: 5b9df3937d71dc542cfa900da8c9e7f285a0e6ac
2019-09-23 03:43:09 -07:00
John Knox
1d29120715 Enable sandbox plugin (#554)
Summary:
Removes a gatekeeper that shouldn't be there.
Reported in https://github.com/facebook/flipper/issues/535
Pull Request resolved: https://github.com/facebook/flipper/pull/554

Reviewed By: danielbuechele

Differential Revision: D17502725

Pulled By: jknoxville

fbshipit-source-id: 1865db3f5c8cd81b0ec747687d0a7312e5f2332b
2019-09-23 03:36:05 -07:00
Pascal Hartig
85e0d8e965 Create nodejs workflow (#555)
Summary:
A very basic first workflow that we can extend to match what we currently have in Travis and hopefully remove that in the near future.
Pull Request resolved: https://github.com/facebook/flipper/pull/555

Test Plan: https://github.com/facebook/flipper/pull/555/checks?check_run_id=232330215

Reviewed By: danielbuechele

Differential Revision: D17525516

Pulled By: passy

fbshipit-source-id: c1ebc1af2260482cfa97faae99f3baa5d5b9046c
2019-09-23 03:29:30 -07:00
Pritesh Nandgaonkar
84c5067210 Create Support Requests from Flipper
Summary: This diff adds an initial support to prefill the app information and the revision information. This diff also copies the workplace url in the clipboard.

Reviewed By: passy

Differential Revision: D16990925

fbshipit-source-id: 4f354e52de5fea07c2ea36336761d6963c27ef66
2019-09-20 11:39:05 -07:00
Pascal Hartig
b041da6d61 Move litho plugin tests
Summary:
I missed these. :(

Open source CI is unhappy about this - for good reasons.

Reviewed By: jknoxville

Differential Revision: D17500071

fbshipit-source-id: 96106f660dee59985c51e2635321ab4ad00a795a
2019-09-20 10:24:38 -07:00
John Knox
3b94dfe9c4 Make certificate files world readable
Summary:
This is useful for system apps. The files are owned by root, but they need to be readable by the app. There's nothing secret in these files, so it's not a problem.

This doesn't address all issues with system apps, e.g. https://github.com/facebook/flipper/issues/536 but does go some way towards it.

I was able to get a system app to connect successfully, but there may be different states that they can be in, so I don't think it's a fix all.

Reviewed By: passy

Differential Revision: D17499438

fbshipit-source-id: ab82583b5d607f75ff4578ab9ac2baf9d74241f8
2019-09-20 06:50:52 -07:00
Pascal Hartig
1ab47f9ca8 Set up Maven distribution for new plugins
Summary:
Setting up the necessary metadata to publish the separate plugins
to Maven/Bintray.

Reviewed By: danielbuechele

Differential Revision: D17480263

fbshipit-source-id: 1772cee5b3744ce52fc6e2510a27cb7f500e72bf
2019-09-20 06:07:42 -07:00
Pascal Hartig
2baadf9867 Make litho/sections a separate plugin
Summary:
Breaking Litho/Sections off. Doesn't really make sense to have
two deps for this especially since they're pretty tightly coupled.

This makes our core already quite slim.

Reviewed By: jknoxville

Differential Revision: D17420118

fbshipit-source-id: 9a03911f4af6410745b9aefd0e6a75bdf106660f
2019-09-19 03:02:51 -07:00
Pascal Hartig
c4a9b603e2 Make network a separate plugin
Summary: Per title.

Reviewed By: jknoxville

Differential Revision: D17419678

fbshipit-source-id: aee00f077b7ed955c60884853dc1128d27366ee8
2019-09-19 03:02:51 -07:00
Pascal Hartig
7ac82bec4e Make fresco a stand-alone gradle project (#548)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/548

First project to pull out of the "fat distribution" we currently have.
Still needs setup for Maven and registration in Bintray.

Reviewed By: jknoxville

Differential Revision: D17395660

fbshipit-source-id: 6244495a2e25d705dd930ef87c7e5e1f038eb921
2019-09-19 03:02:51 -07:00
Daniel Büchele
a77faa5318 update PluginManager links
Summary: Adding Plugin Manager to menu bar and update wording in sidebar

Reviewed By: passy

Differential Revision: D17450840

fbshipit-source-id: 9426e6053f454a8e3776e9e0e061cd119f8dc7b5
2019-09-19 02:34:18 -07:00
Daniel Büchele
8c623867bd PluginManager
Summary: Adding the plugin installer to the plugin sheet as a second tab

Reviewed By: passy

Differential Revision: D17450842

fbshipit-source-id: 211c9f15ed2614a1dd46d974b86f50c825f81fb0
2019-09-19 02:34:18 -07:00
Daniel Büchele
039d1cca99 publish example plugin
Summary:
Prepare package.json to publish to NPM.
This should set an example on how plugins can be shared via NPM.

Reviewed By: passy

Differential Revision: D17450841

fbshipit-source-id: 95bfe7331e5a95d4a8d201e5fea148cbdec6859f
2019-09-19 02:34:18 -07:00
Daniel Büchele
735aee7682 Add Tabs container
Summary: Adding an additional style for tabs on top of a container, similar to the ones used in macOS

Reviewed By: passy

Differential Revision: D17450843

fbshipit-source-id: 6b58c2aa290e0221d917e60bb3ac0751f77ea1ce
2019-09-19 02:34:17 -07:00
Pascal Hartig
2a6462641b Limit concurrency during plugin compilation
Summary:
My MBP just crashed again during startup. I would like to
understand why every plugin compilation appears to start
up a new electron process, but until that's understood
and hopefully fixed, it's probably best to limit the number
of processes we spawn by setting an upper bound here.

N.B. My Linux box doesn't mind this at all.

Reviewed By: jknoxville, danielbuechele

Differential Revision: D17419289

fbshipit-source-id: a11562a21a984059dc35e826eb20d869df218546
2019-09-17 12:21:15 -07:00
Daniel Büchele
ada2327520 refactor sidebar styles
Summary: Using styled components rather than class names to follow Flipper's guidelines

Reviewed By: jknoxville

Differential Revision: D17419665

fbshipit-source-id: 17e0a3bd9292327a4b34eb4e87e5271af8fa22c7
2019-09-17 10:18:26 -07:00
Daniel Büchele
108c49f572 Bookmark from TitleBar
Summary: Add action to bookmark current location

Reviewed By: passy

Differential Revision: D17419666

fbshipit-source-id: 69e845e802260c150ae2f17649cea05bea1ae4ec
2019-09-17 10:18:26 -07:00
Daniel Büchele
bd1fc342c8 Keyboard navigation
Summary: Adding keyboard navigation for bookmarks

Reviewed By: jknoxville

Differential Revision: D17419667

fbshipit-source-id: 851f93d662b6071c3478dca5c9d20b9814e15c1b
2019-09-17 10:18:26 -07:00
Daniel Büchele
1666cf5ee5 Background events
Summary:
`this.client.subscribe` was used to listen for navigation events. This means, navigation events are not collected while the plugin is in background.
In this diff, this is changed to a persistedStateReducer, so the events are collected with the plugin not active.

Reviewed By: jknoxville

Differential Revision: D17419668

fbshipit-source-id: 88d9476cb7461ff6774d42a992d32b4c8948ac86
2019-09-17 10:18:26 -07:00