Skip to content

Commit

Permalink
Release version 9.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jerielng committed Apr 18, 2024
1 parent 864e5ba commit ebe1b76
Show file tree
Hide file tree
Showing 12 changed files with 308 additions and 378 deletions.
1 change: 1 addition & 0 deletions BrazeProject/BrazeProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ export const BrazeProject = (): ReactElement => {
Braze.setCustomUserAttribute('objectAttr', { one: 1, two: 'too' }, false);
Braze.setCustomUserAttribute('badArray', ['123', { one: 1, two: 2 }]);
Braze.setCustomUserAttribute('badArray2', [true, 1, 'string', { one: 1 }]);
Braze.setCustomUserAttribute('nullValueAttr', null);
showToast('Custom attributes set');
};

Expand Down
22 changes: 18 additions & 4 deletions BrazeProject/ios/BrazeProject.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@
EC9B92062B1F762B00C6BD5D /* Sources */,
EC9B92072B1F762B00C6BD5D /* Frameworks */,
EC9B92082B1F762B00C6BD5D /* Resources */,
52AFEB2430ADE005545A32A8 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -526,6 +527,23 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-BrazeProject/Pods-BrazeProject-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
52AFEB2430ADE005545A32A8 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-BrazeProjectPushStory/Pods-BrazeProjectPushStory-resources-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-BrazeProjectPushStory/Pods-BrazeProjectPushStory-resources-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-BrazeProjectPushStory/Pods-BrazeProjectPushStory-resources.sh\"\n";
showEnvVarsInLog = 0;
};
74F5EB337C713CD3201C3C4B /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -966,7 +984,6 @@
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 5GLZKGNWQ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = BrazeProjectRichPush/Info.plist;
Expand Down Expand Up @@ -1009,7 +1026,6 @@
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 5GLZKGNWQ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = BrazeProjectRichPush/Info.plist;
Expand Down Expand Up @@ -1050,7 +1066,6 @@
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 5GLZKGNWQ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = BrazeProjectPushStory/Info.plist;
Expand Down Expand Up @@ -1094,7 +1109,6 @@
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 5GLZKGNWQ3;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = BrazeProjectPushStory/Info.plist;
Expand Down
4 changes: 2 additions & 2 deletions BrazeProject/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ target 'BrazeProject' do
end

target 'BrazeProjectRichPush' do
pod 'BrazeNotificationService', '~> 8.1.0'
pod 'BrazeNotificationService', '~> 8.4.0'
end

