Skip to content

Commit

Permalink
release 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Bucimis committed Mar 9, 2018
1 parent 0174773 commit e054727
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -91,6 +90,7 @@ var ReactAppboy = {
* @param {string} userId - A unique identifier for this user.
*/
changeUser: function(userId) {
AppboyReactBridge.setSDKFlavor();
AppboyReactBridge.changeUser(userId);
},

Expand All @@ -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);
},

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit e054727

Please sign in to comment.