File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ let package = Package(
18
18
targets: [
19
19
. binaryTarget(
20
20
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 "
23
23
)
24
24
]
25
25
)
Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ + (void)trackEventWithName:(nonnull NSString *)eventName {
26
26
}
27
27
28
28
+ (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." ];
30
32
return ;
31
33
}
32
-
33
34
NSError *error = nil ;
34
35
[[BAInjection injectProtocol: @protocol (BAProfileCenterProtocol)] trackPublicEventWithName: name
35
36
attributes: attributes
Original file line number Diff line number Diff line change 11
11
Comments should not use the // form, as the plist preprocessor will include them
12
12
*/
13
13
14
- #define BASDKVersion 2.0.0
14
+ #define BASDKVersion 2.0.1
15
15
#define BAAPILevel 200
16
16
#define BAMessagingAPILevel 12
You can’t perform that action at this time.
0 commit comments