@@ -9,18 +9,9 @@ import IBGEventEmitter from '../utils/IBGEventEmitter';
99import InstabugUtils , { stringifyIfNotString } from '../utils/InstabugUtils' ;
1010import InstabugConstants from '../utils/InstabugConstants' ;
1111import Report from '../models/Report' ;
12- import BugReporting from './BugReporting' ;
13- import APM from './APM' ;
14- import Surveys from './Surveys' ;
15- import FeatureRequests from './FeatureRequests' ;
16- import Replies from './Replies' ;
17- import CrashReporting from './CrashReporting' ;
1812import NetworkLogger from './NetworkLogger' ;
1913import ArgsRegistry from '../utils/ArgsRegistry' ;
2014
21- InstabugUtils . captureJsErrors ( ) ;
22- NetworkLogger . setEnabled ( true ) ;
23-
2415var _currentScreen = null ;
2516var _lastScreen = null ;
2617var _isFirstScreen = false ;
@@ -42,7 +33,11 @@ const InstabugModule = {
4233 * the SDK's UI.
4334 */
4435 start : function ( token , invocationEvent ) {
36+ InstabugUtils . captureJsErrors ( ) ;
37+ NetworkLogger . setEnabled ( true ) ;
38+
4539 Instabug . start ( token , invocationEvent ) ;
40+
4641 _isFirstScreen = true ;
4742 _currentScreen = firstScreen ;
4843 setTimeout ( function ( ) {
@@ -687,14 +682,4 @@ const InstabugModule = {
687682 strings : ArgsRegistry . strings ,
688683} ;
689684
690- export {
691- BugReporting ,
692- Surveys ,
693- FeatureRequests ,
694- Replies ,
695- CrashReporting ,
696- NetworkLogger ,
697- APM ,
698- } ;
699-
700685export default InstabugModule ;
0 commit comments