Summary: - Adds the Flipper notifications UI from the hackweek - The notifications plugin is hidden behind a GK `flipper_notifications` - Plugins currently can not dispatch any notifications Reviewed By: jknoxville, passy Differential Revision: D10300838 fbshipit-source-id: 2a3a823f09fee3370ce725b506b162e57751c382
26 lines
621 B
JavaScript
26 lines
621 B
JavaScript
/**
|
|
* Copyright 2018-present Facebook.
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
* @format
|
|
*/
|
|
|
|
import type {FlipperDevicePlugin} from '../plugin.js';
|
|
|
|
import {GK} from 'flipper';
|
|
import logs from './logs/index.js';
|
|
import cpu from './cpu/index.js';
|
|
import notifications from './notifications/index.js';
|
|
|
|
const plugins: Array<Class<FlipperDevicePlugin<any>>> = [logs];
|
|
|
|
if (GK.get('sonar_uiperf')) {
|
|
plugins.push(cpu);
|
|
}
|
|
|
|
if (GK.get('flipper_notifications')) {
|
|
plugins.push(notifications);
|
|
}
|
|
|
|
export const devicePlugins = plugins;
|