Commit Graph

2291 Commits

Author SHA1 Message Date
Pascal Hartig
0298ae74d0 Disable openssl in libevent by default
Summary: It's getting really tedious to turn these off one by one.

Reviewed By: jknoxville

Differential Revision: D17366198

fbshipit-source-id: 25443d7a18c81cd18edea21d75cfa70e4fbf4171
2019-09-13 08:56:41 -07:00
Pascal Hartig
b3a41bd38d Fix RSocket build.gradle
Summary: This got really badly mauled by a codemod I reckon.

Reviewed By: jknoxville

Differential Revision: D17366199

fbshipit-source-id: 6f1863e5e3d3ed26753723cf666b70655601a8de
2019-09-13 08:56:41 -07:00
Pascal Hartig
23766ebf39 Remove easywsclient
Summary: This seems to be entirely unused now.

Reviewed By: jknoxville

Differential Revision: D17366175

fbshipit-source-id: f8257bc4e85785407031ed661a48b26a58927412
2019-09-13 08:56:41 -07:00
Pascal Hartig
81b2487b8a Attempt to build with newer SDK/NDK (#543)
Summary:
Current builds are failing and I'm not quite sure why.
Pull Request resolved: https://github.com/facebook/flipper/pull/543

Reviewed By: jknoxville

Differential Revision: D17364947

Pulled By: passy

fbshipit-source-id: 07c418e340cabb70806c8f73b4eb867ba7e0fc4b
2019-09-13 08:56:41 -07:00
Daniel Büchele
e33f72bb21 use adbkit instead of adbkit-fb
Summary: Finally we are able to switch back from our adbkit-fb fork to the original `adbkit`. Replacing all imports

Reviewed By: jknoxville

Differential Revision: D17343236

fbshipit-source-id: e6dd328f1a956544e8be2ab768aa270972463c6b
2019-09-13 05:28:31 -07:00
Daniel Büchele
b3de081f68 clear logs
Summary:
- clear logs using executeShell
- remove unused spawnShell

Reviewed By: jknoxville

Differential Revision: D17343235

fbshipit-source-id: 4353b2ebc00e35b31e815e405534a78b65a3eabb
2019-09-13 05:28:30 -07:00
Daniel Büchele
62a73fff14 use adbkit
Summary: Replace the custom call to ADB with using this.device.adb`.

Reviewed By: jknoxville

Differential Revision: D17343234

fbshipit-source-id: c83fe295ec2c3f994e545a93aa580f44e91291fb
2019-09-13 05:28:30 -07:00
Daniel Büchele
4e7cf077b8 adbkit typing
Summary: Adding proper types for adbkit (extracted from their documentation)

Reviewed By: passy

Differential Revision: D17342184

fbshipit-source-id: da0fc0264961ca3a0fa775ab5165d20872042eb8
2019-09-13 05:28:30 -07:00
Daniel Büchele
01be3dc5d1 refactor screen recording
Summary:
moving logic for screen recordings to the respective devices, instead of having it in the button component.
This is part of my wider effort to unify our use of adb/adbkit and upgrade to the latest version of adbkit.

Reviewed By: passy

Differential Revision: D17318702

fbshipit-source-id: cff4459047d7a197ed6cb8ee8c290b4eaab41479
2019-09-13 05:28:29 -07:00
Pascal Hartig
b7ad035742 Add type annotations to iOSDevice
Summary:
Not ideal to just assert a type based on JSON output
but better than the `ts-ignore` because complete
misuse of the functions is still caught.

Reviewed By: jknoxville

Differential Revision: D17346265

fbshipit-source-id: 52d8109a11f552b912b67b1074cb906cb2cc161b
2019-09-13 02:35:47 -07:00
Pascal Hartig
cf956c91e5 Remove unused flow-type defs
Summary: Per title

Reviewed By: danielbuechele

Differential Revision: D17346048

fbshipit-source-id: 10bd37c0447f898f6e37831c340788d8c6538e58
2019-09-12 10:20:08 -07:00
Pascal Hartig
cbbe32b9b9 Remove FlowFixMe's from TypeScript
Summary: This diff was a joy to draft.

Reviewed By: jknoxville

Differential Revision: D17344676

fbshipit-source-id: 0694d0393fa243edef61408ecfee92912fbbfa32
2019-09-12 10:20:08 -07:00
Pascal Hartig
f41cbcd429 Add land-time eslint job
Summary: This will block us from landing eslint-failing tests.

Reviewed By: jknoxville

Differential Revision: D17342861

fbshipit-source-id: a42e3bc3fffe8f24420203f399fb702907069132
2019-09-12 10:10:49 -07:00
John Knox
9ee487cf43 Proactively ask users for feedback based on ITSREligibilityCheck
Summary:
Gets the rating popover to appear automatically after 30s for selected users, according to ITSR constraints.

The ITSR constraints are to stop it annoying people, such as only happening once a month, and global throttling.

Reviewed By: passy

Differential Revision: D17343435

fbshipit-source-id: c06aa10263a64249f7e2c48b8752c37e4314ac24
2019-09-12 08:21:30 -07:00
John Knox
d3be6357ef Send dismiss event when popover is closed
Summary: Dismissing the popover will stiop the user from being prompted for a while, so we only want to send this event when the user was proactively prompted in the first place - which is when we're using the eligibility check.

Reviewed By: passy

Differential Revision: D17343227

fbshipit-source-id: 95a071e34ce318fe49640c6ee9f68127957f390c
2019-09-12 08:21:29 -07:00
John Knox
25739aebc2 Only show rating button when user is eligible to rate
Summary:
Behind a gk.

This uses a hidden webview to check if a user is eligible for star ratings. This means you can practively ask the user, and makes sure you'll get an unbiased distribution.

Reviewed By: danielbuechele

Differential Revision: D17343118

fbshipit-source-id: fe7471416aef947ec10f4734e4136868ab5ab3e5
2019-09-12 08:21:29 -07:00
Pascal Hartig
7e0b66ae8e Add linux/windows download buttons
Summary:
There's probably a more elegant way for doing this
so please let me know if you can think of something.

Reviewed By: danielbuechele

Differential Revision: D17318727

fbshipit-source-id: 9afcc30205171cfb07f0a749c552692cb40a3ced
2019-09-12 08:12:43 -07:00
Pascal Hartig
c84d16334b Remove redundant flow suppression
Summary: Per title.

Reviewed By: jknoxville

Differential Revision: D17341999

fbshipit-source-id: 181de3fd49c7dc48c4dc0b5f2e83e760f4cf873d
2019-09-12 08:12:42 -07:00
Pascal Hartig
c0cffe1240 Pass on launcherEnabled flag
Summary:
This is a bit embarrassing. It seems like I never wired this up which is
why the update indicator keeps coming up even if the app was started
by the Launcher.

This actually makes sure that we proxy the yargs flag through to
`processConfig`.

Reviewed By: jknoxville

Differential Revision: D17341896

fbshipit-source-id: 73602e2035c26fb0d03e853a4e94065af3986757
2019-09-12 08:12:42 -07:00
Pascal Hartig
2da06587ba Document reason for ts-ignore in init.tsx
Summary: Per title

Reviewed By: jknoxville

Differential Revision: D17343033

fbshipit-source-id: ce61866cd82ed68ee03d3e3261d7fba15f73eec0
2019-09-12 08:09:45 -07:00
Pascal Hartig
239bb27ed1 Remove ts-ignore for TableNativePlugin
Summary:
Unnecessary and very broad - effectively disabling
all of tsc for the class.

Reviewed By: jknoxville

Differential Revision: D17342993

fbshipit-source-id: 609ce2cbd69bd83749111f64b1784fd4965c9704
2019-09-12 08:09:45 -07:00
Pascal Hartig
e25c1e7aaf Remove unnecessary ts-ignore for archive
Summary:
This is a pretty broad ignore which doesn't seem required
but could hide real bugs.

Reviewed By: jknoxville

Differential Revision: D17342033

fbshipit-source-id: c7941e383936e44e39eff3fb7eced1d85a0d6417
2019-09-12 08:06:00 -07:00
Pascal Hartig
64373aac0a Fix formatting
Summary: Hmm, how did this land despite the formatting error?

Reviewed By: jknoxville

Differential Revision: D17342057

fbshipit-source-id: 514be1548feb024cc107139ac962b0d69ff42198
2019-09-12 08:03:13 -07:00
Benjamin Elo
99cfc14134 Display iOS patterns when iOS device is used
Summary:
Previously url's were displayed only for the Android app even if the user was using the iOS app.

This commit displays the url's for the iOS app if the user is using the iOS app.

Reviewed By: danielbuechele

Differential Revision: D17318175

fbshipit-source-id: 3bd8be4de55ea5b3ce634c2c6b713cba14ffcccd
2019-09-12 02:51:38 -07:00
Pascal Hartig
99b4436ceb Only show update indicator in non-launcher environments
Summary:
I didn't update the render logic accordingly after figuring
out how the internal update endpoint works. This closes
that gap.

Reviewed By: danielbuechele

Differential Revision: D17316892

fbshipit-source-id: 1e6c4dd17b342b2a062cea90d763be01ed6fc1ec
2019-09-11 11:08:17 -07:00
Pascal Hartig
96f5a87867 Docs for building windows/linux standalone apps
Summary: Closes https://github.com/facebook/flipper/pull/545

Reviewed By: jknoxville

Differential Revision: D17315711

fbshipit-source-id: 9ea02b50a76eb175d8df49577c45905799295233
2019-09-11 08:22:26 -07:00
Pascal Hartig
f578e16a86 Enable strict mode
Summary: BOOM 💥

Reviewed By: danielbuechele

Differential Revision: D17314462

fbshipit-source-id: 19d848532e1809cdfdd630f91d034bbbc9f6025d
2019-09-11 07:39:36 -07:00
Pascal Hartig
4dce625d1e Make server.electron.tsx strict
Summary: Mostly exclaming here, but it's a test so ... �

Reviewed By: danielbuechele

Differential Revision: D17314463

fbshipit-source-id: 84a4cb9d5b91865b7f723c883dc4840479db9aa3
2019-09-11 07:39:36 -07:00
Pascal Hartig
57444fc3a7 Add types for redux-mock-store
Summary: Per titles

Reviewed By: danielbuechele

Differential Revision: D17314439

fbshipit-source-id: 3d8ed55c4e9eb19f338e6830bf1761cdfa020a23
2019-09-11 07:39:36 -07:00
John Knox
aac0927e25 Fix outline icon variant
Summary:
Icon names including the -outline suffix get stripped out so the local path becomes the filled variant by default.
But it's only observable in release builds, because they are the only ones that use local icons.
This should fix that by keeping the variant in the local icon path as well.

Reviewed By: danielbuechele

Differential Revision: D17314646

fbshipit-source-id: b8402d85b1cc690caef7870194e60f22d17dca05
2019-09-11 07:22:22 -07:00
Pascal Hartig
f48fe21eaa Make client.device fulfill type constraints
Summary:
This is an interesting invariant that TS caught here. We
expect `getDevice()` to always return a device but it
cannot because it's set lazily. John Knox suggested we instead
set up a promise in the constructor and resolve it instead of
overriding the stateful promise later.

Reviewed By: jknoxville

Differential Revision: D17313468

fbshipit-source-id: 8fd75f2720546abf67beead23db56216f1a5e0df
2019-09-11 05:38:19 -07:00
Pritesh Nandgaonkar
a35fd7389f Strictify adbConfig
Summary: As per title

Reviewed By: passy

Differential Revision: D17285741

fbshipit-source-id: 8d2693c09d5dfa6d71cb6aedbb0504d09200f4ac
2019-09-11 05:27:19 -07:00
Pascal Hartig
6df299425e Fix dispatcher/notifications.tsx strict errors
Summary: And remove one migration warning that no longer applies.

Reviewed By: danielbuechele

Differential Revision: D17313469

fbshipit-source-id: f29a096a0da7c14735d1d5666a54a3351df54821
2019-09-11 04:40:28 -07:00
John Knox
1b382d59c0 Fix menubar types
Reviewed By: danielbuechele

Differential Revision: D17166332

fbshipit-source-id: d87dfd802c39863a275e5911ebebddb2676e190e
2019-09-11 03:50:54 -07:00
Daniel Büchele
9aef4f55cf server.device.tsx
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17284631

fbshipit-source-id: 79d407c6d90b91f16caf226f41c0b4cfbd78fc95
2019-09-11 03:04:56 -07:00
Daniel Büchele
4fd059f4a1 createTablePlugin tests
Summary: _typescript_

Reviewed By: passy

Differential Revision: D17284508

fbshipit-source-id: 741c6624abbc6aab286d28416b2093ba5aab68cf
2019-09-11 03:04:55 -07:00
Daniel Büchele
bb70b53c7c headless
Summary: _typescript_

Reviewed By: passy

Differential Revision: D17284499

fbshipit-source-id: 7306e36772911044a1d8b36c4a38f79b861eb2e6
2019-09-11 03:04:55 -07:00
Daniel Büchele
fbe8e92991 ExportDataPluginSheet
Summary: _typescript_

Reviewed By: passy

Differential Revision: D17284491

fbshipit-source-id: d19a98dd5e6b0ee7d1ac81acfbc814b229894ecb
2019-09-11 03:04:55 -07:00
Daniel Büchele
e1b0af0f4b LocationsButton
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17284485

fbshipit-source-id: 7de710e7302413bc4735f0b0e31770c045a84fe6
2019-09-11 03:04:54 -07:00
Daniel Büchele
fe6813042c DevicesButton
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17284473

fbshipit-source-id: 2a0586dc3147338c8335eadb4dcbe158e8f1dc97
2019-09-11 03:04:54 -07:00
Daniel Büchele
f2812aff7a BugReporterDialog
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17284465

fbshipit-source-id: 1c874b320ca76455576b0a2b4db6e007e4e27e4b
2019-09-11 03:04:54 -07:00
Daniel Büchele
ded9d863f0 MainSidebar
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17282353

fbshipit-source-id: 51c7a31dbbbc528952aa182f689f1f9862f10a38
2019-09-11 03:04:53 -07:00
Daniel Büchele
bf6ca07d09 PluginDebugger
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17282352

fbshipit-source-id: 7f285156d1dd0468ebc607dc359cc1f30cfe2831
2019-09-11 03:04:53 -07:00
Daniel Büchele
0e6ba5c4e2 RatingButton
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17282354

fbshipit-source-id: 6d65a2735973cb46c133f2e38574d457e2aa484a
2019-09-11 03:04:53 -07:00
Daniel Büchele
ac120aa59c [strict[ ScreenCaptureButton
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17282357

fbshipit-source-id: 6ddd912978faa30195f59971f19d29d3ea79342b
2019-09-11 03:04:52 -07:00
Daniel Büchele
7e833b1d70 ShareSheet
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17282355

fbshipit-source-id: 37c47c068c5f49d10da949e628f6e9b397aabf7b
2019-09-11 03:04:52 -07:00
Daniel Büchele
a3af4a1cb1 UserAccount
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17282356

fbshipit-source-id: 66008627a7a4d5fce453a5b094051cd7767634d6
2019-09-11 03:04:52 -07:00
Chaiwat Ekkaewnumchai
faee603605 Recreate Array to Prevent Same Memory Usage
Summary: Plugin is moved up as soon as it gets clicked because of the same array reference

Reviewed By: jknoxville

Differential Revision: D17285335

fbshipit-source-id: c4413844fe07a9aed77e4b0e9fb5f5e025d722ca
2019-09-10 10:45:40 -07:00
John Knox
bd35768590 Auto-focus on comment box and submit with enter key
Reviewed By: passy

Differential Revision: D17284726

fbshipit-source-id: 75c76b204668a9fcd770e68dbccad278dc81d8e4
2019-09-10 10:40:04 -07:00
Pritesh Nandgaonkar
263a738972 Strictify adbClient
Summary: As per title

Reviewed By: jknoxville

Differential Revision: D17284770

fbshipit-source-id: 85bc6b2b19b38f409b7eb0fda6fb94655a05c0d9
2019-09-10 10:36:15 -07:00