Commit Graph

2497 Commits

Author SHA1 Message Date
John Knox
6fee72513e Fix sidebar text
Summary:
"Not connected clients" doesn't really make sense.
Changing to to "No clients connected"

Reviewed By: passy

Differential Revision: D18478077

fbshipit-source-id: 2d9d3853997a3401d41463e1a956773b3514c14f
2019-11-13 08:39:21 -08:00
Michel Weststrate
dcb6595d1d Make imported devices visually recognizable
Summary:
If a flipper file is imported, from now on we will show that fact in the sidebar to make it more clear we are looking at an imported device. Beyond that, those devices are marked as `(imported)` rather than `(offline)` to distinguish between offline and imported devices.

This should help with future feature like cross device applicable actions.

Reviewed By: jknoxville

Differential Revision: D18448190

fbshipit-source-id: 560084f010207c99cecd616e43a6cc02e62cbc7a
2019-11-13 08:36:56 -08:00
Michel Weststrate
ad90f98a0e enable optional chaining in plugins
Summary: Enable transpilation of optional chaining in plugins

Reviewed By: jknoxville

Differential Revision: D18451930

fbshipit-source-id: a55aa8d7a65ee8e6568e61ae377c199acfd158f4
2019-11-13 08:36:55 -08:00
Michel Weststrate
33a91b5e0f Fix tabs offset
Summary: Tabs have a weird negative offsite in the mobile config section (they have everywhere by default, to escape their containers in a mac-style but it does hide them in this specific case)

Reviewed By: priteshrnandgaonkar

Differential Revision: D18448191

fbshipit-source-id: 792daa5a3ef1aa91df730bd185124076471e42d3
2019-11-13 08:36:55 -08:00
Michel Weststrate
989b32c7b9 only capture selected application in exports
Summary:
Currently flipper export exports all connected the clients. This causes a few problems

1. This might often be unintended by the user, causing accidentally sharing (sensitive) information in the trace
2. This slows down things unnecesary. Especially if there is connected application, which is expensive, but not needed. See the attached video for the impact on exporting flipper: Export size reduzed from 11 to 0.5 mb. Export time from 20 seconds down to 1. (Flipper might not be a representative example, but imagine working on fb4a and having instagram on the emulator as well).

Reviewed By: priteshrnandgaonkar

Differential Revision: D18448194

fbshipit-source-id: f4de4c6dd89bda20251eb5f7423f7996339c8f2d
2019-11-13 08:36:55 -08:00
Michel Weststrate
f2d12f1025 Fixed a bunch of prettier errors after upgrading
Summary: prettier upgrade uncovered more errors

Reviewed By: passy

Differential Revision: D18474908

fbshipit-source-id: b1553000fb3386f2bbd9defdd3332618e4b9c867
2019-11-13 08:36:54 -08:00
Michel Weststrate
677f7b5b5f Updated build deps to be able to use TS 3.7 features
Summary: Optional chaining was not actually usuable, since prettier and eslint weren't updated yet. Since they are released now, this diff fixes that

Reviewed By: jknoxville

Differential Revision: D18449890

fbshipit-source-id: 722110c6cfe328ef5a7e8d9d0cc42e5117e9f796
2019-11-13 08:36:54 -08:00
Pascal Hartig
4606afd1ee Flipper Bump: v0.28.1-SNAPSHOT
Summary: Back to snapshots.

Reviewed By: jknoxville

Differential Revision: D18453213

fbshipit-source-id: 2f3a2df099e81506695dcf85a8ccaae248128d1a
2019-11-13 05:47:28 -08:00
Pascal Hartig
1784179187 Flipper Release: v0.28.0
Summary:
**Highlights**

- Redesigned sidebar.
- Compatibility with XCode 11.

Full list of changes: https://github.com/facebook/flipper/compare/v0.27.0...master

Reviewed By: jknoxville

Differential Revision: D18453214

fbshipit-source-id: 98012ba81558bce60a5b75815fb0734a0fbf3445
2019-11-13 05:47:27 -08:00
greenkeeper[bot]
be36aa4bc1 Greenkeeper/website/monorepo.babel7 20191108210517 (#637)
Summary:
Upgrading babel.
Pull Request resolved: https://github.com/facebook/flipper/pull/637

Reviewed By: jknoxville

Differential Revision: D18474995

Pulled By: passy

fbshipit-source-id: fb6bb724e4431b85bf8a503d32d9480aeaa28239
2019-11-13 03:04:26 -08:00
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