@@ -53,25 +53,25 @@ + (BOOL)requiresMainQueueSetup
53
53
}
54
54
RCT_EXPORT_MODULE (IBGNetworkLogger)
55
55
56
- bool hasListeners = NO;
56
+ bool ibg_hasListeners = NO;
57
57
58
58
59
59
60
60
// Will be called when this module's first listener is added.
61
61
-(void )startObserving {
62
- hasListeners = YES ;
62
+ ibg_hasListeners = YES ;
63
63
// Set up any upstream listeners or background tasks as necessary
64
64
}
65
65
66
66
// Will be called when this module's last listener is removed, or on dealloc.
67
67
-(void )stopObserving {
68
- hasListeners = NO ;
68
+ ibg_hasListeners = NO ;
69
69
// Remove upstream listeners, stop unnecessary background tasks
70
70
}
71
71
72
72
RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD (isNativeInterceptionEnabled) {
73
73
return @(IBGNetworkLogger.isNativeNetworkInterceptionFeatureEnabled );
74
- }
74
+ }
75
75
76
76
77
77
@@ -114,7 +114,7 @@ -(void)stopObserving {
114
114
115
115
// Initialize the NSMutableURLRequest
116
116
NSMutableURLRequest *request = [[NSMutableURLRequest alloc ] initWithURL: requestURL];
117
-
117
+
118
118
// Set the HTTP body if provided
119
119
if (requestBody && [requestBody isKindOfClass: [NSString class ]]) {
120
120
request.HTTPBody = [requestBody dataUsingEncoding: NSUTF8StringEncoding];
@@ -157,7 +157,7 @@ - (void)setupRequestFilteringHandler {
157
157
self.requestFilteringCompletionDictionary [callbackID] = completion;
158
158
159
159
NSDictionary *dict = [self createNetworkRequestDictForRequest: request callbackID: callbackID];
160
- if (hasListeners ){
160
+ if (ibg_hasListeners ){
161
161
[self sendEventWithName: @" IBGNetworkLoggerHandler" body: dict];
162
162
}
163
163
@@ -172,7 +172,7 @@ - (void)setupRequestObfuscationHandler {
172
172
173
173
174
174
NSDictionary *dict = [self createNetworkRequestDictForRequest: request callbackID: callbackID];
175
- if (hasListeners ) {
175
+ if (ibg_hasListeners ) {
176
176
[self sendEventWithName: @" IBGNetworkLoggerHandler" body: dict];
177
177
}
178
178
0 commit comments