diff --git a/BrazeProject/ios/Podfile.lock b/BrazeProject/ios/Podfile.lock index 6142364..ec14114 100644 --- a/BrazeProject/ios/Podfile.lock +++ b/BrazeProject/ios/Podfile.lock @@ -1,6 +1,6 @@ PODS: - boost (1.84.0) - - braze-react-native-sdk (13.1.0): + - braze-react-native-sdk (13.1.1): - BrazeKit (~> 11.1.1) - BrazeLocation (~> 11.1.1) - BrazeUI (~> 11.1.1) @@ -1745,7 +1745,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: boost: 4cb898d0bf20404aab1850c656dcea009429d6c1 - braze-react-native-sdk: bc78ee374951dd88e9b916c53112d920f4696777 + braze-react-native-sdk: 3a9b9ba8502ed0d697441bcaa2c9d8db431a7b17 BrazeKit: 879da791a0f4e247846a06c6de95f8b93f4579df BrazeLocation: 59af48eafcf233a8ef16de3f6900955332113fe4 BrazeNotificationService: 4e082e73a7b2ed8aa1488a1f9d9177e1051ea4b2 @@ -1754,9 +1754,9 @@ SPEC CHECKSUMS: DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5 FBLazyVector: 38bb611218305c3bc61803e287b8a81c6f63b619 fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120 - glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2 + glog: 69ef571f3de08433d766d614c73a9838a06bf7eb hermes-engine: 3b6e0717ca847e2fc90a201e59db36caf04dee88 - RCT-Folly: 02617c592a293bd6d418e0a88ff4ee1f88329b47 + RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740 RCTDeprecation: 34cbf122b623037ea9facad2e92e53434c5c7422 RCTRequired: 24c446d7bcd0f517d516b6265d8df04dc3eb1219 RCTTypeSafety: ef5e91bd791abd3a99b2c75fd565791102a66352 diff --git a/CHANGELOG.md b/CHANGELOG.md index 19c57f6..ef74559 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ⚠️ In version 2.0.0, we changed the iOS bridge from AppboyKit, which is written in Objective-C, to the new [Swift SDK](https://github.com/braze-inc/braze-swift-sdk). If you are upgrading from a version below 2.0.0 to a version above 2.0.0, please read [the instructions](https://github.com/braze-inc/braze-react-native-sdk/blob/master/CHANGELOG.md#200) to ensure a smooth transition and backward compatibility. +## 13.1.1 + +##### Fixed +- Resolves an iOS issue that would deallocate existing references of `braze.delegate` when performing a hot reload of the app. + ## 13.1.0 ##### Fixed diff --git a/iOS/BrazeReactBridge/BrazeReactBridge/BrazeReactBridge.mm b/iOS/BrazeReactBridge/BrazeReactBridge/BrazeReactBridge.mm index 5cceff3..c6c8869 100644 --- a/iOS/BrazeReactBridge/BrazeReactBridge/BrazeReactBridge.mm +++ b/iOS/BrazeReactBridge/BrazeReactBridge/BrazeReactBridge.mm @@ -95,7 +95,7 @@ - (void)startObserving { - (void)stopObserving { hasListeners = NO; - braze.delegate = nil; + braze.sdkAuthDelegate = nil; [brazeUIHandler deinitPresenterDelegate:braze]; self.contentCardsSubscription = nil; self.newsFeedSubscription = nil; diff --git a/package.json b/package.json index bdd4d6f..20af679 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@braze/react-native-sdk", - "version": "13.1.0", + "version": "13.1.1", "description": "Braze SDK for React Native.", "main": "src/index.js", "types": "src/index.d.ts",