Commit Graph

2437 Commits

Author SHA1 Message Date
greenkeeper[bot]
1cd92e43a5 Update mem in group website to the latest version � (#635)
Summary:
## The dependency [mem](https://github.com/sindresorhus/mem) was updated from `5.1.1` 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:** [sindresorhus](https://www.npmjs.com/~sindresorhus)
**License:** MIT

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

 ---

<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/635

Reviewed By: jknoxville

Differential Revision: D18449137

Pulled By: passy

fbshipit-source-id: 2ca358574ef710e0113e092d2d887ef2c2ac8047
2019-11-13 02:29:34 -08:00
greenkeeper[bot]
e7a063e2c3 Update chalk to the latest version � (#632)
Summary:
## The dependency [chalk](https://github.com/chalk/chalk) was updated from `2.4.2` 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

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

 ---

<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/632

Reviewed By: jknoxville

Differential Revision: D18449136

Pulled By: passy

fbshipit-source-id: 066878bbce1c0bdeed8da497c07af97756a13439
2019-11-12 10:24:16 -08:00
Pritesh Nandgaonkar
c1d5e8699b Update Flipper-Folly dependency
Summary: I have made a new release for Flipper-Folly with the changes in the base diff

Reviewed By: jknoxville

Differential Revision: D18449493

fbshipit-source-id: bdb60d2a5b16cd0e3fc8d2e135d6d52b97c61fd0
2019-11-12 09:52:48 -08:00
Janic Duplessis
ef06f6d546 Cleanup Flipper-Folly.podspec included headers (#518)
Summary:
- This removes `folly/**/*.h` in `source_files` which causes all headers to be included. Instead we include only the headers needed to build. In my case this caused a conflict with folly's "Zlib.h" getting included instead of the system "zlib.h" (apparently paths are not case sensitive).
- Remove duplicates in `public_header_files`, we can just keep `"folly/**/*.h"` to make all headers public.
- Remove `preserve_paths`, this is not be needed anymore.

## Changelog

Cleanup Flipper-Folly.podspec included headers
Pull Request resolved: https://github.com/facebook/flipper/pull/518

Test Plan: Tested in an app that everything build using the modified podspec.

Reviewed By: jknoxville

Differential Revision: D16918216

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 81cc9891c67bcb019580eb21d1b8e6d7318a4e03
2019-11-12 09:52:48 -08:00
John Knox
22a86747d4 Wrap command execution in util
Summary:
Take the low level execution details out of the healthchecks.

The xcode-select change is sound because `xcode-select -p` returns status code > 0 when not set, so exec will throw, so no need to inspect stdout.

Reviewed By: passy

Differential Revision: D18449564

fbshipit-source-id: b2e2797a51aca45cfd78e707e99341798401897c
2019-11-12 06:55:52 -08:00
John Knox
999e3784b8 Check for openssl
Reviewed By: mweststrate

Differential Revision: D18448006

fbshipit-source-id: 1d98c1f8476e916f270c9d8f7bc63ab0d2386ac6
2019-11-12 06:55:52 -08:00
John Knox
802c857578 Check instruments are on path
Reviewed By: mweststrate

Differential Revision: D18427166

fbshipit-source-id: be075a23d2f0216ac79fc8bd8e083a351e9dbbc9
2019-11-12 06:55:51 -08:00
John Knox
55cfe11e2c Check xcode-select is set
Summary:
Basic check for some xcode-path

There'll be a separate connected device check that looks at the current simulators and sees if they are running the same xcode version.

Reviewed By: mweststrate

Differential Revision: D18427090

fbshipit-source-id: 5e202d8920cae1ffce444e81a0c138a97936f758
2019-11-12 06:55:51 -08:00
John Knox
1750516250 Add check for Xcode
Summary: Checks for xcode. We'll be able to do some version comparisons here if we find incompatible versions going forward, but for now, just check if it exists.

Reviewed By: mweststrate

Differential Revision: D18425284

fbshipit-source-id: 4a35a40de17f168f409c86264c5c3e172d7d1569
2019-11-12 06:55:51 -08:00
John Knox
fc1e4098ed Make healthchecks async
Summary:
Rework the healthchecks.

* Makes them healthcheck run api async so they can do more.
* Adds isRequired to the top level categories - this specifies if the category itself is required. The isRequired attributes of its constituent checks specifies if they are required within that category.
* Move isRequired outside the result of the healthcheck functions, because its static.

Reviewed By: mweststrate

Differential Revision: D18425189

fbshipit-source-id: 9d5c136a426732375d32cd27a758d9c92d123214
2019-11-12 06:55:50 -08:00
Pritesh Nandgaonkar
5bdba4935a Commit hash field added
Summary:
This diff adds commit hash field in the support form v2 and we prefill the information.

If changes are not pushed to phabricator we will populate it with commit hash or else we will populate it with Diff number.

See the demo to understand the flow.

{F222000517}

Reviewed By: jknoxville

Differential Revision: D18427044

fbshipit-source-id: 80a58baca381e21203da5670e29144a7e8c2eeed
2019-11-12 04:52:42 -08:00
Michel Weststrate
774fddb6bf collapse error bar by default
Summary: Since most employees use flipper in development mode, the current error bar might be overly obtrusive, so we collapse it by default

Reviewed By: priteshrnandgaonkar

Differential Revision: D18448192

fbshipit-source-id: 9aa211df6c9a519860dffdced3619119e0ee8e22
2019-11-12 04:46:06 -08:00
Michel Weststrate
d6814a8bf6 Move sidebar client selection state to redux store
Summary:
This diff moves the selection storage from local state to the Redux store.
This makes the state available to the export data functionality (next diff)

Reviewed By: priteshrnandgaonkar

Differential Revision: D18448193

fbshipit-source-id: b1cce083ac7805c539de22aca0bd05c18e1b66e0
2019-11-12 04:46:05 -08:00
John Knox
e2c196cc7c Upgrade uglify-js
Summary: Fixes https://github.com/facebook/flipper/issues/629

Reviewed By: mweststrate

Differential Revision: D18429396

fbshipit-source-id: 206211c0e6e248b0a05a59a1347cbd239e78c298
2019-11-12 02:03:15 -08:00
Pritesh Nandgaonkar
db9bd6c22e Fixes the broken build of Sample app on open source
Summary:
This diff fixes the broken sample app for xcode 11. Followed the remediation mentioned in the following links

https://github.com/Carthage/Carthage/issues/2825
https://twitter.com/krzyzanowskim/status/1151549874653081601?s=21

Remediation:

Adding Dummy swift file and assigning `"LD_VERIFY_BITCODE": "NO"` solves the problem as suggested in the above links

Reviewed By: jknoxville

Differential Revision: D18420954

fbshipit-source-id: e87930790329ffb2bb92c40aa197552efeedecd3
2019-11-11 10:16:11 -08:00
Michel Weststrate
93655d39b8 Fix more react warnings
Summary: Fixing random React errors as I encountered them.

Reviewed By: jknoxville

Differential Revision: D18397950

fbshipit-source-id: cb73fcd6cd9aac2cd53c982e5a58760be12a10ca
2019-11-11 05:11:04 -08:00
Pritesh Nandgaonkar
19937c4b83 Fix the import and export of the createtable plugin
Summary:
Before this diff, plugins made with createTablePlugin would not be exportable as it uses ImmutableJS's Map which is not serializable. In the custom serializer we just handle the normal map, not the immutableJS one. Thus to tackle this I overrode the serializer and deserializer methods to handle it.

Before this diff the funnellogger import didn't work.
{F221607733}

Reviewed By: mweststrate

Differential Revision: D18352298

fbshipit-source-id: 57d4f3e19f38c12a30e75167646ae43ac8690e08
2019-11-08 06:21:17 -08:00
Pritesh Nandgaonkar
f4a42cc4ea Add more telemetry events
Summary:
Added more telemetry events for the following events

- Time taken for each plugin to fetch meta data
- Overall time taken for fetching all meta data
- Overall time taken for serializing plugins
- Time taken to serialize individual plugins with overridden serializer and deserializer methods

Reviewed By: passy

Differential Revision: D18349588

fbshipit-source-id: 2b3a6b663a9df4da45580fc0be5651a27ca4093d
2019-11-08 05:05:02 -08:00
Michel Weststrate
2f5096ddc8 Improve setup documentation
Summary:
Random observations

1. RN already generates the Flipper initialization code out of the box
2. This code assumes a prefixed namespace: `facebook.flipper`. Maybe it would be better if that were `appname`, but that seems an unnecessary burden at this point, preventing direct copy / paste possibilities
3. Out of the box, the generated code by RN doesn't align with the code provided here, because no `ReactInstanceManager` argument is passed in (nor does it seem to be available in a straight-forward way)
4. patch MainApplication.java with `getReactNativeHost().getReactInstanceManager()`
5. turn this into an explicit section: https://fbflipper.com/docs/tutorial/js-table.html#dynamic-plugin-loading. Also explain that when using `node_modules`, config doesn't need to be changed?
6. xcode 10! sudo xcode-select -s /Applications/Xcode_10.XXX/Contents/Developer/
7. Also tried to install Reactotron plugins by Infinite Red, got that compilable in the end, but the andoid / ios implementations still seems to be stub, so I'll try to follow up with them later, to be notified when they actually have something

Reviewed By: passy

Differential Revision: D18349098

fbshipit-source-id: 233bbe20a37c57c7dfe08c8fccdd4508bdefe96f
2019-11-08 04:40:27 -08:00
Michel Weststrate
9a8e267f2a Fixed React key warnings in Layout inspector
Summary: Fixed some React key warnings

Reviewed By: passy

Differential Revision: D18394993

fbshipit-source-id: 804b8e2cb8525253e2ef8120b621dcb98af0e3e5
2019-11-08 04:37:01 -08:00
Pascal Hartig
0dd7c277d4 Bump gradle download library
Summary:
https://github.com/michel-kraemer/gradle-download-task#migrating-from-version-3x-to-4x

Major release but we're not affected by any of the changes, could use some of those in CI though.

Reviewed By: jknoxville

Differential Revision: D18394402

fbshipit-source-id: 89773776a11ad0c0d5ff8eb8875eb06546e43072
2019-11-08 04:34:59 -08:00
Pritesh Nandgaonkar
ff7d5018ec Move exportData.electron.js to tsx
Summary: Migrates `exportdata.electron.js` to tsx

Reviewed By: passy

Differential Revision: D18379598

fbshipit-source-id: c8fadf23b02ceb28b134df62c7590727a4f03554
2019-11-08 03:54:38 -08:00
Michel Weststrate
da25241f7f Fix more Buffer deprecation warnings
Summary: Missed two the previous time

Reviewed By: jknoxville

Differential Revision: D18372147

fbshipit-source-id: 015f1aa93706134a8a1aacffb4812cfb284c5527
2019-11-07 09:00:19 -08:00
Pascal Hartig
68635184c2 Bump Kotlin
Summary: Quite a few releases behind, but all fwd-compatible.

Reviewed By: jknoxville

Differential Revision: D18371601

fbshipit-source-id: 72e94ed4a92ea0358db44310cf14f611ad95db37
2019-11-07 07:31:22 -08:00
Pascal Hartig
90725bb7c9 Bump gradle
Summary: Patch version, no breaking changes.

Reviewed By: jknoxville

Differential Revision: D18371607

fbshipit-source-id: 0d92dc56031a829f967e62d3aefcf558851be5f6
2019-11-07 06:56:19 -08:00
Werner Badenhorst
e59dbb1315 Convert Flipper plugin "LeakCanary" to TypeScript
Summary: The Flipper codebase was recently converted to TypeScript. Plugins should be converted as well to maintain type safety.

Reviewed By: passy

Differential Revision: D18347730

fbshipit-source-id: be63e8bac677c13fa5c0fa4f964dda8e7ba6251d
2019-11-07 05:30:48 -08:00
Pascal Hartig
96049d43a5 Bump gradle plugin
Summary: To match latest stable Android Studio.

Reviewed By: jknoxville

Differential Revision: D18347347

fbshipit-source-id: fd1d4111b34bc8a00f0c0ee5cfe4636fb20f8d41
2019-11-06 11:03:48 -08:00
Pritesh Nandgaonkar
994546b24a Setup of the bug creation screen
Summary: This diff sets up the create form for the new support request project. The current screen is very basic. I will be iterating through it in the upcoming diffs.

Reviewed By: passy

Differential Revision: D18327464

fbshipit-source-id: af01fc10f68a135f32f0ae98551986852019e8aa
2019-11-06 10:46:12 -08:00
John Knox
2ae2352972 Add starter package
Summary:
Adds a new package with typescript set up, to be published to npm.

Followed this as a guideline: https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c

Reviewed By: passy

Differential Revision: D18244495

fbshipit-source-id: c684f0bb33e61699f605c637186c7a81136a920f
2019-11-06 09:39:57 -08:00
Pascal Hartig
9670d6bde5 Prefetch star{,-outline} at size 12
Summary: Used by rating, I think.

Reviewed By: mweststrate

Differential Revision: D18347585

fbshipit-source-id: bbc84a42c34aae9805515c82f8d24cfd0817d8ed
2019-11-06 08:33:36 -08:00
Pascal Hartig
05c007be16 Move plugin manager logic out of UI component
Summary: Moving some things around for the upcoming update support.

Reviewed By: jknoxville

Differential Revision: D18347572

fbshipit-source-id: b614fe3a87f8e7fdc0c11c0d3bfe4787c0914d17
2019-11-06 08:33:36 -08:00
Pascal Hartig
4c0c212258 TypeScript 3.7!
Summary:
The prep work paid off. Seems to Just Work.
Now goeth ahead, little flock, and spread the good word of Optional Chaining.

More stuff here: https://devblogs.microsoft.com/typescript/announcing-typescript-3-7/

allow-large-files

Reviewed By: mweststrate

Differential Revision: D18347372

fbshipit-source-id: 735d4a1e2d33bffaa47761f86eb4f43a044c3d3b
2019-11-06 08:33:35 -08:00
John Knox
f0de600492 Fix wording of network request buttons
Summary: I don't know why we left this for so long, it doesn't make a good first impression.

Reviewed By: mweststrate

Differential Revision: D18348908

fbshipit-source-id: b8b0e5fe8f6ab81281d6ea1a1299ebdaaf0b9c43
2019-11-06 08:04:12 -08:00
Michel Weststrate
81d7be2479 Fix overflow of long client names
Summary: Look client names were unreadable due to line wrapping

Reviewed By: jknoxville

Differential Revision: D18348602

fbshipit-source-id: 682c3b17ef73ca0bf0f8193f71a608ada5cdfbf2
2019-11-06 07:29:05 -08:00
Michel Weststrate
c3402da467 Fix showing plugins that are incompatible with client
Summary: Fix an issue where we accidentally show all plugins for all clients, causing client crashes if an unsupported plugin is selected

Reviewed By: jknoxville

Differential Revision: D18347907

fbshipit-source-id: 5416f29b8eae2daed64869380f9e9382e90261d7
2019-11-06 07:29:05 -08:00
Michel Weststrate
7040d487d8 don't keep querying iOS simulators if XCode was not installed properly
Summary: Currently the app keeps to find iOS devices if when the tooling isn't properly set up, causing an error to appear every three secs. This change makes sure that happens only once. It also takes care of some run-away promises

Reviewed By: jknoxville

Differential Revision: D18346619

fbshipit-source-id: 12b581bee0d522b37b9e0c5d5b8dad0e4d2058d9
2019-11-06 06:17:22 -08:00
Pascal Hartig
2446e82dc6 Bump AndroidX
Summary: It's not just JS dependencies!

Reviewed By: jknoxville

Differential Revision: D18346576

fbshipit-source-id: b2c383424335c74c68a48f3d93614168ef26a0c4
2019-11-06 03:43:49 -08:00
Pascal Hartig
d70e389077 Run yarn build step on Linux (#626)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/626

This is the step that keeps failing because of some libuv
nonsense. It's faster and more reliable on Linux, so
there's really no good reason for running it on Mac.

No guarantee that this will fix it, but in the worst case
manually pressing "Rerun" will be faster.

Reviewed By: jknoxville

Differential Revision: D18324723

fbshipit-source-id: d1cd0c7195a4bcbd4c5df6ad39676f12f135a0f9
2019-11-06 01:55:37 -08:00
Adam Ernst
6e8de457e7 Remove last traces of ComponentScript from Flipper
Summary: Bye bye ComponentScript.

Reviewed By: d16r

Differential Revision: D18330173

fbshipit-source-id: 8181e9cf082d299790ae3ceaffcc7417dc8190aa
2019-11-05 13:21:02 -08:00
Michel Weststrate
3963535610 Fix buffer warning when starting CPU / kaois plugin
Summary:
When the CPU or kaois plugins are started, they show a buffer deprecated warning, caused by the fact that they ship their own adbkit version, which is unpatched.

This diff makes sure that the adbkit as shipped with Flipper is used instead.

Reviewed By: jknoxville

Differential Revision: D18327441

fbshipit-source-id: 9cab23b9701adc070210cc4133fc8760031bd1d7
2019-11-05 11:10:16 -08:00
Kevin Lin
5ca8b6dc30 Make rootNode a weak reference in SKComponentLayoutWrapper
Summary: In some cases this can cause a retain cycle.

Reviewed By: priteshrnandgaonkar

Differential Revision: D18297780

fbshipit-source-id: c60abdcaad9fd94c457647509aec0519042801e4
2019-11-05 09:58:04 -08:00
Michel Weststrate
3cee927674 Introduce favorite plugins
Summary: This diff lands improved sidebar navigation. The old functionality to order plugins based on last-recently-used, and cropping at 5 items has been removed. Instead, items can be starred and their position will be fixed. Together with the app switcher introduced this should lead to a cleaner, stabler, and more customizable UI.

Reviewed By: jknoxville

Differential Revision: D18299401

fbshipit-source-id: 29b7eb3a4130933c637f7c81834558bf738d5bf0
2019-11-05 09:14:46 -08:00
Michel Weststrate
969a857fae Introduce app selector
Summary: Sidebar now shows a drop down to select the app you are currently working on, rather than showing all plugins for all apps connected

Reviewed By: passy

Differential Revision: D18201094

fbshipit-source-id: a64ca380606c232d0a85bfa80f16ed0db980dfb4
2019-11-05 09:14:46 -08:00
Pascal Hartig
9bb0dad5d6 Refactor installed plugin props passing
Summary:
Left this out from diff at the bottom of the stack to
keep it a bit smaller.

Reviewed By: jknoxville

Differential Revision: D18272165

fbshipit-source-id: a2b0826e268b737341e2ef1c0f96dde32491237f
2019-11-05 05:44:13 -08:00
Pascal Hartig
d2dfb924fd Update plugin store after installation
Summary: Address the small regression introduced by D18173166. When closing the plugin manager after installing/removing, the store wasn't updated in between.

Reviewed By: jknoxville

Differential Revision: D18270821

fbshipit-source-id: 4ff54bc7607d06fa423cf8e673f216ae0a5d19da
2019-11-05 05:44:13 -08:00
Pascal Hartig
432bb1b00a Move local plugin discovery to dispatcher/redux store
Summary: In order to have update notifications, this must live outside the UI component, but it also gives some additional benefits like better testability of previously effectful UI.

Reviewed By: jknoxville

Differential Revision: D18173166

fbshipit-source-id: 1cacb6c7893423a7920a6620dfb76e631caba101
2019-11-05 05:44:12 -08:00
John Knox
42a77094f4 Clean up old flipper rating system
Summary:
Found some unused code from the rating prototype before switching to itsr.
Deleting it.

Reviewed By: cekkaewnumchai

Differential Revision: D18298155

fbshipit-source-id: 3529db17494f4f5bf7d7841460203d1c3856299a
2019-11-04 09:23:50 -08:00
John Knox
ed2343b3c6 Add sessionId to itsr query string
Summary: This will allow rating data to be joined with version number so we can get the rating of each release.

Reviewed By: mweststrate

Differential Revision: D18297808

fbshipit-source-id: 00f151c64aad40632389f728ad25a565f44a2a90
2019-11-04 09:23:50 -08:00
Michel Weststrate
b2cf34bc2f Eliminate buffer deprecation warning
Summary: Fixed deprecated Buffer warning that is shown at startup

Reviewed By: passy

Differential Revision: D18272158

fbshipit-source-id: ca932b1ff76f15e5563e21de66463a47616600d9
2019-11-04 09:21:59 -08:00
Chaiwat Ekkaewnumchai
c1130a167b Upgrade React-Redux (2nd attempt)
Summary:
- Update and include `react-redux` to Greenkeeper
- Remove legacy context which is used to access `store`
- Export `store` directly to use instead of legacy context

Note:
1st attempt: D18169584 -> got backouted in D18203354

Reviewed By: jknoxville

Differential Revision: D18297298

fbshipit-source-id: fd968f1b211eabb094113a0b35e84305f70117fc
2019-11-04 07:44:08 -08:00