Fix iOS build errors and test app setup
- Fix async/await usage in background fetch handler - Fix Core Data metadata access errors - Replace SQLITE_TRANSIENT with nil for Swift compatibility - Fix PermissionStatus interface and type casts in test app - Add iOS setup documentation to BUILDING.md - Update iOS sync workflow to handle Podfile regeneration Resolves all iOS compilation errors and improves test app setup process.
This commit is contained in:
@@ -263,12 +263,12 @@ class DailyNotificationDatabase {
|
||||
return
|
||||
}
|
||||
|
||||
sqlite3_bind_text(stmt, 1, (content.id as NSString).utf8String, -1, SQLITE_TRANSIENT)
|
||||
sqlite3_bind_text(stmt, 2, (json as NSString).utf8String, -1, SQLITE_TRANSIENT)
|
||||
sqlite3_bind_text(stmt, 1, (content.id as NSString).utf8String, -1, nil)
|
||||
sqlite3_bind_text(stmt, 2, (json as NSString).utf8String, -1, nil)
|
||||
sqlite3_bind_int64(stmt, 3, sqlite3_int64(content.fetchedAt))
|
||||
|
||||
if let etag = content.etag {
|
||||
sqlite3_bind_text(stmt, 4, (etag as NSString).utf8String, -1, SQLITE_TRANSIENT)
|
||||
sqlite3_bind_text(stmt, 4, (etag as NSString).utf8String, -1, nil)
|
||||
} else {
|
||||
sqlite3_bind_null(stmt, 4)
|
||||
}
|
||||
@@ -310,7 +310,7 @@ class DailyNotificationDatabase {
|
||||
return
|
||||
}
|
||||
|
||||
sqlite3_bind_text(stmt, 1, (id as NSString).utf8String, -1, SQLITE_TRANSIENT)
|
||||
sqlite3_bind_text(stmt, 1, (id as NSString).utf8String, -1, nil)
|
||||
|
||||
if sqlite3_step(stmt) != SQLITE_DONE {
|
||||
print("\(Self.TAG): deleteNotificationContent step failed: \(String(cString: sqlite3_errmsg(db)))")
|
||||
|
||||
Reference in New Issue
Block a user