hunk.code_window: import java.util.List;
   import java.util.Map;
   import java.util.Set;
   import host.exp.exponent.Constants;
   import host.exp.exponent.ExponentManifest;
   import host.exp.exponent.analytics.EXL;
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit: import javax.annotation.Nullable;
  
hunk.file_path: android/versioned-abis/expoview-abi41_0_0/src/main/java/abi41_0_0/host/exp/exponent/ExponentPackage.java
hunk.type: add
file: {"version":3,"file":"ErrorRecovery.fx.js","sourceRoot":"","sources":["../src/ErrorRecovery.fx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,EAAE;IACzB,MAAM,aAAa,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC;IACpD,oCAAoC;IACpC,iIAAiI;IACjI,UAAU,CAAC,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;QACnD,IAAI,iBAAiB,CAAC,iBAAiB,EAAE;YACvC,MAAM,iBAAiB,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,CAAC,CAAC;SACrE;QACD,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;CACJ;KAAM,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,IAAI,QAAQ,CAAC,cAAc,EAAE;IAC3D,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;QACpC,iBAAiB,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;CACJ","sourcesContent":["import { Platform } from '@unimodules/core';\n\nimport { getRecoveryPropsToSave } from './ErroRecoveryStore';\nimport ExpoErrorRecovery from './ExpoErrorRecovery';\n\nif (Platform.OS !== 'web') {\n  const globalHandler = ErrorUtils.getGlobalHandler();\n  // ErrorUtils came from react-native\n  // https://github.com/facebook/react-native/blob/1151c096dab17e5d9a6ac05b61aacecd4305f3db/Libraries/vendor/core/ErrorUtils.js#L25\n  ErrorUtils.setGlobalHandler(async (error, isFatal) => {\n    if (ExpoErrorRecovery.saveRecoveryProps) {\n      await ExpoErrorRecovery.saveRecoveryProps(getRecoveryPropsToSave());\n    }\n    globalHandler(error, isFatal);\n  });\n} else if (Platform.OS === 'web' && Platform.isDOMAvailable) {\n  window.addEventListener('error', () => {\n    ExpoErrorRecovery.saveRecoveryProps(getRecoveryPropsToSave());\n  });\n}\n"]}