|
6 | 6 |
|
7 | 7 | import {NativeModules, NativeAppEventEmitter, Platform} from 'react-native';
|
8 | 8 | let {Instabug} = NativeModules;
|
9 |
| -import instabugUtils from './utils/instabugUtils.js'; |
10 | 9 |
|
11 | 10 | /**
|
12 | 11 | * Instabug
|
@@ -475,34 +474,6 @@ module.exports = {
|
475 | 474 | Instabug.isInstabugNotification(dict, isInstabugNotificationCallback);
|
476 | 475 | },
|
477 | 476 |
|
478 |
| - /** |
479 |
| - * Report a caught exception to Instabug dashboard |
480 |
| - * |
481 |
| - * @param error the error to be reported |
482 |
| - * @param errorIdentifier used to group issues manually reported |
483 |
| - * @throws Error if error param type wasn't Error |
484 |
| - */ |
485 |
| - reportJsException: function (error, errorIdentifier) { |
486 |
| - if (!error || !error instanceof Error) |
487 |
| - throw new TypeError("Invalid param type at param1, Expected Error"); |
488 |
| - |
489 |
| - let jsStackTrace = instabugUtils.parseErrorStack(error); |
490 |
| - if (!errorIdentifier) |
491 |
| - Instabug.reportJsException(jsStackTrace, error.message, null); |
492 |
| - else if (errorIdentifier) { |
493 |
| - Instabug.reportJsException(jsStackTrace, error.message, errorIdentifier); |
494 |
| - } |
495 |
| - }, |
496 |
| - |
497 |
| - /** |
498 |
| - * Report un-caught exceptions to Instabug dashboard |
499 |
| - * We don't send exceptions from __DEV__, since it's way too noisy! |
500 |
| - */ |
501 |
| - captureJsErrors(){ |
502 |
| - if (Platform.OS === 'android') |
503 |
| - instabugUtils.captureJsErrors(); |
504 |
| - }, |
505 |
| - |
506 | 477 | /**
|
507 | 478 | * Add file to attached files with each report being sent.
|
508 | 479 | * A new copy of the file at fileURL will be attached with each bug report being sent. The file is only copied
|
|
0 commit comments