Commit Graph

9136 Commits

Author SHA1 Message Date
Lorenzo Blasa
3ed89a50bb RN-only icon
Summary: ^

Reviewed By: antonk52, aigoncharov

Differential Revision: D50557283

fbshipit-source-id: d869a3159c9c0b0b7e06ac04a1d51bbbe10f0970
2023-10-24 07:18:43 -07:00
Pascal Hartig
1f13a9dab5 Fix packlist (#5242)
Summary: [packer] Fix packlist

Test Plan:
Pull Request resolved: https://github.com/facebook/flipper/pull/5242
Imported from GitHub, without a `Test Plan:` line.

Reviewed By: mweststrate

Differential Revision: D50596825

Pulled By: passy

fbshipit-source-id: be4f80f95be27f86aa61384f9dd46540bf4aa349
2023-10-24 06:54:37 -07:00
Luke De Feo
cdb96df06f Litho layout prop improvements
Summary:
A few fixes.

1. We were ignoring start and end inputs, they are now sent to desktop
2. we were computing our own version of the resolved (computed ) values for border padding and margin. We are now using the correct about from litho getLayoutX

Removed some code duplication

Unfortunatley getLayoutBorderWidth is not available in open source yet so will need to land that first

Reviewed By: adityasharat

Differential Revision: D50496369

fbshipit-source-id: 7960a5d338adb40175f48982150665e046688fe1
2023-10-24 06:22:20 -07:00
Lorenzo Blasa
b3497a1642 Show unsupported modal for RN-only builds
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D50557230

fbshipit-source-id: d1974771edba97ce99294b967c27e4ec76a6cf61
2023-10-24 05:51:06 -07:00
Lorenzo Blasa
25245506c7 Only show changelog for headless builds
Summary: ^

Reviewed By: LukeDefeo, aigoncharov

Differential Revision: D50557155

fbshipit-source-id: 9f0990ded22ed18d01931ed3b2652498eb6b1abc
2023-10-24 05:51:06 -07:00
Lorenzo Blasa
b306a5591e Title should show unsupported for Electron builds
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D50557114

fbshipit-source-id: c9235e71e64ee8f6ce35b8b5d3c00660e9d7fbbb
2023-10-24 05:51:06 -07:00
Lorenzo Blasa
4b915da47c Electron releases do not update indicator on the Navigation Bar
Summary: No need to show this for Electron releases. Also, this becomes important once we make the final Electron release.

Reviewed By: aigoncharov

Differential Revision: D50557052

fbshipit-source-id: 803a9c9ad21fbff39147ac06add74888b9ee4091
2023-10-24 05:51:06 -07:00
Luke De Feo
21057fba01 Fix null pointer error
Summary: Turns out this can be null in some rare circumstances and can cause a crash in the fragment tracker

Reviewed By: aigoncharov

Differential Revision: D50562123

fbshipit-source-id: 4dfaecfde69359a85b778fc5ff0a4a3a8165a875
2023-10-24 05:49:56 -07:00
generatedunixname89002005306973
9c36fd5371 Flipper Snapshot Bump: v0.232.1-SNAPSHOT
Summary: Releasing snapshot version 0.232.1-SNAPSHOT

Reviewed By: aigoncharov

Differential Revision: D50595863

fbshipit-source-id: 5bc01cb2f190cf542c5f228030e5cb3c81f45a06
2023-10-24 04:51:33 -07:00
generatedunixname89002005306973
280d9544d1 Flipper Release: v0.232.0
Summary: Releasing version 0.232.0

Reviewed By: aigoncharov

Differential Revision: D50595864

fbshipit-source-id: 73c27ff739b585adc24db7bfd2d512153bea442a
2023-10-24 04:51:33 -07:00
Lorenzo Blasa
94120d61aa RN-only build flag
Summary: Previously I had created a RN build, locally, with a few minor differences. That had to be reverted. Instead of reverting and re-applying changes, I'm introducing a flag that can be used in the interim to produce the RN-only builds.

Reviewed By: LukeDefeo

Differential Revision: D50555055

fbshipit-source-id: edface9a1587fb51e54eebe73724032baf985c83
2023-10-24 04:18:51 -07:00
Luke De Feo
05242b4ee9 Handle traversal error
Summary: Log as console . error so we get a log view and inform the user

Reviewed By: lblasa

Differential Revision: D50450794

fbshipit-source-id: 0eb1877eec4d602d6673dd2815af2692e89b2523
2023-10-24 04:10:29 -07:00
Joshua Selbo
cd4640326c Update tests on old SDK versions
Summary:
Preparing for next Robolectric version which drops support for SDK 16-18.

`MemoryToolsFlipperPluginTest` relies on JSON serialization order which changes when running on the latest SDK (33).

`InspectorFlipperPluginTest` has multiple issues when running on the latest SDK, so just bump it to 19.

Reviewed By: jiawei-lyu

Differential Revision: D50558702

fbshipit-source-id: 9724d8e699b703a9e0af12559c41e7053d820150
2023-10-23 11:02:31 -07:00
Andrey Goncharov
92ca5edaea Track number of loaded plugins
Reviewed By: lblasa

Differential Revision: D50556872

fbshipit-source-id: 2d841360f7081074afa025d0bad8c41d7b2db16e
2023-10-23 09:14:56 -07:00
Andrey Goncharov
efdcaee302 Make enum term length dynamic
Reviewed By: mweststrate

Differential Revision: D50551626

fbshipit-source-id: f180252782244aaa5bc8c90521664f6bcbe6b9b7
2023-10-23 06:51:06 -07:00
generatedunixname89002005306973
12ebf5ec51 Flipper Snapshot Bump: v0.231.1-SNAPSHOT
Summary: Releasing snapshot version 0.231.1-SNAPSHOT

Reviewed By: aigoncharov

Differential Revision: D50548697

fbshipit-source-id: 3efa68d43385d4ba529015b7491b668fdce5ab8a
2023-10-23 03:42:26 -07:00
generatedunixname89002005306973
0509022dd5 Flipper Release: v0.231.0
Summary: Releasing version 0.231.0

Reviewed By: aigoncharov

Differential Revision: D50548698

fbshipit-source-id: 06c1e452ce9a5d3c6fc049f2fc2047d2b8bbc7e7
2023-10-23 03:42:26 -07:00
Andres Suarez
baf9d9ab37 Replace tempdir with tempfile
Summary:
`tempdir` has been deprecated since 2018:
https://github.com/rust-lang-deprecated/tempdir/pull/46

It's functionality was merged into `tempfile` with minor tweaks:

- Methods names: `new` -> `with_prefix`, `new_in` -> `with_prefix_in`.
- `with_prefix_in`'s args order is reversed.
- Temp dirs no longer have a period between the prefix and the random
  name (before `foo.123abc`, now `foo123abc`).

Reviewed By: shayne-fletcher

Differential Revision: D50526255

fbshipit-source-id: bdb3b53a6b09a09c70c8e2533ad2cea46ee2842b
2023-10-21 12:15:21 -07:00
Anton Kastritskiy
663380e721 mark unused vars as errors
Reviewed By: lblasa

Differential Revision: D50500690

fbshipit-source-id: 6f739fe25c232ecfe842337af4399681e85f6a13
2023-10-20 12:44:58 -07:00
Lorenzo Blasa
4834fda6fa Build local architecture CLI arg
Summary:
The current '--mac' arg builds all supported architectures. This is great when generating release builds but not so much when testing a release for the current architecture.

Not modifying the existing '--mac' arg as to not update our current CI.

Reviewed By: antonk52

Differential Revision: D50497211

fbshipit-source-id: 3e4d9728adc822c48788556e2ea47f4dd1c21b05
2023-10-20 07:25:52 -07:00
Anton Kastritskiy
fd774a2d52 remove density mentions
Summary: removing dead code

Reviewed By: lblasa

Differential Revision: D50495989

fbshipit-source-id: 769f853b50bf6ec48705dbcec03977ec6a5bffa3
2023-10-20 07:23:34 -07:00
Anton Kastritskiy
a978c96987 large fb icons only, no density
Summary:
Currently we download a bunch of FB icons and we normally use the smallest one available.

In this diff I change the download logic so we try to download from the largest to the smallest icon and use the first one available. One the client we no longer provide the icon of the same size that is requested, instead we provide the only one we have which will typically be larger than needed. This is a good thing because

1. flipper is a local application and we do not need to worry about icons take up broadband and downloading
2. People have high density displayed

I also stopped using density(rest of related code removed in the next diff) for icons as it the icons themselves did not support it.

Reviewed By: lblasa

Differential Revision: D50495194

fbshipit-source-id: f569c2f3b8ee424a67c6d21136e7e113868b8f6a
2023-10-20 07:23:34 -07:00
generatedunixname89002005306973
b507f7743e Flipper Snapshot Bump: v0.230.1-SNAPSHOT
Summary: Releasing snapshot version 0.230.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D50495655

fbshipit-source-id: 79952d387c0b1f981c2ce383c045157630f7d02f
2023-10-20 06:53:48 -07:00
generatedunixname89002005306973
edc69ac8ee Flipper Release: v0.230.0
Summary: Releasing version 0.230.0

Reviewed By: lblasa

Differential Revision: D50495656

fbshipit-source-id: 1c60110c1fe198a317217b8f2be667fa5f77e893
2023-10-20 06:53:48 -07:00
Andrey Goncharov
aea77cc4da Hide PWA app from Spotlight
Reviewed By: LukeDefeo

Differential Revision: D50411182

fbshipit-source-id: 46c089c69aefb58f85a861c7898ee355f094e03c
2023-10-20 05:13:20 -07:00
Lorenzo Blasa
a8be443670 Fixes an issue whereas token was only obtained if one exists
Summary: The token will be generated if one doesn't exist, so always call get token.

Reviewed By: antonk52

Differential Revision: D50494884

fbshipit-source-id: b93ba8ab5ba0c8b48766af3b06e8de94944d08e7
2023-10-20 04:59:41 -07:00
Lorenzo Blasa
450e6f2d7c Fixes an issue whereas server configuration is not yet set
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D50470060

fbshipit-source-id: cc59ac7cace092addbf48dfa16219983bd129cb0
2023-10-19 13:57:36 -07:00
Anton Kastritskiy
64d97998fd fix prod icons
Summary:
Previously we had requested non existing icons. This fixes missing icons on pixel dense screens (macbook pro, 4k screens).

I could add x4, x5 icons as well. Though they are no better than x3. Even x3 is pretty raterized. Ideally we should be serving icons with higher resolution and scaling them down instead of doing this. Even better use SVG icons which we do not have.

Reviewed By: LukeDefeo

Differential Revision: D50454271

fbshipit-source-id: cda90972abb56069e160ddefdc6de460c49d06c0
2023-10-19 07:25:40 -07:00
Luke De Feo
ee7f12ef85 Add message when traversal has error
Summary: By sending a message to the desktop we can report to log view and inform the user what happened

Reviewed By: lblasa

Differential Revision: D50369853

fbshipit-source-id: b4852d736232477261bfdf6f94c9395ce29cceaf
2023-10-19 03:33:42 -07:00
generatedunixname89002005306973
da903b8bc5 Flipper Snapshot Bump: v0.229.1-SNAPSHOT
Summary: Releasing snapshot version 0.229.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D50444272

fbshipit-source-id: 5913d464a68c5c9b1bbffc9b8bd4f51c6e09d7f9
2023-10-19 03:12:05 -07:00
generatedunixname89002005306973
a0ffacb6b6 Flipper Release: v0.229.0
Summary: Releasing version 0.229.0

Reviewed By: lblasa

Differential Revision: D50444276

fbshipit-source-id: cb7a962db5bf891787c07626d1eb3dbe5a6c0817
2023-10-19 03:12:05 -07:00
Lorenzo Blasa
f6de499171 Export to manifest on get
Summary:
Every time the token is returned, export it to the manifest.

This covers the case in which the token found in the manifest has already expired.

Reviewed By: antonk52

Differential Revision: D50419458

fbshipit-source-id: 8eefa0e97e234985b34f824190b208bf74e2d8ec
2023-10-18 12:28:06 -07:00
Lorenzo Blasa
82f0c0eb9e Remove Specs directory (#5222)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/5222

No longer used and hasn't been updated in 2+ years.

Reviewed By: LukeDefeo

Differential Revision: D50409395

fbshipit-source-id: 4d64f31cce457737c6954834107a73dd6d1103bd
2023-10-18 12:12:59 -07:00
Anton Kastritskiy
53e44da116 automatic update for docusaurus-plugin-internaldocs-fb@1.16.2
Reviewed By: lblasa

Differential Revision: D50408568

fbshipit-source-id: 068675c51049cb24fd69417e3bd0f7820d558b5e
2023-10-18 09:57:42 -07:00
Anton Kastritskiy
30100989f4 fix tabs + localStorage
Summary:
Key fix is
```diff
-    'Tabs:' + localStorageKeyOverride ?? keys.join(','),
+    'Tabs:' + (localStorageKeyOverride ?? keys.join(',')),
```

Previously it worked like `('Tabs:' + localStorageKeyOverride) ?? keys.join(','),` which always evaluated to `"Tabs:undefined"`. This means that all tabs that were not using localStorageKeyOverride were reusing the same localstorage key. If you open some tabs with A, B, and C tabs. And open tab B. Then open other tabs with D, E, and F. No tab would be selected as the default value would be B.

The second part it extracing keys from `items` prop instead of children.

Reviewed By: lblasa

Differential Revision: D50411422

fbshipit-source-id: 30f70c4347649f29e8c8ff1f2f38fdca7e826198
2023-10-18 09:33:48 -07:00
Lorenzo Blasa
8b24560bc0 Verify token before return
Summary: If the token has already expired, generate another one.

Reviewed By: aigoncharov

Differential Revision: D50410431

fbshipit-source-id: 108a3b344a1bcafd93a8d9bc94cba5c133d099d7
2023-10-18 08:53:46 -07:00
generatedunixname89002005306973
f10ea61ffc Flipper Snapshot Bump: v0.228.1-SNAPSHOT
Summary: Releasing snapshot version 0.228.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D50407781

fbshipit-source-id: cd2eb1084e2a7899b57267ad5a7364103f3c0678
2023-10-18 06:50:02 -07:00
generatedunixname89002005306973
f12fc5c983 Flipper Release: v0.228.0
Summary: Releasing version 0.228.0

Reviewed By: lblasa

Differential Revision: D50407780

fbshipit-source-id: b015e08f21fc4f0182e8a6589785e772505163f1
2023-10-18 06:50:02 -07:00
Anton Kastritskiy
b9952410b3 xcode-select copiable command
Reviewed By: ivanmisuno

Differential Revision: D50383695

fbshipit-source-id: 094c0477e44180591b479468fd365959e485da8a
2023-10-18 05:55:23 -07:00
Anton Kastritskiy
683fbfd6fb doctor result can display copiable CLI commands
Reviewed By: lblasa, ivanmisuno

Differential Revision: D50383150

fbshipit-source-id: 201f239cc7d69bd03011ec817156163f9f6ed653
2023-10-18 05:55:23 -07:00
Andrey Goncharov
a0a9465c0b Fix dark theme support
Reviewed By: lblasa

Differential Revision: D50406262

fbshipit-source-id: eda5c73efcd50dbe572cab078d3c04a4cd845601
2023-10-18 04:15:05 -07:00
Andrey Goncharov
3d4b36f14e Hide emulator loading page for disabkled platforms
Reviewed By: lblasa

Differential Revision: D50405264

fbshipit-source-id: c051414ad3b269cf2bc145aa4da13c20517edb36
2023-10-18 04:12:21 -07:00
Lorenzo Blasa
65fef5fbc3 Remove token from URL query string
Summary: This can be provided as an override, but is not needed for regular usage.

Reviewed By: antonk52

Differential Revision: D50405097

fbshipit-source-id: 7238f99ef08bfdf5c7adda0e8c3294341ae86e89
2023-10-18 03:40:59 -07:00
Anton Kastritskiy
b6560e1c74 check xcode-select is using the latest major version available
Reviewed By: mweststrate

Differential Revision: D50369254

fbshipit-source-id: 140a044ca55ec1f445b38e02c7df13cb667d89c6
2023-10-17 16:01:08 -07:00
Anton Kastritskiy
73862c9408 refine typescript type of tryExecuteComand
Summary: You can now descriminate based on `hasProblem`. Thus removing asserting operator

Reviewed By: LukeDefeo

Differential Revision: D50366398

fbshipit-source-id: a16a5419ce946831bd2d1624b1baa75c89a47aa3
2023-10-17 16:01:08 -07:00
Vitalii Ganzha
1a6e0ef42e Update FlipperPlugin C++ code so it can be compiled for Windows
Summary:
I am working in Horizon Worlds and I would like to integrate Flipper with HzW app.
Currently FlipperPlugin C++ code won't compile on Windows since it uses Linux-only headers like `netdb.h` and `sys/fcntl.h`, I posted here and looks like it is not currently supported: https://fb.workplace.com/groups/flippersupport/posts/1704837183330266

The problem seem to be in only in `FlipperConnectionEndpointVerifier.cpp`, and I'm updating it to make it compatible with Windows.

Also apparently there's some issue with `#include` of few files and namespaces, leading to "struct redefinition" errors where `#pragma once` does not help https://fb.workplace.com/groups/474291069286180/posts/25313067014981908/

Solving it with manual #define

Reviewed By: lblasa

Differential Revision: D50337573

fbshipit-source-id: affdf1aee2b9dfe615227827fedf324a5f17d8b0
2023-10-17 09:49:11 -07:00
Andrey Goncharov
7040e56185 Add loader while waiting for an emulator to start
Reviewed By: lblasa

Differential Revision: D50367884

fbshipit-source-id: cdc7c408bf2eb4ea3f7f4f03c27ca72e8bbe2947
2023-10-17 09:27:30 -07:00
Andrey Goncharov
cc76a21d80 Add more tracking data for UI startup
Reviewed By: lblasa

Differential Revision: D50365803

fbshipit-source-id: b6a601e7bf987738400a86be6814de7cafd50d3d
2023-10-17 08:28:02 -07:00
Lorenzo Blasa
17103ce1fa If failure, track client type
Summary: Add client type information to client errors

Reviewed By: aigoncharov

Differential Revision: D50365929

fbshipit-source-id: f1544b3974c5dfa4fc9b3b6229d6ebb6334dc0d9
2023-10-17 08:05:53 -07:00
generatedunixname89002005306973
51c8881fc7 Flipper Snapshot Bump: v0.227.1-SNAPSHOT
Summary: Releasing snapshot version 0.227.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D50327904

fbshipit-source-id: 183239129828174249eda9782995e5e1aec3538e
2023-10-16 11:31:18 -07:00