From e05472759b4f23a8ffd38731657fb008d5047a7e Mon Sep 17 00:00:00 2001 From: Jared Poelman Date: Thu, 8 Mar 2018 19:16:29 -0500 Subject: [PATCH] release 1.5.2 --- CHANGELOG.md | 5 +++++ index.js | 3 ++- package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 205944c..bcf93c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.5.2 + +##### Fixed +- Fixed a race condition between SDK flavor reporting and sharedInstance initialization on iOS. + ## 1.5.1 ##### Fixed diff --git a/index.js b/index.js index de5ab1a..20be0ae 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,4 @@ const AppboyReactBridge = require('react-native').NativeModules.AppboyReactBridge; -AppboyReactBridge.setSDKFlavor(); /** * This default callback logs errors and null or false results. AppboyReactBridge methods with callbacks will @@ -91,6 +90,7 @@ var ReactAppboy = { * @param {string} userId - A unique identifier for this user. */ changeUser: function(userId) { + AppboyReactBridge.setSDKFlavor(); AppboyReactBridge.changeUser(userId); }, @@ -114,6 +114,7 @@ var ReactAppboy = { * Values can be numeric, boolean, or strings 255 characters or shorter. */ logCustomEvent: function(eventName, eventProperties) { + AppboyReactBridge.setSDKFlavor(); AppboyReactBridge.logCustomEvent(eventName, eventProperties); }, diff --git a/package.json b/package.json index 4e4fd27..be7d56a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-appboy-sdk", - "version": "1.5.1", + "version": "1.5.2", "description": "Braze SDK for React Native.", "main": "index.js", "scripts": {