Commit Graph

1845 Commits

Author SHA1 Message Date
Pascal Hartig
a76eddd16a Sync fbjni copy with upstream
Summary: Merge upstream fbjni into our copy.

Reviewed By: priteshrnandgaonkar

Differential Revision: D16828183

fbshipit-source-id: 720f7411d4327870c01d3f70e9d2b03909362795
2019-08-16 07:34:56 -07:00
Benjamin Elo
6b93cd15c2 Added docs for open source Navigation Plugin
Summary:
Added docs for the Navigation Plugin.

I've added instructions on how to use the plugin with vanilla Android, or how to integrate it with a third party solution.

Reviewed By: danielbuechele

Differential Revision: D16856614

fbshipit-source-id: e99cb94318820bd926f50bd4ba205fb11396a9d8
2019-08-16 07:29:18 -07:00
Benjamin Elo
8f6740bb01 Open source version of Navigation Plugin
Summary:
Here I have an early version of the Navigation Plugin (Android) for Open Source.

A lot of apps will be using there own Navigation framework for handling deep links. In order to keep things as simple as possible, recording navigation events is done through a single function that can be called from anywhere in the app. This will allow users to place this function in there own navigation frameworks and use there own logic with it.

Seperately, I have shown how this can be used with our Android sample app. I use the built in Android intent-filters to provide a demo of how this can potentially be used, and to form the basis of the docs that I will write.

Reviewed By: passy, danielbuechele

Differential Revision: D16828049

fbshipit-source-id: 22765f63ca0c471689d2ec5865fdfc155b92697f
2019-08-16 07:15:56 -07:00
Benjamin Elo
86f01d998f Recenter text in nav bar
Summary: I added the height css style to align the sheet. In this revision, I removed the height to recenter the text, but I've had to nudge the sheet up 3 pixels.

Reviewed By: danielbuechele

Differential Revision: D16855746

fbshipit-source-id: 14b4b83abeb74c01c3706c5b81921f30c8d7e2d3
2019-08-16 05:47:03 -07:00
Adam Ernst
2b050851a3 Split and fix FBCxxUtils
Summary: This target was bloating. Split it in two. Migrate to autotests.

Reviewed By: joshleibsly

Differential Revision: D16829348

fbshipit-source-id: 17f2a10371293ddb850c4556abeecee99a9d7bef
2019-08-15 09:53:48 -07:00
Pascal Hartig
03d4a7d750 Migrate fbEmployee
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D16827958

fbshipit-source-id: f2ab616b2682ede7da6c1e401fcc6d0644a1b960
2019-08-15 09:43:01 -07:00
Pascal Hartig
2fac83420b Prepare for Litho annotation removal
Summary:
Without this, our build will break with the next Litho release
because the `DoNotStrip` annotation will no longer be exported
as part of `litho-annotations`.

Reviewed By: jknoxville

Differential Revision: D16828144

fbshipit-source-id: f9a78b331678882025732498f18a3443d148ef4d
2019-08-15 08:50:13 -07:00
John Knox
ce3f69c249 Convert serialization.js to TS
Summary:
Convert serialization to typescript.

I tried to type the deserialize function but don't know enough about the expected format to be able to tell what the types should be.

Reviewed By: passy

Differential Revision: D16785945

fbshipit-source-id: 45de7ee1c8972314a52abcf20d428ba44f031a00
2019-08-15 07:32:53 -07:00
Daniel Büchele
d0da0d66a5 main folder
Summary: _typescript_

Reviewed By: passy

Differential Revision: D16762117

fbshipit-source-id: b6ee32e0bb3fc686fc69cfccab703e2ef4989571
2019-08-15 03:33:06 -07:00
Spencer Baumgardner
d68dac2ce0 Convert nlohmann::json to NSDictionary
Summary: T46426056: Add utility to convert nlohmann::json to NSDictionary. Use same in instagram logging module.

Differential Revision: D16798341

fbshipit-source-id: 88923fcbcd1ffbed5a468cee4ba2f9482ba81a97
2019-08-14 17:29:00 -07:00
Pascal Hartig
6a0da24eb2 Migrate utils/index
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16805609

fbshipit-source-id: 57eda17f45fc2dfe94a0d34948be5b673591a8ee
2019-08-14 10:06:03 -07:00
Chaiwat Ekkaewnumchai
b9e0aae1e4 Add Warning for FB Employee
Summary: Add warning dialog when FB employee uses OSS Flipper

Reviewed By: passy, danielbuechele

Differential Revision: D16783408

