Differentiate insider builds from stable builds
Summary: Each build will have an embedded file specifying the target release channel for the build. This allows us to do some customisations, e.g. show "Insiders" label in the title and enable Sandy by default for insiders builds. Reviewed By: jknoxville Differential Revision: D25399045 fbshipit-source-id: 8e26d0754d0713ced823f86b30b54491d55b4d97
This commit is contained in:
committed by
Facebook GitHub Bot
parent
bc9412426f
commit
56361debb2
@@ -20,6 +20,7 @@ import {Store} from './reducers/index';
|
||||
import dispatcher from './dispatcher/index';
|
||||
import TooltipProvider from './ui/components/TooltipProvider';
|
||||
import config from './utils/processConfig';
|
||||
import appConfig from '../src/fb-stubs/config';
|
||||
import {initLauncherHooks} from './utils/launcher';
|
||||
import {setPersistor} from './utils/persistor';
|
||||
import React from 'react';
|
||||
@@ -40,6 +41,7 @@ import {
|
||||
_setGlobalInteractionReporter,
|
||||
} from 'flipper-plugin';
|
||||
import isProduction from './utils/isProduction';
|
||||
import ReleaseChannel from './ReleaseChannel';
|
||||
|
||||
if (process.env.NODE_ENV === 'development' && os.platform() === 'darwin') {
|
||||
// By default Node.JS has its internal certificate storage and doesn't use
|
||||
@@ -116,7 +118,10 @@ function init() {
|
||||
store,
|
||||
{name: 'loadTheme', fireImmediately: true, throttleMs: 500},
|
||||
(state) => ({
|
||||
sandy: GK.get('flipper_sandy') && !state.settingsState.disableSandy,
|
||||
sandy:
|
||||
(GK.get('flipper_sandy') ||
|
||||
appConfig.getReleaseChannel() === ReleaseChannel.INSIDERS) &&
|
||||
!state.settingsState.disableSandy,
|
||||
dark: state.settingsState.darkMode,
|
||||
}),
|
||||
(theme) => {
|
||||
|
||||
Reference in New Issue
Block a user