Disable crash reporting and network logging
This commit is contained in:
parent
1b548dc77d
commit
9eb701b32b
|
@ -8,6 +8,23 @@ ios/.DS_Store
|
|||
build/
|
||||
/android/src/main/java/com/instabug/reactlibrary/wrappedAPIs
|
||||
|
||||
# Xcode
|
||||
|
||||
## Build generated
|
||||
build/
|
||||
DerivedData/
|
||||
|
||||
## Various settings
|
||||
*.pbxuser
|
||||
!default.pbxuser
|
||||
*.mode1v3
|
||||
!default.mode1v3
|
||||
*.mode2v3
|
||||
!default.mode2v3
|
||||
*.perspectivev3
|
||||
!default.perspectivev3
|
||||
xcuserdata/
|
||||
|
||||
|
||||
*node_modules/
|
||||
*Pods/
|
||||
|
|
4
index.js
4
index.js
|
@ -527,9 +527,9 @@ module.exports = {
|
|||
* @param {array} titles titles to be shown in the list.
|
||||
* @param {array} name names of icons to be shown along with titles. Use the same names you would use
|
||||
*/
|
||||
setReportCategories: function (titles, names) {
|
||||
setReportCategories: function (titles) {
|
||||
if (Platform.OS == 'ios') {
|
||||
Instabug.setReportCategories(titles, names);
|
||||
Instabug.setReportCategories(titles, null);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -26,6 +26,8 @@ RCT_EXPORT_MODULE(Instabug)
|
|||
|
||||
RCT_EXPORT_METHOD(startWithToken:(NSString *)token invocationEvent:(IBGInvocationEvent)invocationEvent) {
|
||||
[Instabug startWithToken:token invocationEvent:invocationEvent];
|
||||
[Instabug setCrashReportingEnabled:NO];
|
||||
[Instabug setNetworkLoggingEnabled:NO];
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(invoke) {
|
||||
|
|
Loading…
Reference in New Issue