Skip to content

Commit 9eb701b

Browse files
committed
Disable crash reporting and network logging
1 parent 1b548dc commit 9eb701b

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,23 @@ ios/.DS_Store
88
build/
99
/android/src/main/java/com/instabug/reactlibrary/wrappedAPIs
1010

11+
# Xcode
12+
13+
## Build generated
14+
build/
15+
DerivedData/
16+
17+
## Various settings
18+
*.pbxuser
19+
!default.pbxuser
20+
*.mode1v3
21+
!default.mode1v3
22+
*.mode2v3
23+
!default.mode2v3
24+
*.perspectivev3
25+
!default.perspectivev3
26+
xcuserdata/
27+
1128

1229
*node_modules/
1330
*Pods/

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,9 @@ module.exports = {
527527
* @param {array} titles titles to be shown in the list.
528528
* @param {array} name names of icons to be shown along with titles. Use the same names you would use
529529
*/
530-
setReportCategories: function (titles, names) {
530+
setReportCategories: function (titles) {
531531
if (Platform.OS == 'ios') {
532-
Instabug.setReportCategories(titles, names);
532+
Instabug.setReportCategories(titles, null);
533533
}
534534
},
535535

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ - (dispatch_queue_t)methodQueue {
2626

2727
RCT_EXPORT_METHOD(startWithToken:(NSString *)token invocationEvent:(IBGInvocationEvent)invocationEvent) {
2828
[Instabug startWithToken:token invocationEvent:invocationEvent];
29+
[Instabug setCrashReportingEnabled:NO];
30+
[Instabug setNetworkLoggingEnabled:NO];
2931
}
3032

3133
RCT_EXPORT_METHOD(invoke) {

0 commit comments

Comments
 (0)