Show update indicator for non-FB builds

Summary:
Launcher was sort of a proxy for cases where we *wanted* to have an update
mechanism but possibly couldn't use it, e.g. Windows at FB.
This makes sure we can also show this in OSS.

Reviewed By: nikoant

Differential Revision: D20770804

fbshipit-source-id: 62d2dddf9cbd22d51098dda65eea50df420a3078
This commit is contained in:
Pascal Hartig
2020-04-02 06:27:39 -07:00
committed by Facebook GitHub Bot
parent 5ad8106e3f
commit c8e5d95c41
3 changed files with 4 additions and 2 deletions

View File

@@ -91,4 +91,4 @@
"optionalDependencies": { "optionalDependencies": {
"7zip-bin-mac": "^1.0.1" "7zip-bin-mac": "^1.0.1"
} }
} }

View File

@@ -19,6 +19,7 @@ import {reportPlatformFailures} from '../utils/metrics';
import React from 'react'; import React from 'react';
import {shell} from 'electron'; import {shell} from 'electron';
import config from '../utils/processConfig'; import config from '../utils/processConfig';
import isFBBuild from '../fb-stubs/config';
const Container = styled(FlexRow)({ const Container = styled(FlexRow)({
alignItems: 'center', alignItems: 'center',
@@ -91,7 +92,7 @@ export default class UpdateIndicator extends React.PureComponent<Props, State> {
} }
componentDidMount() { componentDidMount() {
if (isProduction() && config().launcherEnabled) { if (isProduction() && (config().launcherEnabled || !isFBBuild)) {
reportPlatformFailures( reportPlatformFailures(
checkForUpdate(this.props.version).then((res) => { checkForUpdate(this.props.version).then((res) => {
if (res.kind === 'error') { if (res.kind === 'error') {

View File

@@ -13,4 +13,5 @@ export default {
showLogin: false, showLogin: false,
showFlipperRating: false, showFlipperRating: false,
warnFBEmployees: true, warnFBEmployees: true,
isFBBuild: false,
}; };