@@ -413,23 +413,6 @@ module.exports = {
413
413
}
414
414
} ,
415
415
416
- /**
417
- * Enables/disables prompt options when SDK is invoked.
418
- * When only a single option is enabled, it become the default invocation mode.
419
- * If all options are disabled, bug reporting becomes the default invocation mode.
420
- * By default, all three options are enabled.
421
- * @param {boolean } isBugReportingEnabled A boolean to indicate whether bug reports
422
- * are enabled or disabled.
423
- * @param {boolean } isFeedbackReportingEnabled A boolean to indicate whether feedback is
424
- * enabled or disabled.
425
- * @param {boolean } isChatEnabled A boolean to indicate whether chat is enabled
426
- * or disabled.
427
- */
428
- setPromptOptions : function ( isBugReportingEnabled , isFeedbackReportingEnabled , isChatEnabled ) {
429
- if ( Platform . OS === 'ios' )
430
- Instabug . setPromptOptions ( isBugReportingEnabled , isFeedbackReportingEnabled , isChatEnabled ) ;
431
- } ,
432
-
433
416
/**
434
417
* Checks if a notification is from Instabug.
435
418
* If you are using push notifications, use this method to check whether an
@@ -445,17 +428,6 @@ module.exports = {
445
428
Instabug . isInstabugNotification ( dict , isInstabugNotificationCallback ) ;
446
429
} ,
447
430
448
- /**
449
- * Shows/Hides email field.
450
- * Defaults to show email field.
451
- * @param {boolean } shouldShowEmailField true to show the email field, false to hide it.
452
- */
453
- setShowEmailField : function ( shouldShowEmailField ) {
454
- if ( Platform . OS == 'ios' ) {
455
- Instabug . setShowEmailField ( ) ;
456
- }
457
- } ,
458
-
459
431
/**
460
432
* Sets the default value of the user's email and hides the email field from the reporting UI
461
433
* and set the user's name to be included with all reports.
@@ -479,17 +451,6 @@ module.exports = {
479
451
}
480
452
} ,
481
453
482
- /**
483
- * Sets whether to show a "Thank You" dialog after a bug report is sent or not.
484
- * Defaults to YES.
485
- * @param {boolean } isPostSendingDialogEnabled A boolean to indicate whether the dialog is enabled or not.
486
- */
487
- setPostSendingDialogEnabled : function ( isPostSendingDialogEnabled ) {
488
- if ( Platform . OS == 'ios' ) {
489
- Instabug . setPostSendingDialogEnabled ( isPostSendingDialogEnabled ) ;
490
- }
491
- } ,
492
-
493
454
/**
494
455
* Sets an array of report categories to be shown for users to select from before reporting a bug or sending
495
456
* feedback.
@@ -505,16 +466,6 @@ module.exports = {
505
466
}
506
467
} ,
507
468
508
- /**
509
- * Enables/disables inspect view hierarchy when reporting a bug/feedback.
510
- * @param {boolean } viewHierarchyEnabled A boolean to set whether view hierarchy are enabled or disabled.
511
- */
512
- setViewHierarchyEnabled : function ( viewHierarchyEnabled ) {
513
- if ( Platform . OS == 'ios' ) {
514
- Instabug . setViewHierarchyEnabled ( viewHierarchyEnabled ) ;
515
- }
516
- } ,
517
-
518
469
/**
519
470
* Logs a user event that happens through the lifecycle of the application.
520
471
* Logged user events are going to be sent with each report, as well as at the end of a session.
@@ -648,36 +599,6 @@ module.exports = {
648
599
}
649
600
} ,
650
601
651
- /**
652
- * Appends a log message to Instabug internal log
653
- * <p>
654
- * These logs are then sent along the next uploaded report.
655
- * All log messages are timestamped <br/>
656
- * Logs aren't cleared per single application run.
657
- * If you wish to reset the logs,
658
- * use {@link #clearLogs()} ()}
659
- * </p>
660
- * Note: logs passed to this method are <b>NOT</b> printed to Logcat
661
- *
662
- * @param message the message
663
- */
664
- logWTF ( message ) {
665
- if ( ! message ) return ;
666
- if ( Platform . OS === 'android' ) {
667
- Instabug . log ( "wtf" , message ) ;
668
- }
669
- } ,
670
-
671
- /**
672
- * Clears Instabug internal log
673
- *
674
- */
675
- clearLogs : function ( ) {
676
- if ( Platform . OS === 'android' ) {
677
- Instabug . clearLogs ( ) ;
678
- }
679
- } ,
680
-
681
602
/**
682
603
* Sets user attribute to overwrite it's value or create a new one if it doesn't exist.
683
604
*
@@ -687,9 +608,7 @@ module.exports = {
687
608
setUserAttribute : function ( key , value ) {
688
609
if ( ! key || ! value || typeof key !== "string" || typeof value !== "string" )
689
610
throw new TypeError ( "Invalid param, Expected String" ) ;
690
- if ( Platform . OS === 'android' ) {
691
- Instabug . setUserAttribute ( key , value ) ;
692
- }
611
+ Instabug . setUserAttribute ( key , value ) ;
693
612
} ,
694
613
695
614
/**
@@ -713,9 +632,7 @@ module.exports = {
713
632
removeUserAttribute : function ( key ) {
714
633
if ( ! key || typeof key !== "string" )
715
634
throw new TypeError ( "Invalid param, Expected String" ) ;
716
- if ( Platform . OS === 'android' ) {
717
- Instabug . removeUserAttribute ( key ) ;
718
- }
635
+ Instabug . removeUserAttribute ( key ) ;
719
636
} ,
720
637
721
638
/**
@@ -733,9 +650,7 @@ module.exports = {
733
650
* Clears all user attributes if exists.
734
651
*/
735
652
clearAllUserAttributes : function ( ) {
736
- if ( Platform . OS === 'android' ) {
737
- Instabug . clearAllUserAttributes ( ) ;
738
- }
653
+ Instabug . clearAllUserAttributes ( ) ;
739
654
} ,
740
655
741
656
/**
0 commit comments