Skip to content

Commit

Permalink
release: SDK 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-roland committed May 3, 2024
1 parent 6ac4230 commit 345ed63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "Batch",
url: "https://download.batch.com/sdk/ios/spm/BatchSDK-ios_spm-xcframework-2.0.0.zip",
checksum: "9e78ad2e7320d91a9b1b3ca8f2069f260cf96d6d93309e9d5504f2b551ecbda2"
url: "https://download.batch.com/sdk/ios/spm/BatchSDK-ios_spm-xcframework-2.0.1.zip",
checksum: "def450b7294b2247f3533906f662607f28796ffbf0a2a05706e866066526ce77"
)
]
)
5 changes: 3 additions & 2 deletions Sources/Batch/BatchProfile.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ + (void)trackEventWithName:(nonnull NSString *)eventName {
}

+ (void)trackEventWithName:(nonnull NSString *)name attributes:(nullable BatchEventAttributes *)attributes {
if (![attributes isKindOfClass:[BatchEventAttributes class]]) {
if (attributes && ![attributes isKindOfClass:[BatchEventAttributes class]]) {
[BALogger warningForDomain:@"Profile"
message:@"Event attributes must be an instance of BatchEventAttributes. Aborting."];
return;
}

NSError *error = nil;
[[BAInjection injectProtocol:@protocol(BAProfileCenterProtocol)] trackPublicEventWithName:name
attributes:attributes
Expand Down
2 changes: 1 addition & 1 deletion Sources/Batch/Versions.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
Comments should not use the // form, as the plist preprocessor will include them
*/

#define BASDKVersion 2.0.0
#define BASDKVersion 2.0.1
#define BAAPILevel 200
#define BAMessagingAPILevel 12

0 comments on commit 345ed63

Please sign in to comment.