Skip to content

Commit cabacb6

Browse files
committed
Remove capture errors
1 parent f4edf87 commit cabacb6

File tree

3 files changed

+0
-76
lines changed

3 files changed

+0
-76
lines changed

index.js

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import {NativeModules, NativeAppEventEmitter, Platform} from 'react-native';
88
let {Instabug} = NativeModules;
9-
import instabugUtils from './utils/instabugUtils.js';
109

1110
/**
1211
* Instabug
@@ -475,34 +474,6 @@ module.exports = {
475474
Instabug.isInstabugNotification(dict, isInstabugNotificationCallback);
476475
},
477476

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-
506477
/**
507478
* Add file to attached files with each report being sent.
508479
* A new copy of the file at fileURL will be attached with each bug report being sent. The file is only copied

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"version": "1.0.7",
44
"description": "React Native plugin for integrating the Instabug SDK",
55
"main": "index.js",
6-
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
8-
},
96
"repository": {
107
"type": "git",
118
"url": "git+https://github.com/Instabug/instabug-reactnative.git"
@@ -28,8 +25,5 @@
2825
"android": {
2926
"packageInstance": "new RNInstabugReactnativePackage(MainApplication.this)"
3027
}
31-
},
32-
"dependencies": {
33-
"stacktrace-parser": "0.1.3"
3428
}
3529
}

utils/instabugUtils.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)