Commit Graph

8645 Commits

Author SHA1 Message Date
Fúlvio Abrahão de Paula
9728155cbf Consider NSNull object as type=null in ObjectMapper.
Summary: nil objects from sqlite is NSNull object, so we need to consider this case in the ObjectMapper as well.

Differential Revision: D48394360

fbshipit-source-id: 61bcdb03cb4cbf17a2fef000a5a61ac2f2c035dd
2023-08-17 11:19:50 -07:00
Fúlvio Abrahão de Paula
fb47b70d36 Parse NSDictionary in ObjectMapper.
Summary: Some objects returned from sqlite in json blob is a NSDictionary, we need to parse data at this case.

Differential Revision: D48394361

fbshipit-source-id: c977ebdd33c392fca77741cdacdeb0c975e2ca36
2023-08-17 11:19:50 -07:00
Lorenzo Blasa
b45eed0e9a 'Capture' cancel on file import
Summary:
There's no explicit way of knowing if the file selection dialog was dismissed/canceled without a selection.

Instead, subscribe once to the windows focus event, as it will the event will be received when this happens.

Reviewed By: antonk52

Differential Revision: D48434187

fbshipit-source-id: dd20c55885bb3ef6bef423e17a2606d71ede288d
2023-08-17 08:57:55 -07:00
github-actions[bot]
84e0eaa004 Automated: Update Podfile.lock (#5048)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

Pull Request resolved: https://github.com/facebook/flipper/pull/5048

Reviewed By: ivanmisuno

Differential Revision: D48397521

Pulled By: passy

fbshipit-source-id: 2333aa312f982b2ceff1dd2a2f8dfe9d0e63c893
2023-08-17 08:15:18 -07:00
David Vacca
65603771a9 Refactor all usages of import NetworkingModule.setCustomClientBuilder
Summary:
Refactor all usages of import NetworkingModule.setCustomClientBuilder to use CustomClientBuilder instead of NetworkModule.CustomClientBuilder

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D48280921

fbshipit-source-id: ffa979defb34ecaac9d327eaafee33598ea22b5d
2023-08-15 12:26:12 -07:00
generatedunixname89002005306973
8094370aba Flipper Snapshot Bump: v0.211.2-SNAPSHOT
Summary: Releasing snapshot version 0.211.2-SNAPSHOT

Reviewed By: passy

Differential Revision: D48349387

fbshipit-source-id: 121bf5516809f1b719be130379949de76895d944
2023-08-15 06:56:48 -07:00
generatedunixname89002005306973
7ef7b9a248 Flipper Release: v0.211.1
Summary: Releasing version 0.211.1

Reviewed By: passy

Differential Revision: D48349388

fbshipit-source-id: 7e152acb6009148bfbade2ee282bc681e12b110f
2023-08-15 06:56:48 -07:00
Lorenzo Blasa
007cdfee76 Enable flipper import/export
Summary: These two functions were not enabled for the browser experience.

Reviewed By: antonk52

Differential Revision: D48315991

fbshipit-source-id: 2944a386d9de8a06b043305e7ceb8a6c41e11209
2023-08-14 11:33:06 -07:00
Lorenzo Blasa
ff6f98fc0d Import File implementation
Summary: Implementation was missing for the browser. This provides a default implementation.

Reviewed By: aigoncharov

Differential Revision: D48311198

fbshipit-source-id: fd067600f571234e0fbccfb90853b62f175ff8fb
2023-08-14 11:33:06 -07:00
Fúlvio Abrahão de Paula
2f5f4911e5 Refactor FlipperKitDatabasePlugin to accept multiple database drivers.
Reviewed By: lblasa

Differential Revision: D48316901

fbshipit-source-id: 0eb7b93f53ce115a0a031a58ecef3db963b35f09
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
661ed9eb44 Isolate duplicated code in DatabasesManager.
Reviewed By: lblasa

Differential Revision: D48316900

fbshipit-source-id: 2ae984f0d6f10b9cb843a74f335c77428d2229ef
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
d102ae263c Fix mocks to return correct expected results.
Reviewed By: lblasa

Differential Revision: D48315430

fbshipit-source-id: 3a9210b6c4ce8192ff5489d2616e6a37264309b2
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
d9b34e7880 Return right format for databaseGetTableStructureResponseToDictionary method.
Reviewed By: lblasa

Differential Revision: D48315431

fbshipit-source-id: fc4ca1bc20e691162dfbe61a90a5ab9bf8df2466
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
7ba548d6e7 Implement executeSql command.
Reviewed By: lblasa

Differential Revision: D48310925

fbshipit-source-id: 136b7f09a3a1b886111b6e3cb0e377b73b126e59
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
42fb6f09f7 Implement getTableData command.
Reviewed By: lblasa

Differential Revision: D48267029

fbshipit-source-id: a2ee02d3d0c465c83acd99fd7093e0abb5c7c2de
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
a0510ad1bf Implement getTableInfo command.
Reviewed By: lblasa

Differential Revision: D48266744

fbshipit-source-id: 79f2fd3c4718d6bf7be4a0538ec0d1eb92503eb7
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
453b8f7b96 Implement getTableStructure command.
Reviewed By: lblasa

Differential Revision: D48191484

fbshipit-source-id: 6838590f4e10b4613074e9e9d112a62d4688f739
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
ce85f44a33 Create commands data models and add ObjectMapper.
Reviewed By: lblasa

Differential Revision: D48188172

fbshipit-source-id: 10c99250f993c71976c693a691586385d111a4fd
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
9db2c74632 Implement databaseList command and Add MockDatabaseDriver.
Reviewed By: lblasa

Differential Revision: D48172577

fbshipit-source-id: 10d6301041b3a4b3ab83b19e9afd3eac7ad7004c
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
fea326be79 Implement similar structure we have in Java plugin.
Reviewed By: lblasa

Differential Revision: D48172579

fbshipit-source-id: b2127507b04cdb85f426313e71405a81103e42bd
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
3003330067 Create initial databases plugin structure.
Reviewed By: lblasa

Differential Revision: D48172580

fbshipit-source-id: d000329c2fe8ebc12f59e3165861b1e8033ddbbe
2023-08-14 11:07:07 -07:00
David Vacca
76341a0215 Fix NoSuchMethodError when calling FbReactApplicationBaseSonarUtil.startSonarClient
Summary:
This diff is fixing a NoSuchMethodError when calling FbReactApplicationBaseSonarUtil.startSonarClient.

This is causing catalyst Android app to not start.

This was caused by D47468613, which changed the signature of the method

Reviewed By: cortinico

Differential Revision: D48275730

fbshipit-source-id: 4693c299dbd3b6a9ad58a1439bddd9e4bfb8bdf5
2023-08-14 09:54:54 -07:00
Pascal Hartig
29f072fc75 ACTUALLY disable dokka builds (#5005)
Summary:
This should hopefully unblock our Android builds for real this time. I didn't realise that the AGP itself seems to ship with a version of Dokka, so just removing the import didn't actually address the problem we were seeing.

Pull Request resolved: https://github.com/facebook/flipper/pull/5005

Test Plan:
```
./gradlew publishToMavenLocal -PRELEASE_SIGNING_ENABLED=false
```

This now succeeds.

Reviewed By: jknoxville

Differential Revision: D48312784

Pulled By: passy

fbshipit-source-id: f049e089a511726857f544386fe13dcb50fb2971
2023-08-14 06:34:51 -07:00
Lorenzo Blasa
bdbf5794ee Remove [conn] from log
Summary: Not really a connectivity related log, so removed [conn] from it.

Reviewed By: passy

Differential Revision: D48266546

fbshipit-source-id: e384301d6301940366b594b4bc612349cc2264ce
2023-08-11 14:16:21 -07:00
Lorenzo Blasa
9e2615cd80 Better troubleshoot guide to kill existing running instance
Summary: Combine the two used commands as will make things easier for our users.

Reviewed By: passy

Differential Revision: D48266474

fbshipit-source-id: 1ee5c568ff001dc5ba3f11e21b09a2a6ab430ac7
2023-08-11 14:16:21 -07:00
github-actions[bot]
84987b888b Automated: Update Podfile.lock (#5000)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

Pull Request resolved: https://github.com/facebook/flipper/pull/5000

Reviewed By: lblasa

Differential Revision: D48268231

Pulled By: passy

fbshipit-source-id: 9f28d68aeeca2c921a9298cbfad7c13e261b6900
2023-08-11 12:08:42 -07:00
Andrey Goncharov
359392a44c Match isProduction definitions
Summary:
Match isProduction definition in flipper-common and flipper-server/src/index.tsx.

Without it, PWA never quits after all clients disconnect because Flipper Launcher does not set NODE_ENV to production currently (changed in the next diff)

Reviewed By: LukeDefeo, lblasa

Differential Revision: D48265768

fbshipit-source-id: 59e4660cb57da20b606562144c47c65276999d6c
2023-08-11 10:56:38 -07:00
Lorenzo Blasa
b5ed57b7d0 Remove UDS and thus the need for a proxy server
Summary: This change removes the UDS support and thus the need for having a proxy server.

Reviewed By: antonk52

Differential Revision: D48265244

fbshipit-source-id: c76bb4afba63959ddd17901b3887aa278b000beb
2023-08-11 08:19:51 -07:00
Lorenzo Blasa
7f3f1c0507 TCP is the only option so remove unused branches
Summary: As TCP is the only option, remove all branches.

Reviewed By: passy

Differential Revision: D48265093

fbshipit-source-id: 174527f05d8a841797fd95256e77fdeb9b2e6ad5
2023-08-11 08:19:51 -07:00
Lorenzo Blasa
47b718d104 Remove TCP option as it will be the only option
Summary: UDS will be removed. The first step would be to remove the TCP optionality.

Reviewed By: passy

Differential Revision: D48264741

fbshipit-source-id: ca9e1b68be61e99240e95bcd4f26f2db63a64005
2023-08-11 08:19:51 -07:00
Lorenzo Blasa
bdc2d5f6eb If there are no connected clients, shutdown immediately
Summary: Instead of delaying the shutdown by a set timer, immediately shutdown.

Reviewed By: antonk52

Differential Revision: D48264571

fbshipit-source-id: 5e6556f2ecafb7cf9a19b3075e72f2be1abf9f95
2023-08-11 08:19:51 -07:00
Lorenzo Blasa
f93da44ee5 Remove idb device polling record
Summary:
If listing devices is successful, then don't record the event
as this is triggered every X amount of seconds.

Reviewed By: antonk52

Differential Revision: D47995681

fbshipit-source-id: 2d0fa68fd7b9c4ce74bad9e8cc0296691d9b8880
2023-08-11 08:19:51 -07:00
Andrey Goncharov
3b99e386a2 Fix comment
Reviewed By: LukeDefeo

Differential Revision: D48191671

fbshipit-source-id: 6978e831f48ffe4e8a8c6e71b819205cb3868966
2023-08-09 14:15:33 -07:00
generatedunixname89002005306973
8749145664 Flipper Snapshot Bump: v0.211.1-SNAPSHOT
Summary: Releasing snapshot version 0.211.1-SNAPSHOT

Reviewed By: ivanmisuno

Differential Revision: D48185751

fbshipit-source-id: 4190086bd4545ff09dd278c61c5b152cb3a65a80
2023-08-09 09:23:44 -07:00
generatedunixname89002005306973
22f67e389f Flipper Release: v0.211.0
Summary: Releasing version 0.211.0

Reviewed By: ivanmisuno

Differential Revision: D48185752

fbshipit-source-id: 9e81f1e869e86194e8d90d83a3a988c778bb22e4
2023-08-09 09:23:44 -07:00
Andrey Goncharov
2834d3300a Track filtering and searching for data table
Reviewed By: mweststrate

Differential Revision: D48116067

fbshipit-source-id: 2dee2cfd68a23e1153b3f10ff229009777e936da
2023-08-09 08:01:44 -07:00
Luke De Feo
b30f7492cd Add connection listeners and framework events
Summary: Infra that will be used to capture litho framework events

Reviewed By: lblasa

Differential Revision: D47951601

fbshipit-source-id: 1dd756dc872d474f2872ff8cac1fd6aa3697e42b
2023-08-08 11:43:05 -07:00
Hamdullah Shah
0fdd901297 DataDescriptor BigInt
Summary: The `DataDescriptionType` accepts the `BigInt` type but it doesn't render. Added the `case` for that and reuse the `NumberValue` tag for it.

Reviewed By: aigoncharov

Differential Revision: D48152012

fbshipit-source-id: 32ebc8a37df34d57b40c7ecdad331c547415b335
2023-08-08 09:50:08 -07:00
Pascal Hartig
24cfd74252 Remove dokka plugin (#4995)
Summary:
[gradle] Remove dokka plugin
This is currently breaking our jetpack-compose build and blocks the entire release
as a consequence: https://github.com/facebook/flipper/issues/4970

There are all sorts of workarounds but they require changing the java target
which could have other downstream consequences: https://github.com/Kotlin/dokka/issues/2956

We don't actually rely on these artefacts at all, so it's probably safe to just disable this.

Closes https://github.com/facebook/flipper/issues/4970

Pull Request resolved: https://github.com/facebook/flipper/pull/4995

Test Plan: ./gradlew publishToMavenLocal

Reviewed By: antonk52

Differential Revision: D48062872

Pulled By: passy

fbshipit-source-id: aef0696d5ac83dd50bcbb96b0552f9b222f5a566
2023-08-07 11:18:54 -07:00
github-actions[bot]
25ff271633 Automated: Update Podfile.lock (#4994)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

Pull Request resolved: https://github.com/facebook/flipper/pull/4994

Reviewed By: mweststrate

Differential Revision: D48112730

Pulled By: passy

fbshipit-source-id: 1429d64dc5c200a8af3eb162702cf81e1c9af72a
2023-08-07 10:56:27 -07:00
generatedunixname89002005306973
48f7f2a913 Flipper Snapshot Bump: v0.210.2-SNAPSHOT
Summary: Releasing snapshot version 0.210.2-SNAPSHOT

Reviewed By: passy

Differential Revision: D48112783

fbshipit-source-id: 028a67f14456bea110d2eab65e15fa6ff766501d
2023-08-07 09:21:54 -07:00
generatedunixname89002005306973
1b0a5f4320 Flipper Release: v0.210.1
Summary: Releasing version 0.210.1

Reviewed By: passy

Differential Revision: D48112784

fbshipit-source-id: 8a6303e7cfeabd2b7f13a48be9c5f8bb0c0f5616
2023-08-07 09:21:54 -07:00
Anton Kastritskiy
9cceca6d7e Move notifications into a modal and remove app inspect
Summary: Also removing topLevelSelection as it is no longer used in flipper

Reviewed By: aigoncharov

Differential Revision: D48069386

fbshipit-source-id: 6e4cdd6aab67d2cd30ac1884118703520125bf84
2023-08-07 03:54:28 -07:00
Anton Kastritskiy
08371d3a6b Move troubleshooting guide into a modal
Reviewed By: aigoncharov

Differential Revision: D48066773

fbshipit-source-id: 05aca8c75aa30325e1a8c5f31301db1e89ec25af
2023-08-07 03:54:28 -07:00
Anton Kastritskiy
60419c54f2 Flipper logs displayed in a modal
Summary: This is a continuation of flipper redesign. Next diff will mov notification and connectivity into modals as well

Reviewed By: LukeDefeo

Differential Revision: D48066573

fbshipit-source-id: 3b4a22462221d8da13b07ad1738e05de849e00c4
2023-08-07 03:54:28 -07:00
Luke De Feo
9ed2b801a0 Make screen recording state more obvious
Summary: Feedback from support group said it wasnt clear when recording was on

Reviewed By: antonk52

Differential Revision: D48027414

fbshipit-source-id: db61a9806da285610e8f550ceff5af4d7b7acb47
2023-08-03 04:16:22 -07:00
generatedunixname89002005306973
a5ead5036b Flipper Snapshot Bump: v0.210.1-SNAPSHOT
Summary: Releasing snapshot version 0.210.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D47994317

fbshipit-source-id: 0da5a04ee1ee3be39bb26f4dab9252ab9de3d009
2023-08-02 09:48:04 -07:00
generatedunixname89002005306973
f81eb544fa Flipper Release: v0.210.0
Summary: Releasing version 0.210.0

Reviewed By: lblasa

Differential Revision: D47994316

fbshipit-source-id: 24559a57d58a769f6e578cf344135522e4e7c9be
2023-08-02 09:48:04 -07:00
Lorenzo Blasa
5debb4cae8 Troubleshoot by killing debugging bridge
Summary: Add an option to kill the debugging bridge directly within Flipper.

Reviewed By: antonk52

Differential Revision: D47990786

fbshipit-source-id: 30cd8ca1d55e8b2ade03700d884e5d849a2dadbf
2023-08-02 07:56:17 -07:00
Lorenzo Blasa
4e998ac083 Get OS by inspecting command
Summary: Commands can be idb or adb. If no ClientQuery is provided, set the OS accordingly.

Reviewed By: antonk52

Differential Revision: D47990745

fbshipit-source-id: 3e38b6ecb0a8ea21e584c1d6eff6feb53dd2cfab
2023-08-02 07:56:17 -07:00