@@ -74,25 +74,6 @@ function reportCurrentViewForAndroid(screenName: string | null) {
7474 }
7575}
7676
77- function _logFlags ( ) {
78- if ( Platform . OS === 'android' ) {
79- console . log (
80- `Andrew: APM Flags -> {
81- isNativeInterceptionFeatureEnabled: ${ isNativeInterceptionFeatureEnabled } ,
82- hasAPMNetworkPlugin: ${ hasAPMNetworkPlugin } ,
83- shouldEnableNativeInterception: ${ shouldEnableNativeInterception }
84- }` ,
85- ) ;
86- } else {
87- console . log (
88- `Andrew: APM Flags -> {
89- isNativeInterceptionFeatureEnabled: ${ isNativeInterceptionFeatureEnabled } ,
90- shouldEnableNativeInterception: ${ shouldEnableNativeInterception }
91- }` ,
92- ) ;
93- }
94- }
95-
9677/**
9778 * Initializes the SDK.
9879 * This is the main SDK method that does all the magic. This is the only
@@ -148,14 +129,11 @@ const handleAppStateChange = async (nextAppState: AppStateStatus, config: Instab
148129 const isUpdated = await fetchApmNetworkFlags ( ) ;
149130
150131 if ( isUpdated ) {
151- console . log ( 'Andrew: App has come to the foreground!' ) ;
152- console . log ( 'Andrew: APM network flags updated.' ) ;
153132 refreshAPMNetworkConfigs ( config ) ;
154133 }
155134 }
156135
157136 _currentAppState = nextAppState ;
158- console . log ( `Andrew: Current AppState: ${ _currentAppState } ` ) ;
159137} ;
160138
161139/**
@@ -176,10 +154,6 @@ const fetchApmNetworkFlags = async () => {
176154 isUpdated = true ;
177155 }
178156 }
179-
180- console . log (
181- `Andrew: fetchApmNetworkFlags {isNativeInterceptionFeatureEnabled: ${ isNativeInterceptionFeatureEnabled } , hasAPMNetworkPlugin: ${ hasAPMNetworkPlugin } }` ,
182- ) ;
183157 return isUpdated ;
184158} ;
185159
@@ -241,13 +215,6 @@ function handleAndroidNativeInterception() {
241215 * Control either to enable or disable the native interception for iOS after the init method is called.
242216 */
243217function handleIOSNativeInterception ( config : InstabugConfig ) {
244- console . log (
245- `Andrew: handleIOSNativeInterception(${
246- shouldEnableNativeInterception &&
247- config . networkInterceptionMode === NetworkInterceptionMode . native
248- } )`,
249- ) ;
250-
251218 if (
252219 shouldEnableNativeInterception &&
253220 config . networkInterceptionMode === NetworkInterceptionMode . native
@@ -295,12 +262,6 @@ const handleInterceptionModeForIOS = (config: InstabugConfig) => {
295262 * Initializes Instabug with the given configuration.
296263 */
297264const initializeNativeInstabug = ( config : InstabugConfig ) => {
298- console . log (
299- `Andrew: initializeNativeInstabug -> NativeNetworkInterceptionMode ${
300- shouldEnableNativeInterception &&
301- config . networkInterceptionMode === NetworkInterceptionMode . native
302- } `,
303- ) ;
304265 NativeInstabug . init (
305266 config . token ,
306267 config . invocationEvents ,
@@ -319,7 +280,6 @@ function refreshAPMNetworkConfigs(config: InstabugConfig, forceRefreshIOS: boole
319280 if ( Platform . OS === 'ios' && forceRefreshIOS ) {
320281 handleIOSNativeInterception ( config ) ;
321282 }
322- _logFlags ( ) ;
323283 setApmNetworkFlagsIfChanged ( {
324284 isNativeInterceptionFeatureEnabled,
325285 hasAPMNetworkPlugin,
@@ -339,10 +299,6 @@ function refreshAPMNetworkConfigs(config: InstabugConfig, forceRefreshIOS: boole
339299function addOnFeatureUpdatedListener ( config : InstabugConfig ) {
340300 emitter . addListener ( NativeEvents . IBG_ON_FEATURES_UPDATED_CALLBACK , ( flags ) => {
341301 const { cpNativeInterceptionEnabled, hasAPMPlugin } = flags ;
342- console . log ( `Andrew: addOnFeatureUpdatedListener ->
343- isNativeInterceptionFeatureEnabled: ${ cpNativeInterceptionEnabled } ,
344- hasAPMNetworkPlugin: ${ hasAPMPlugin } .
345- ` ) ;
346302 isNativeInterceptionFeatureEnabled = cpNativeInterceptionEnabled ;
347303 hasAPMNetworkPlugin = hasAPMPlugin ;
348304 shouldEnableNativeInterception =
0 commit comments