Commit Graph

1858 Commits

Author SHA1 Message Date
Daniel Büchele
d5a5ce21c9 Panel
Summary: _typescript_

Reviewed By: priteshrnandgaonkar

Differential Revision: D16828813

fbshipit-source-id: 9307391dc914ea10b458092b2ec72cd30e2eb0e9
2019-08-20 04:09:33 -07:00
Daniel Büchele
027a7f8336 Orderable
Summary: _typescript_

Reviewed By: priteshrnandgaonkar

Differential Revision: D16828817

fbshipit-source-id: 24e35d29730d2b336a478fee41baa84af2892d12
2019-08-20 04:09:33 -07:00
Daniel Büchele
751b50c28f ModalOverlay
Summary: _typescript_

Reviewed By: priteshrnandgaonkar

Differential Revision: D16828815

fbshipit-source-id: 9341286f7c3c32da3f7abeda53b78b2b7fa7bd1b
2019-08-20 04:09:33 -07:00
Daniel Büchele
3691305b4d MarkerTimeline
Summary: _typescript_

Reviewed By: priteshrnandgaonkar

Differential Revision: D16828814

fbshipit-source-id: 13b86338a73a4838857a31e16ea184e35ebfa7d0
2019-08-20 04:09:32 -07:00
Daniel Büchele
cd10856c3e Colors
Summary: _typescript_

Reviewed By: priteshrnandgaonkar

Differential Revision: D16828226

fbshipit-source-id: e6dd9946ae642a27ebc8a3f6dfce6773051f5a7a
2019-08-20 04:09:32 -07:00
Daniel Büchele
c1b718db8f Console
Summary: _typescript_

Reviewed By: priteshrnandgaonkar

Differential Revision: D16828108

fbshipit-source-id: ca04853242b2f6511ecf28250add78bbbf79ba05
2019-08-20 04:09:32 -07:00
Daniel Büchele
6e19315e48 Desktop Toolbar
Summary: _typescript_

Reviewed By: priteshrnandgaonkar

Differential Revision: D16828106

fbshipit-source-id: 449b238ac709bbbd26086a054cd9b996385bd29b
2019-08-20 04:09:32 -07:00
Daniel Büchele
0ebacecaf6 TableNativePlugin
Summary: _typescript_

Reviewed By: priteshrnandgaonkar

Differential Revision: D16828096

fbshipit-source-id: 5850ac4dbf120d2e6b38761701b44d20565d00e7
2019-08-20 04:09:31 -07:00
Matthew Brotman
3730167b77 Add macOS as an OS option to CertificateProvider
Reviewed By: danielbuechele

Differential Revision: D16833334

fbshipit-source-id: 74a5e39814ff21d4be26fe2a60b5d201b9cec16b
2019-08-19 14:31:57 -07:00
John Knox
2a903d56c3 Skip layout snapshot test
Reviewed By: priteshrnandgaonkar

Differential Revision: D16897208

fbshipit-source-id: 9f2a2c5234196522e24bb62ab450f5ac56bd68e6
2019-08-19 11:10:37 -07:00
Pritesh Nandgaonkar
7848a2d45c Remove symlink and copy the actual files
Summary: Removes the symlink files and copies the actual files. The OSS build is broken as its not able to access those files.It used to work before as the ship it config used to sync thos files from fbobjc. But that approach is fragile as it broke our OSS build recently, because of this diff D16829348

Reviewed By: jknoxville

Differential Revision: D16891051

fbshipit-source-id: b5146129adc8628d336fbca5936539d2e1131ba2
2019-08-19 07:37:10 -07:00
Benjamin Elo
0cc276dbea Removed navigation plugin gate keeper
Summary: Since I've published docs for the Nav Plugin, might as well remove the Gate Keeper. When integrating the Nav Plugin in our sample app, I've observed that the Plugin is stable.

Reviewed By: passy

Differential Revision: D16857344

fbshipit-source-id: c4b0b5828ae82f6e43cfcb000e7f003c5ccce568
2019-08-19 02:29:03 -07:00
Ram N
0e1c49b6b4 Use a stable sorting algorithm for network plugin
Reviewed By: danielbuechele

Differential Revision: D6982276

fbshipit-source-id: 7a3f01ccaa3557fab24d8a4937d9fb30cc012f20
2019-08-16 11:50:37 -07:00
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