Skip to content

Commit 345ed63

Browse files
committed
release: SDK 2.0.1
1 parent 6ac4230 commit 345ed63

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Package.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ let package = Package(
1818
targets: [
1919
.binaryTarget(
2020
name: "Batch",
21-
url: "https://download.batch.com/sdk/ios/spm/BatchSDK-ios_spm-xcframework-2.0.0.zip",
22-
checksum: "9e78ad2e7320d91a9b1b3ca8f2069f260cf96d6d93309e9d5504f2b551ecbda2"
21+
url: "https://download.batch.com/sdk/ios/spm/BatchSDK-ios_spm-xcframework-2.0.1.zip",
22+
checksum: "def450b7294b2247f3533906f662607f28796ffbf0a2a05706e866066526ce77"
2323
)
2424
]
2525
)

Sources/Batch/BatchProfile.m

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ + (void)trackEventWithName:(nonnull NSString *)eventName {
2626
}
2727

2828
+ (void)trackEventWithName:(nonnull NSString *)name attributes:(nullable BatchEventAttributes *)attributes {
29-
if (![attributes isKindOfClass:[BatchEventAttributes class]]) {
29+
if (attributes && ![attributes isKindOfClass:[BatchEventAttributes class]]) {
30+
[BALogger warningForDomain:@"Profile"
31+
message:@"Event attributes must be an instance of BatchEventAttributes. Aborting."];
3032
return;
3133
}
32-
3334
NSError *error = nil;
3435
[[BAInjection injectProtocol:@protocol(BAProfileCenterProtocol)] trackPublicEventWithName:name
3536
attributes:attributes

Sources/Batch/Versions.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
Comments should not use the // form, as the plist preprocessor will include them
1212
*/
1313

14-
#define BASDKVersion 2.0.0
14+
#define BASDKVersion 2.0.1
1515
#define BAAPILevel 200
1616
#define BAMessagingAPILevel 12

0 commit comments

Comments
 (0)