Add gk checks in plugin

Summary:
This diff adds gk checks, VPN check and User login check to our plugin.

I added gk checks for Insta and FB apps. There are three kind of GK's. One with FB universe, one with Distillery universe and one with Insta WWW universe. We have API's to check gk with FB and Distillery universe. API to check with Insta WWW universe doesn't exists. There are some technical challenges to build this API. So right now for gks with Insta WWW universe, we just show an notification with info icon. For gks in other universe we aggressively check it when user closes the notif to verify if user assigned himself/herself to it.

In long term we are moving away from gks altogether, we need this UX improvement as it will help users to onboard easily.

See the following flow.

Reviewed By: mweststrate

Differential Revision: D26176996

fbshipit-source-id: 92a931610f9b244c14c6888bb12df936b62edd75
This commit is contained in:
Pritesh Nandgaonkar
2021-02-03 02:22:48 -08:00
committed by Facebook GitHub Bot
parent 9469ad33af
commit 6a0854557e
2 changed files with 18 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ export * from './ui/index';
export {getStringFromErrorLike, textContent, sleep} from './utils/index';
export {serialize, deserialize} from './utils/serialization';
export * from './utils/jsonTypes';
export {default as GK} from './fb-stubs/GK';
export {default as GK, loadGKs, loadDistilleryGK} from './fb-stubs/GK';
export {default as createPaste} from './fb-stubs/createPaste';
export {
internGraphGETAPIRequest,
@@ -47,6 +47,7 @@ export {Store, MiddlewareAPI, State as ReduxState} from './reducers/index';
export {default as BaseDevice} from './devices/BaseDevice';
export {DeviceLogEntry, LogLevel, DeviceLogListener} from 'flipper-plugin';
export {shouldParseAndroidLog} from './utils/crashReporterUtility';
export {deconstructClientId} from './utils/clientUtils';
export {default as isProduction} from './utils/isProduction';
export {createTablePlugin} from './createTablePlugin';
export {default as DetailSidebar} from './chrome/DetailSidebar';