diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f892abcd..773eab493 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [Unreleased](https://github.com/Instabug/Instabug-React-Native/compare/v15.0.2...dev) +## [16.0.0](https://github.com/Instabug/Instabug-React-Native/compare/v15.0.3...dev) ### Added @@ -24,6 +24,12 @@ - Masking private views on newer React native Versions ([#1403](https://github.com/Instabug/Instabug-React-Native/pull/1403)) +## [15.0.3](https://github.com/Instabug/Instabug-React-Native/compare/v15.0.3...dev) (August 22, 2025) + +### Changed + +- Bump Instabug iOS SDK to v15.1.2 ([#1440](https://github.com/Instabug/Instabug-React-Native/pull/1440)). [See release notes](https://github.com/Instabug/Instabug-iOS/releases/tag/15.1.2). + ## [15.0.2](https://github.com/Instabug/Instabug-React-Native/compare/v15.2.0...dev) ### Added diff --git a/ios/RNInstabug/InstabugNetworkLoggerBridge.m b/ios/RNInstabug/InstabugNetworkLoggerBridge.m index 2a2ddeb97..79b984e52 100644 --- a/ios/RNInstabug/InstabugNetworkLoggerBridge.m +++ b/ios/RNInstabug/InstabugNetworkLoggerBridge.m @@ -53,25 +53,25 @@ + (BOOL)requiresMainQueueSetup } RCT_EXPORT_MODULE(IBGNetworkLogger) -bool hasListeners = NO; +bool ibg_hasListeners = NO; // Will be called when this module's first listener is added. -(void)startObserving { - hasListeners = YES; + ibg_hasListeners = YES; // Set up any upstream listeners or background tasks as necessary } // Will be called when this module's last listener is removed, or on dealloc. -(void)stopObserving { - hasListeners = NO; + ibg_hasListeners = NO; // Remove upstream listeners, stop unnecessary background tasks } RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(isNativeInterceptionEnabled) { return @(IBGNetworkLogger.isNativeNetworkInterceptionFeatureEnabled); -} +} @@ -114,7 +114,7 @@ -(void)stopObserving { // Initialize the NSMutableURLRequest NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:requestURL]; - + // Set the HTTP body if provided if (requestBody && [requestBody isKindOfClass:[NSString class]]) { request.HTTPBody = [requestBody dataUsingEncoding:NSUTF8StringEncoding]; @@ -157,7 +157,7 @@ - (void)setupRequestFilteringHandler { self.requestFilteringCompletionDictionary[callbackID] = completion; NSDictionary *dict = [self createNetworkRequestDictForRequest:request callbackID:callbackID]; - if(hasListeners){ + if(ibg_hasListeners){ [self sendEventWithName:@"IBGNetworkLoggerHandler" body:dict]; } @@ -172,7 +172,7 @@ - (void)setupRequestObfuscationHandler { NSDictionary *dict = [self createNetworkRequestDictForRequest:request callbackID:callbackID]; - if (hasListeners) { + if (ibg_hasListeners) { [self sendEventWithName:@"IBGNetworkLoggerHandler" body:dict]; }