Expose crash reporter plugin to open source
Summary: Exposes crash reporter plugin and export data functionality to open source Reviewed By: passy Differential Revision: D13879149 fbshipit-source-id: ee10097cc9ff1af11e0350f50c855d7766076cd1
This commit is contained in:
committed by
Facebook Github Bot
parent
5b2f100943
commit
0e8b1a7d1a
@@ -9,6 +9,7 @@ export type GKID = string;
|
||||
|
||||
export const TEST_PASSING_GK = 'TEST_PASSING_GK';
|
||||
export const TEST_FAILING_GK = 'TEST_FAILING_GK';
|
||||
const whitelistedGKs: Array<GKID> = ['flipper_crash_reporter_plugin'];
|
||||
|
||||
export default class GK {
|
||||
static init() {}
|
||||
@@ -17,6 +18,9 @@ export default class GK {
|
||||
if (process.env.NODE_ENV === 'test' && id === TEST_PASSING_GK) {
|
||||
return true;
|
||||
}
|
||||
if (whitelistedGKs.includes(id)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user