Disable crash reporting and network logging

This commit is contained in:
Yousef Hamza 2017-05-08 15:54:24 +02:00
parent 1b548dc77d
commit 9eb701b32b
3 changed files with 21 additions and 2 deletions

17
.gitignore vendored
View File

@ -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/

View File

@ -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);
}
},

View File

@ -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) {