target 'BrazeProjectPushStory' do
pod 'BrazePushStory', '~> 8.1.0'
pod 'BrazePushStory', '~> 8.4.0'
end
40 changes: 20 additions & 20 deletions BrazeProject/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PODS:
- boost (1.83.0)
- braze-react-native-sdk (9.1.0):
- BrazeKit (~> 8.2.1)
- BrazeLocation (~> 8.2.1)
- BrazeUI (~> 8.2.1)
- braze-react-native-sdk (9.2.0):
- BrazeKit (~> 8.4.0)
- BrazeLocation (~> 8.4.0)
- BrazeUI (~> 8.4.0)
- glog
- hermes-engine
- RCT-Folly (= 2022.05.16.00)
Expand All @@ -22,13 +22,13 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- BrazeKit (8.2.1)
- BrazeLocation (8.2.1):
- BrazeKit (= 8.2.1)
- BrazeNotificationService (8.1.0)
- BrazePushStory (8.1.0)
- BrazeUI (8.2.1):
- BrazeKit (= 8.2.1)
- BrazeKit (8.4.0)
- BrazeLocation (8.4.0):
- BrazeKit (= 8.4.0)
- BrazeNotificationService (8.4.0)
- BrazePushStory (8.4.0)
- BrazeUI (8.4.0):
- BrazeKit (= 8.4.0)
- CocoaAsyncSocket (7.6.5)
- DoubleConversion (1.1.6)
- FBLazyVector (0.73.1)
Expand Down Expand Up @@ -1187,8 +1187,8 @@ PODS:
DEPENDENCIES:
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
- "braze-react-native-sdk (from `../node_modules/@braze/react-native-sdk`)"
- BrazeNotificationService (~> 8.1.0)
- BrazePushStory (~> 8.1.0)
- BrazeNotificationService (~> 8.4.0)
- BrazePushStory (~> 8.4.0)
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
- Flipper (= 0.201.0)
Expand Down Expand Up @@ -1395,12 +1395,12 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
boost: 26fad476bfa736552bbfa698a06cc530475c1505
braze-react-native-sdk: 2f996f07959f2bb97604c1a2ca3b5b876a6f2e2f
BrazeKit: 45370af59da16595839b6229b82f974a6bdb3909
BrazeLocation: aae9d0aac79d76f9cbe253de2cec1055b3119567
BrazeNotificationService: a0dc917d52102b9387b24e4135cb3bf0305316c7
BrazePushStory: b8a1ef9e28618cbd58658a93d603175a2cf5dbfd
BrazeUI: 49647ff0b180dcb7df3bc23206c02b2cb1629ec9
braze-react-native-sdk: e48cd115d0015c452c56d8f65cbdc659e326edb7
BrazeKit: 7aa946734211e8371c6525447db98406ded44402
BrazeLocation: cb2a1befb02fc7ef180fdfd1287f985bf0e87b0d
BrazeNotificationService: 53534bdab87853b3304452440104e53a31c2fde8
BrazePushStory: 29921e1bc55ed087af593506986782a88ca7e083
BrazeUI: 794a1c0bb387f40763673af7da5cb076ec0e413b
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953
FBLazyVector: 2296bacb2fa157a43991048b0a9d71c1c8b65083
Expand Down Expand Up @@ -1465,6 +1465,6 @@ SPEC CHECKSUMS:
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
Yoga: 4f53dc50008d626fa679c7a1cb4bed898f8c0bde

PODFILE CHECKSUM: d9b32babc56dce83b08e09f4d22425f720e2c26d
PODFILE CHECKSUM: 57c34903a98d806716eae011f73869b42657e15e

COCOAPODS: 1.15.2
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 9.2.0

##### Added
- Updates the native iOS version bindings [from Braze Swift SDK 8.2.1 to 8.4.0](https://github.com/braze-inc/braze-swift-sdk/compare/8.2.1...8.4.0#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed).

##### Fixed
- Fixes the Android implementation of `Braze.setCustomUserAttribute()` to correctly handle null values.
- Thanks @owonie for your contribution!

## 9.1.0

##### Added
Expand Down
18 changes: 14 additions & 4 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,18 +336,28 @@ test('it calls BrazeReactBridge.setCustomUserAttributeObjectArray', () => {

test('it calls BrazeReactBridge.setCustomUserAttributeObject 4 parameters', () => {
const key = "some_key";
const hash = {'do': 're', 'mi': 'fa'}
const merge = true
const hash = {'do': 're', 'mi': 'fa'};
const merge = true;
Braze.setCustomUserAttribute(key, hash, merge, testCallback);

expect(NativeBrazeReactModule.setCustomUserAttributeObject).toBeCalledWith(key, hash, merge, testCallback);
});

test('it calls BrazeReactBridge.setCustomUserAttributeObject 3 parameters', () => {
const key = "some_key";
const hash = {'do': 're', 'mi': 'fa'}
const hash = {'do': 're', 'mi': 'fa'};
// When not given, merge defaults to 'false'
const merge = false
const merge = false;
Braze.setCustomUserAttribute(key, hash, testCallback);

expect(NativeBrazeReactModule.setCustomUserAttributeObject).toBeCalledWith(key, hash, merge, testCallback);
});

test('it calls BrazeReactBridge.setCustomUserAttributeObject with null value', () => {
const key = "some_key";
const hash = null;
// When not given, merge defaults to 'false'
const merge = false;
Braze.setCustomUserAttribute(key, hash, testCallback);

expect(NativeBrazeReactModule.setCustomUserAttributeObject).toBeCalledWith(key, hash, merge, testCallback);
Expand Down
Loading

0 comments on commit ebe1b76

Please sign in to comment.