fbshipit-source-id: 3e7e533c5b96d4204fc38570a4e65c23ac0aaa25
2019-08-14 06:14:16 -07:00
Benjamin Elo
fc01f5536e Added boolean parameters to uri validation
Summary: Booleans must also be validated. These are denoted by {!boolParam}, as in they have a '!' symbol in front.

Reviewed By: danielbuechele

Differential Revision: D16802996

fbshipit-source-id: c03b858f0872dea0610e1d28aa9b48936f1117a6
2019-08-14 05:27:44 -07:00
Benjamin Elo
c40a88b117 Better form validation for required parameters plus live editing
Summary: Taking on the feedback from the demo yesterday, I've improved the required parameter's dialog by showing where specific errors occur in the form and adding live editing to the URI displayed.

Reviewed By: danielbuechele

Differential Revision: D16802921

fbshipit-source-id: 2e729549306a8efb79ca76d3da6f70632ccd9212
2019-08-14 05:27:44 -07:00
Benjamin Elo
1ae3b90019 Added LocationsButton when Navigation Plugin is active
Summary:
Here I've added the LocationsButton to the TitleBar in Flipper. This allows the user to navigate to saved bookmarks, or display the current page URI without ever opening the Navigation Plugin (Except to add bookmarks). The challenge of this diff was having a TitleBar child be controlled by a plugin.

The LocationsButton pulls bookmarks straight from the database whenever a mouseDown event is called on the button. (The Electron popup menu does not respond to props changes, so the menu is opened on mouse up and getting the bookmarks from the database occurs on mouse down... This seems to work fine).

The nav plugin on the Android side will now also send a welcome message alerting the app to created a persisted state for the navigation plugin, which shows the button in the TitleBar.

Let me know if I can answer any questions.

Reviewed By: danielbuechele

Differential Revision: D16786330

fbshipit-source-id: afc95348d9b7ec4ee041f42bb4d022f58c6bb969
2019-08-14 05:27:43 -07:00
Pascal Hartig
0f270c9f48 Migrate packageMetadata
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16782045

fbshipit-source-id: cfbabc036eb707f76a375f451ccc831b25c6d462
2019-08-14 04:43:51 -07:00
Pascal Hartig
610a926611 Migrate openssl-wrapper-with-promises
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16781986

fbshipit-source-id: 1d07e3d71b7fabd4e0559007846b2a0c4a10a45e
2019-08-14 04:43:51 -07:00
Pascal Hartig
573655c2f6 Migrate onRegisterDevice
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16764866

fbshipit-source-id: bdf532dea1c3019f0cb7728b3a0a07a3602cf04b
2019-08-14 04:43:51 -07:00
Pascal Hartig
2a34125413 Migrate metrics
Summary:
Had to mess with the tagged union we had, to distinguish based on
a string rather a bool which is a bit rubbish.

Reviewed By: danielbuechele

Differential Revision: D16764797

fbshipit-source-id: c33536f17b0705ca40abef8448802f9961c4c114
2019-08-14 04:43:50 -07:00
Timur Valiev
46e0abecdf api + plugins examples
Summary:
Initial commit for Flipper API for JS apps:
1) Plugin, Connection, Client
2) a bridge to work with WebView proxy app
3) examples of ported plugins: AnalyticsLogging and Fury

Reviewed By: danielbuechele

Differential Revision: D16753405

fbshipit-source-id: cdd4b863db236b2043f09833aed130035f6738de
2019-08-14 03:29:55 -07:00
John Knox
83f00f2485 Exclude generated class files from git
Summary: These get generated by VSCode if you have java installed and open the flipper project.

Reviewed By: danielbuechele

Differential Revision: D16763411

fbshipit-source-id: 40c7d943ee2ee32cf70f9aea080f5e44716e5651
2019-08-13 09:49:24 -07:00
Pascal Hartig
d812b128ba Migrate LowPassFilter
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16764120

fbshipit-source-id: 03185c74f3a1e753089ea550d3f193027aae9424
2019-08-13 08:26:55 -07:00
Pascal Hartig
5c6ec866d6 Migrate listDevices
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16764089

fbshipit-source-id: 03d980c354f8c03d7091fe01f82655e61c5854ff
2019-08-13 08:26:55 -07:00
Pascal Hartig
93467193ad Migrate InteractionTracker
Summary: N.B. There was one duplicate definition which TS rightfully complained about.

Reviewed By: danielbuechele

Differential Revision: D16764036

fbshipit-source-id: 498e4703c2363b19a3bdfa44527bde5000034095
2019-08-13 08:26:54 -07:00
Pascal Hartig
e7cf4380bc Migrate info
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16763995

fbshipit-source-id: 635e029ea33ab645d0e4d52640fae49eb254ac1c
2019-08-13 08:26:54 -07:00
Pascal Hartig
1b99e8b830 Migrate Idler
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16763946

