Skip to content

Commit 881025d

Browse files
committed
release: SDK 1.19.3
1 parent 52640fa commit 881025d

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
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-1.19.2.zip",
22-
checksum: "7f5d5c326274767f91f37497650d11c2affcbebcce1e85187c111c35e0246e37"
21+
url: "https://download.batch.com/sdk/ios/spm/BatchSDK-ios_spm-xcframework-1.19.3.zip",
22+
checksum: "5a56179647f66d34c0a4532f28f68241bc1e12e7c391d9593407e47998eabc67"
2323
)
2424
]
2525
)

Sources/Batch/Modules/Event Dispatcher/BAEventDispatcherCenter.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ + (nullable BAMessageEventPayload *)messageEventPayloadFromMessage:(nonnull Batc
3939
}
4040

4141
+ (BOOL)isBatchEventDispatcher:(NSString *)name {
42-
return [@[ @"firebase", @"at_internet", @"mixpanel", @"google_analytics", @"batch_plugins" ] containsObject:name];
42+
return [@[ @"firebase", @"at_internet", @"mixpanel", @"google_analytics", @"piano", @"batch_plugins" ]
43+
containsObject:name];
4344
}
4445

4546
- (void)addEventDispatcher:(nonnull id<BatchEventDispatcherDelegate>)dispatcher {

Sources/Batch/Modules/Local Campaigns/BALocalCampaignsManager.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ - (void)verifyCampaignsEligibilityFromServer:(NSArray<BALocalCampaign *> *)eligi
201201
[[self->_dateProvider currentDate] timeIntervalSince1970] + MIN_DELAY_BETWEEN_JIT_SYNC;
202202

203203
if ([eligibleCampaignIds count] > 0) {
204-
for (BALocalCampaign *campaign in eligibleCampaignsSynced) {
204+
for (BALocalCampaign *campaign in [NSArray arrayWithArray:eligibleCampaignsSynced]) {
205205
BATSyncedJITResult *syncedJITResult = [[BATSyncedJITResult alloc]
206206
initWithTimestamp:[[self->_dateProvider currentDate] timeIntervalSince1970]];
207207
if (![eligibleCampaignIds containsObject:campaign.campaignID]) {

Sources/Batch/Modules/Push/BAPushCenter.m

+4-3
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,10 @@ + (void)applicationDidFinishLaunchingNotification:(NSNotification *)notification
177177
@"BatchUNUserNotificationCenterDelegate or implement your own."];
178178
if (@available(iOS 13.0, *)) {
179179
if ([BAApplicationLifecycle applicationUsesUIScene]) {
180-
[BALogger publicForDomain:@"Push"
181-
message:@"⚠️ App is using UIScene without a UNUserNotificationCenterDelegate: "
182-
@"Direct Opens, Mobile Landings, Deeplinks will not work."];
180+
[BALogger
181+
publicForDomain:@"Push"
182+
message:@"⚠️ App is using UIScene without a UNUserNotificationCenterDelegate: "
183+
@"Direct Opens, Mobile Landings, Deeplinks will not work."];
183184
}
184185
}
185186
}

Sources/Batch/Modules/User/BAUserSQLiteDatasource.m

+7-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,13 @@ - (instancetype)initWithDatabaseName:(NSString *)dbName {
8888

8989
/*** End of migration things ***/
9090

91-
if (sqlite3_open([dbPath cStringUsingEncoding:NSUTF8StringEncoding], &_database) != SQLITE_OK) {
91+
// TODO: Make In-App JIT use a shared queue and disable FULLMUTEX
92+
// See sc-54731
93+
// We might want to remove this for performance reasons, but this ensures
94+
// that concurrent access of sqlite3 will never crash, at the cost of threads possibly
95+
// being blocked for a little bit.
96+
if (sqlite3_open_v2([dbPath cStringUsingEncoding:NSUTF8StringEncoding], &_database,
97+
SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_FULLMUTEX, NULL) != SQLITE_OK) {
9298
[BALogger errorForDomain:LOGGER_DOMAIN
9399
message:@"Error while opening sqlite database, not persisting user data."];
94100
return nil;

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 1.19.2
14+
#define BASDKVersion 1.19.3
1515
#define BAAPILevel 51
1616
#define BAMessagingAPILevel 12

0 commit comments

Comments
 (0)