fbshipit-source-id: 96eb0cdaca8a6cd731a6d16f3bea02471c691c01
2019-08-13 08:26:54 -07:00
Pascal Hartig
7d767e22fd Document OkHttp3/Java8 build problems (#516)
Summary:
Fix https://github.com/facebook/flipper/issues/512
Pull Request resolved: https://github.com/facebook/flipper/pull/516

Reviewed By: danielbuechele

Differential Revision: D16761610

Pulled By: passy

fbshipit-source-id: 2fb4b756f0d1bc13fb307f2144b57c1a868b3281
2019-08-13 04:10:54 -07:00
Pritesh Nandgaonkar
9a513ebd99 Do not update state when the component is unmounted
Summary:
Bug:

{F176561921}

Reviewed By: danielbuechele

Differential Revision: D16763611

fbshipit-source-id: 93b95877f4818a9d2b2c7ba1b27eabaec41d4e95
2019-08-12 14:52:00 -07:00
Pritesh Nandgaonkar
3401d1ef3c Do not log the cancelled flipper export as a failure
Summary: Currently cancelling the flipper export logs the event as a failure. This diff introduces one more event log type called cancelled.

Reviewed By: jknoxville

Differential Revision: D16711110

fbshipit-source-id: 308b7e64974610dbb17bd14b2425f6d939c99313
2019-08-12 08:10:16 -07:00
Benjamin Elo
c4a89da960 Automatically filtler out optional parameters from uri
Summary:
When a user enters a uri with optional parameters in the nav bar, I chose to automatically filter these out, yet still show the parameters in the nav bar.

The device receive uri's with no optional parameters, but the user will still see the parameters in the UI.

Reviewed By: danielbuechele

Differential Revision: D16762529

fbshipit-source-id: e3bbdf886dca7fba793b140b5fb303c4a77926ba
2019-08-12 07:17:02 -07:00
Benjamin Elo
9c80021d7c Removed duplicated functions after migration
Summary:
Pritesh and I both decided to re-add these functions without knowing that the other person had already re-added them.

Got through to master and now master won't build.

Reviewed By: priteshrnandgaonkar

Differential Revision: D16762774

fbshipit-source-id: 4a05d9e03cb043a6f398f57f2652a3ec15bd8985
2019-08-12 07:03:03 -07:00
Benjamin Elo
13fc0bec27 Minor improvements to Timeline view
Summary: Fixed issue with the timeline not having a key prop, and added some text when there are no navigation events.

Reviewed By: jknoxville, passy

Differential Revision: D16762034

fbshipit-source-id: 8f4618c8365c1a8b5a18b6176e1d80fc401f3ca5
2019-08-12 06:13:29 -07:00
Benjamin Elo
4305aba816 Migrate Sheet from js to ts
Summary: Migrated Sheet.js to Sheet.tsx

Reviewed By: passy

Differential Revision: D16735685

fbshipit-source-id: f910b38c9d0a8ac5d77203385599a03d0a4bc5bd
2019-08-12 06:06:43 -07:00
Benjamin Elo
7fd7a26d7d Migrate SignInSheet from js to ts
Summary: Migrated SignInSheet.js to SignInSheet.tsx

Reviewed By: danielbuechele

Differential Revision: D16735194

fbshipit-source-id: a7e039bf34b2784c55e6ebd4c8c17298a2f380cf
2019-08-12 06:06:43 -07:00
Benjamin Elo
4f47f73e5e Migrated ShareSheetExportFile from js to ts
Summary: Migrated ShareSheetExportFile.js to ShareSheetExportFile.tsx

Reviewed By: danielbuechele

Differential Revision: D16734995

fbshipit-source-id: 4528b27be0bfbefe9ddbd371c0bfc8950be6fe1f
2019-08-12 06:06:43 -07:00
Benjamin Elo
223cfe53d7 Migrate ShareSheetErrorList from js to ts
Summary: Migrated ShareSheetErrorList.js to ShareSheetErrorList.tsx

Reviewed By: jknoxville

Differential Revision: D16734553

fbshipit-source-id: ed608d5b171deda1caa284c27527e2f63af67ebb
2019-08-12 06:06:43 -07:00
Benjamin Elo
3e11e8887d Migrate ShareSheet from js to ts
Summary: Migrated ShareSheet.js to ShareSheet.tsx

Reviewed By: jknoxville

Differential Revision: D16734361

fbshipit-source-id: a6c050be19892f1650c1652536a62e4324ad949a
2019-08-12 06:06:42 -07:00
Benjamin Elo
d9cb55c8ae Migrate SelectPluginSheet from js to tsx
Summary: Migrated SelectPluginSheet.js to SelectPluginSheet.tsx

Reviewed By: jknoxville

Differential Revision: D16733361

fbshipit-source-id: c48e921761f4008a76a5000dd58aa2dd1aa42d2c
2019-08-12 06:06:42 -07:00
Benjamin Elo
11e817e1f2 Migrate ScreenCaptureButtons from js to ts
Summary: Migrated ScreenCaptureButtons.js to ScreenCaptureButtons.ts

Reviewed By: jknoxville

Differential Revision: D16733189

fbshipit-source-id: aabb7a82746609797c0448e441bbc79e65249191
2019-08-12 06:06:42 -07:00
Benjamin Elo
5c8be8f360 Migrate RatingButton from js to ts
Summary: Migrated RatingButton from RatingButton.js to RatingButton.tsx

Reviewed By: jknoxville

Differential Revision: D16732775

fbshipit-source-id: 380c8916f628115f474b575aef1b8a6e0c8863f9
2019-08-12 06:06:41 -07:00
Benjamin Elo
afe8ba65f0 Migrate Popover from js to ts
Summary: Migrated Popover.js to Popover.tsx

Reviewed By: passy

Differential Revision: D16732630

fbshipit-source-id: a7d44c7191972cd15ecb9530f6a146e7118c2b15
2019-08-12 06:06:41 -07:00
Benjamin Elo
e4b071e867 Migrate PluginDebugger from js to tsx
Summary: Migrated PluginDebugger.js to PluginDebugger.tsx

Reviewed By: passy

Differential Revision: D16732025

fbshipit-source-id: c4ff5586f823e90eba14eef5a8dac114a058763b
2019-08-12 06:06:41 -07:00
Benjamin Elo
8bbc03e138 Migrate MainSidebar from JS to TS
Summary: Migrated MainSidebar.js to MainSidebar.tsx

Reviewed By: passy

Differential Revision: D16731621

fbshipit-source-id: 57be95bf96c63105d05562cf0175e46c7f83aafa
2019-08-12 06:06:41 -07:00
Benjamin Elo
46b032d5ed Migrated ExportDataPluginSheet from js to ts
Summary: Migrated ExportDataPluginSheet.js to ExportDataPluginSheet.tsx

Reviewed By: passy

Differential Revision: D16731274

fbshipit-source-id: 5025f6eb34465d84e276f21855ee78cb98e8cd8d
2019-08-12 06:06:40 -07:00
Benjamin Elo
b5c01bdf36 Migrated BugReporterDialog from js to ts
Summary: Migrated BugReporterDialog.js to BugReporterDialog.tsx

Reviewed By: passy

Differential Revision: D16731216

fbshipit-source-id: 9ba70feed170eb1d017db88b980a3b449527f043
2019-08-12 06:06:40 -07:00
Benjamin Elo
dcda5741b9 Migrated LocationsButton from js to ts
Summary:
This isn't used anywher at the moment but I plan to add it in once we are finished with TS migration.

Migrated this file from LocationsButton.js to LocationsButton.ts

Reviewed By: jknoxville

Differential Revision: D16730904

fbshipit-source-id: d357785c462b1f5f6017b4c00a2d2467d905b895
2019-08-12 06:06:40 -07:00
Benjamin Elo
beaf4997fe Migrated DevicesButton from js to ts
Summary: Migrated DevicesButton from JS to TS

Reviewed By: passy

Differential Revision: D16730841

fbshipit-source-id: 3bfdb7945d82661f03d6a5b44b5404541a1b2c33
2019-08-12 06:06:39 -07:00
Benjamin Elo
c07fdd0485 Remove DevicesList as it is not used anywhere
Summary: This file is not used in the project and has been replaced by different logic in the DevicesButton.

Reviewed By: passy

Differential Revision: D16730618

fbshipit-source-id: b41c9dcef44690fee1331da2e3d66aa9e1394bad
2019-08-12 06:06:39 -07:00
Benjamin Elo
f7896a1f2b Migrate ErrorBar from .js to .tsx
Summary: Migrated the ErrorBar from JS to TS.

Reviewed By: passy

Differential Revision: D16730539

fbshipit-source-id: 3fd8c90f218f7a1d666c3d47380d56868c1cd23f
2019-08-12 06:06:39 -07:00
Benjamin Elo
12704269d7 Migrate DetailSidebar from js to tsx
Summary: Migrated DetailSidebar.js to DetailSidebar.tsx

Reviewed By: passy

Differential Revision: D16708503

fbshipit-source-id: 13090d6d44dbd01b162194c66724059d8e86a4c8
2019-08-12 06:06:39 -07:00